This commit factors out the logic into its own settings file, adds
docs, and only imports the settings file into applications that
consume App Services and Glean via Maven (i.e., not GeckoView).
Differential Revision: https://phabricator.services.mozilla.com/D209897
This lets developers set the `autoPublish.*` properties in
`$topsrcdir/mobile/android/{project}/local.properties`. These will
override the `autoPublish.*` properties in
`$topsrcdir/local.properties` if set.
This commit also refactors the `local.properties` loading logic in
`shared-settings.gradle` to match the style used in the previous
commit.
Differential Revision: https://phabricator.services.mozilla.com/D209896
This commit partially reverts the changes in bug 1888422, to fix an
issue where the contents of `mobile/android/{project}/local.properties`
wouldn't be loaded into `gradle.ext` properties. This broke the ability
to set project-specific properties like `autosignReleaseWithDebugKey`,
`debuggable`, `nimbus`, `glean`, `official`, `mozillaOnline`, etc.
This commit also reverts moving the GeckoView substitution logic into
`shared-settings.gradle`, because it's only needed for Android
Components and Fenix.
Differential Revision: https://phabricator.services.mozilla.com/D209895
This commit factors out the logic into its own settings file, adds
docs, and only imports the settings file into applications that
consume App Services and Glean via Maven (i.e., not GeckoView).
Differential Revision: https://phabricator.services.mozilla.com/D209897
This lets developers set the `autoPublish.*` properties in
`$topsrcdir/mobile/android/{project}/local.properties`. These will
override the `autoPublish.*` properties in
`$topsrcdir/local.properties` if set.
This commit also refactors the `local.properties` loading logic in
`shared-settings.gradle` to match the style used in the previous
commit.
Differential Revision: https://phabricator.services.mozilla.com/D209896
This commit partially reverts the changes in bug 1888422, to fix an
issue where the contents of `mobile/android/{project}/local.properties`
wouldn't be loaded into `gradle.ext` properties. This broke the ability
to set project-specific properties like `autosignReleaseWithDebugKey`,
`debuggable`, `nimbus`, `glean`, `official`, `mozillaOnline`, etc.
This commit also reverts moving the GeckoView substitution logic into
`shared-settings.gradle`, because it's only needed for Android
Components and Fenix.
Depends on D209826
Differential Revision: https://phabricator.services.mozilla.com/D209895
This commit restores the ability to build the Android projects with a
local checkouts of Application Services and Glean. To do so:
1. Create a `local.properties` file in the top source directory
(that is, your checkout of m-c).
2. Add the `autoPublish.application-services.dir` property with the
path to your checkout of Application Services, and/or
`autoPublish.glean.dir` with the path to your checkout of Glean.
Both paths must be relative to the top source directory.
The local publish flow works when building from the top source
directory with `./mach build` or Android Studio, and when building
Android Components, Fenix, or Focus from their respective
project directories with Android Studio or `./gradlew`.
Original patch by: Mark Hammond <mhammond@skippinet.com.au>
Differential Revision: https://phabricator.services.mozilla.com/D206066
To ensure that we can build offline, we need to prevent gradle from
going through remote maven repos directly.
That means also overriding the default plugin repository
(plugins.gradle.org) in the `pluginManagement` section.
Differential Revision: https://phabricator.services.mozilla.com/D201497