Thursday, August 18, 2011

[android-developers] Re: Compiling Android jars that respect @hide

I'm cross-posted. I was getting crickets over there.

On Aug 18, 12:10 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Thu, Aug 18, 2011 at 12:00 PM, Joe Moore <joe.mo...@gmail.com> wrote:
> > Does anybody know how to compile Android jars that keep their real
> > implementations (no "Stub!" exceptions) but respect the public API by
> > hiding the @hide annotated entities? Perhaps they are already output
> > by the build and I just need to know where they were?
>
> > I needed access to the "real Android jars" with actual implementations
> > for work we are doing on the Robolectric android testing framework
> > (http://robolectric.org). I built android and harvested classes.jar
> > from out/target/common/obj/JAVA_LIBRARIES/framework_intermediates.
>
> > But, I see that these jars still have many public entities that would
> > normally be hidden because they have the pseudo-annotation of @hide.
> > This makes it hard to use these jars; for example subclasses often are
> > forced to implement abstract methods marked @hide. Ideally we would be
> > able to switch between using SDK jars and real-jars depending on the
> > scenario, but this is hard because they have different public APIs.
> > Thanks in advance!
>
> You'll probably have better luck with this question over on one of the
> Google Groups listed athttp://source.android.com, since building the
> firmware/SDKs is the province of that site.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment