Hi Nathan,

On Mon, Aug 24, 2015 at 11:59 AM, Nathan Toone <[email protected]> wrote:

> I’m just wondering if there is documentation somewhere around building AAR
> files.  (see Bug 1093242 -
> https://bugzilla.mozilla.org/show_bug.cgi?id=1093242)
>

Unfortunately not.

For example, I’d like to build the AAR files, and then consume them in a
> separate project - using some of the gecko UI components as a part of a
> larger application.  In other words, instead of packaging up an apk which
> is the full application, I’d like to bundle up all the
> resources/libs/classes/whatever that is needed to be able to launch a
> GeckoView (or whatever it’s called) from a different application.
>

You can't really use the Fennec UI components other than the WebView-like
GeckoView.


>
> Is this what is intended by the above bug?  If so, how do I go about
> creating such a package?
>

More or less.  You opt in with MOZ_ANDROID_GECKOLIBS_AAR=1, see
https://dxr.mozilla.org/mozilla-central/source/mobile/android/config/mozconfigs/android-api-11/nightly#18
.

You can see the AAR files for all Nightly builds, like at
http://ftp.mozilla.org/pub/mozilla.org/mobile/tinderbox-builds/fx-team-android-api-11/1440440803/geckoview-20150824112643.aar.
You can see how to consume the AAR files (with some caveats) at
https://github.com/ncalexan/geckobrowser-gradle/blob/master/build.gradle.

Be aware that GeckoView is not a first class citizen at this time.  It
hasn't been invested in during the 3+ years I've been at Mozilla.  I'm
aware of many issues with the interface and API, and with the
implementation, as are others.  Start at
https://bugzilla.mozilla.org/show_bug.cgi?id=880107.  In general, patches
wanted.

Yours,
Nick
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to