On 2014-02-24, 11:21 AM, Nick Alexander wrote:
Hello mobile-firefox-dev, (friends, in your best Zoidberg voice),

Motivated by all the problems that I don't understand about how
packaging a GeckoView library with Android resources is ever supposed to
work, I started to think about how hard it will be to actually extract
GeckoView out of Fennec without Android resources.

I dug in over the weekend to understand how packaging GeckoView is supposed to work.

Changes
-------

I just landed Bug 978587 [1] (on fx-team), which does two things:

1) does not include org.mozilla.gecko.R in the GeckoView library;
2) sets the GeckoView library package to org.mozilla.gecko, which makes the embedding application provide org.mozilla.gecko.R.

With these tweaks, we should be shipping a GeckoView library project with correct Android resource dependencies.

Please let me know if you see new problems with the Makefile dependencies during the build.

Impact on embedders
-------------------

I do not expect embedders to have to change anything [2]; I think it is unusual to reference the Android package of an embedded library (as distinct from a Java package contained in an embedded library). But it is possible that some embedders have hard-coded org.mozilla.geckoview somewhere that should be org.mozilla.gecko. If this is the case, please let me know (via reply to this list, or a Bugzilla ticket), and we'll try to understand what's necessary.

Best,
Nick

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=978587

[2] For example, no changes are necessary to https://github.com/mfinkle/geckobrowser. Of course, it hard crashes due to something that looks like Bug 927253 [3], but isn't exactly (?) that ticket.

[3] https://bugzilla.mozilla.org/show_bug.cgi?id=927253
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to