[components] Added features to support application-services branch builds
commit8f0ae3d3979a60ea057f3a1be1140ccff237c40a
authorBen Dean-Kawamura <bdk@mozilla.com>
Tue, 21 Dec 2021 20:51:21 +0000 (21 15:51 -0500)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 20 Apr 2022 19:00:38 +0000 (20 19:00 +0000)
tree1f2d8bdff8683901bdf8c7134a2632a86a53d2e9
parent0c30075c0706609d5e54d19cfdad64c9e9c82927
[components] Added features to support application-services branch builds

Added support for branch-build settings in `local.properties`:
  - If `branchBuild.android-components.version` is set, then we
    set the android-components version to that exact string.

  - If `branchBuild.application-services.dir` is set, then run
    `build-scripts/substitute-local-appservices.gradle` script, like we
    do with `autoPublish`.  However, in this case, that script expects
    the app-services packages to be be built ahead of time with a
    specific version name specified by
    `branchBuild.application-services.version`.

  - Added support for the absolute paths when running the substutition
    scripts.

  - Updated `substitute-local-ac.gradle` to check the
    `localProperties.branchBuild.android-components.version`.

The plan is to use this feature to build/test fenix using a particular
checkout of application-services and androd-components, with the
versions set to the git commit ID.
mobile/android/android-components/build.gradle
mobile/android/android-components/components/support/base/build.gradle
mobile/android/android-components/settings.gradle
mobile/android/android-components/substitute-local-ac.gradle