forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 13
/
buddybuild_prebuild.sh
executable file
·40 lines (31 loc) · 1.48 KB
/
buddybuild_prebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
#
# Add our Adjust keys to the build depending on the scheme. We use the sandbox for beta so
# that we have some insight in beta usage.
#
if [ "$BUDDYBUILD_SCHEME" == FirefoxBeta ]; then
echo "Setting Adjust environment to SANDBOX for $BUDDYBUILD_SCHEME"
/usr/libexec/PlistBuddy -c "Set AdjustAppToken $ADJUST_KEY_BETA" "Client/Info.plist"
/usr/libexec/PlistBuddy -c "Set AdjustEnvironment production" "Client/Info.plist"
elif [ "$BUDDYBUILD_SCHEME" == Firefox ]; then
echo "Setting Adjust environment to PRODUCTION for $BUDDYBUILD_SCHEME"
/usr/libexec/PlistBuddy -c "Set AdjustAppToken $ADJUST_KEY_PRODUCTION" "Client/Info.plist"
/usr/libexec/PlistBuddy -c "Set AdjustEnvironment production" "Client/Info.plist"
fi
#
# Leanplum is set to production for all builds. Only Fennec locally will use
# development settings, because those are not intended to ship to actual users.
#
echo "Setting Leanplum environment to PRODUCTION for $BUDDYBUILD_SCHEME"
/usr/libexec/PlistBuddy -c "Set LeanplumAppId $LEANPLUM_APP_ID" "Client/Info.plist"
/usr/libexec/PlistBuddy -c "Set LeanplumEnvironment production" "Client/Info.plist"
/usr/libexec/PlistBuddy -c "Set LeanplumKey $LEANPLUM_KEY_PRODUCTION" "Client/Info.plist"
#
# Sentry is enabled for all our builds.
#
echo "Setting Sentry DSN to $SENTRY_DSN"
/usr/libexec/PlistBuddy -c "Set SentryDSN $SENTRY_DSN" "Client/Info.plist"
#
# Set the build number to match the Buddybuild number
#
agvtool new-version -all "$BUDDYBUILD_BUILD_NUMBER"