gecko-dev/mobile/android/gradle
Nick Alexander 3c29ab9b09 Bug 1616704 - Make `./mach build binaries && ./mach run` pick up binary changes to `libxul.so`. r=geckoview-reviewers,agi
The Android-Gradle build plugin has evolved, as has GeckoView (it now
expects libraries in `libs/` instead of `assets/`), so we need to
ensure the libraries are copied into place at the right time.

To test this, you can use an artifact build.  Run `./mach build`, and
then binary edit a string in `$TOPOBJDIR/dist/bin/libxul.so` (I used
Emacs and `bbe` to do that).  Run `./mach android
build-geckoview_example`, and then verify the updated string has been
packaged, for example with something like:
```
unzip -c $TOPOBJDIR/gradle/build/mobile/android/geckoview_example/outputs/apk/withGeckoBinaries/debug/geckoview_example-withGeckoBinaries-debug.apk lib/x86_64/libxul.so | strings | grep NEW 'STRING'
```

Coincidentally, this is essentially the same issue as
https://github.com/mozilla/application-services/issues/2659.

Differential Revision: https://phabricator.services.mozilla.com/D64430

--HG--
extra : moz-landing-system : lando
2020-02-26 18:43:09 +00:00
..
dotgradle-offline Bug 1577814 - Increase Gradle heap size. r=nalexander 2019-08-30 17:13:46 +00:00
dotgradle-online Bug 1577814 - Increase Gradle heap size. r=nalexander 2019-08-30 17:13:46 +00:00
debug_level.gradle Bug 1571288 - Fix gradle warnings about obsolete APIs. r=nalexander 2019-08-12 15:18:23 +00:00
product_flavors.gradle
with_gecko_binaries.gradle Bug 1616704 - Make `./mach build binaries && ./mach run` pick up binary changes to `libxul.so`. r=geckoview-reviewers,agi 2020-02-26 18:43:09 +00:00