Bug 1248066 - Use separate Adjust token for Firefox for Android release and beta builds. r?glandium draft
authorNick Alexander <nalexander@mozilla.com>
Fri, 12 Feb 2016 14:34:18 -0800
changeset 330770 75ca123e4c2871c3f0fb848b91b3c6f7ed76ff06
parent 330769 42412cc0af262a92cadb2241083e720292e99cc4
child 514242 77ba0cabe2b1e81ce1e566b7c45b6e78e87ef592
push id10830
push usernalexander@mozilla.com
push dateFri, 12 Feb 2016 22:34:37 +0000
reviewersglandium
bugs1248066
milestone47.0a1
Bug 1248066 - Use separate Adjust token for Firefox for Android release and beta builds. r?glandium The token is only used for release and beta builds, so it's better not to define it inadvertently for all builds. MozReview-Commit-ID: 3DLem4PhXD7
mobile/android/config/mozconfigs/common
--- a/mobile/android/config/mozconfigs/common
+++ b/mobile/android/config/mozconfigs/common
@@ -44,17 +44,21 @@ ac_add_options --with-android-gnu-compil
 ac_add_options --with-android-version=9
 ac_add_options --with-system-zlib
 ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
 
 # Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
 ac_add_options --enable-warnings-as-errors
 
 ac_add_options --with-mozilla-api-keyfile=/builds/mozilla-fennec-geoloc-api.key
-ac_add_options --with-adjust-sdk-keyfile=/builds/adjust-sdk.token
+if test "$MOZ_UPDATE_CHANNEL" = "release" ; then
+    ac_add_options --with-adjust-sdk-keyfile=/builds/adjust-sdk.token
+elif test "$MOZ_UPDATE_CHANNEL" = "beta" ; then
+    ac_add_options --with-adjust-sdk-keyfile=/builds/adjust-sdk-beta.token
+fi
 export SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE=/builds/crash-stats-api.token
 
 # Package js shell.
 export MOZ_PACKAGE_JSSHELL=1
 
 # Use ccache
 . "$topsrcdir/build/mozconfig.cache"