fune/taskcluster/scripts/builder/build-android.sh
Julien Cristau f04f333525 Bug 1824856 - use maven repos populated by a-g-d in firefox-android tasks. r=glandium,bhearsum,firefox-build-system-reviewers
Not using gradle-offline at this point because that needs more work for glean_parser.

Differential Revision: https://phabricator.services.mozilla.com/D201542
2024-01-25 19:10:08 +01:00

34 lines
1.1 KiB
Bash
Executable file

#!/bin/sh
set -e
set -x
mozconfig=$(mktemp)
cat > $mozconfig <<EOF
# the corresponding geckoview's mozconfig, to pick up its config options
. $MOZCONFIG
# no-compile because we don't need to build native code here
. $GECKO_PATH/build/mozconfig.no-compile
# Disable Keyfile Loading (and checks)
# This overrides the settings in the common android mozconfig
ac_add_options --without-mozilla-api-keyfile
ac_add_options --without-google-location-service-api-keyfile
ac_add_options --without-google-safebrowsing-api-keyfile
ac_add_options --disable-nodejs
unset NODEJS
export GRADLE_MAVEN_REPOSITORIES="file://$MOZ_FETCHES_DIR/geckoview","file://$MOZ_FETCHES_DIR/android-gradle-dependencies/mozilla","file://$MOZ_FETCHES_DIR/android-gradle-dependencies/google","file://$MOZ_FETCHES_DIR/android-gradle-dependencies/central","file://$MOZ_FETCHES_DIR/android-gradle-dependencies/gradle-plugins","file:///$MOZ_FETCHES_DIR/plugins.gradle.org/m2"
EOF
export MOZCONFIG=$mozconfig
./mach configure
eval $PRE_GRADLEW
eval $GET_SECRETS
./gradlew listRepositories $GRADLEW_ARGS
eval $POST_GRADLEW