On 2014-12-01, 2:11 AM, Alexander Golikov wrote:
    Hello,

    I'm trying to modify GeckoBrowser example app
    (https://github.com/mfinkle/geckobrowser) to include .xpi extension
    that is compatible with Firefox browser for Android. I've read
    pretty much the same question here:
    
http://t81694.mozilla-development-mobile.mozillatalk.info/add-on-in-geckoview-t81694.html.
    My problem is that I don't understand how to include
    distribution/extensions folder into GeckoBrowser.apk. I've read the
    following article:
    https://wiki.mozilla.org/Mobile/Distribution_Files#Add-ons but it is
    still unclear to me where the distribution/extensions folder should
    be placed in the project in order to be included into .apk & in
    order to be processed during application's first run.

    Could you please provide a brief instruction (or may be some
    references to wiki) on how to include distribution files with
    GeckoBrowser example apk?

    The previous requestor also mentioned that he managed to see
    extension xpi under the profile directory. Could you please clarify
    what is the "profile" directory. I've only found some profile.ini
    file inside /data/data/<app_package_name>/files/ folder.

Hi Alexander,

Most of the Fennec team is pretty busy with a Mozilla all-hands so responses will be delayed.

I talked to Margaret about this and we conclude that distributions are not a GeckoView-level thing. Distributions are a Fennec-level thing that serve Fennec partner arrangements. So you can probably make distros load extensions, but I expect this to go away as we pare GV down to the bones. (Right now we ship all of Fennec and call it GV.)

That leaves the question of how to arrange for extensions in GeckoView embedders. I'm not sure what the answer to that is. Perhaps we can arrange a way to

* populate the "default" profile from the APK; or
* provide a location in the APK that GV will look for extensions; or
* have embedders provide their own app.ja, like GV's omni.ja, which can contains extensions.

It's possible one of the first two is already possible. I'd like to invite comment from other Fennec team members here, and hopefully have you investigate this approach rather than distros.

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

Reply via email to