mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
Dactyloidae iOS initial commit
This commit is contained in:
parent
daa6179d22
commit
7154a0497e
2123 changed files with 197052 additions and 0 deletions
61
mobile/ios/buddybuild_prebuild.sh
Normal file
61
mobile/ios/buddybuild_prebuild.sh
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
#!/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
|
||||
|
||||
#
|
||||
# Enable File Sharing on all builds except release
|
||||
#
|
||||
|
||||
if [ "$BUDDYBUILD_SCHEME" != "Firefox" ]; then
|
||||
/usr/libexec/PlistBuddy -c "Add UIFileSharingEnabled bool true" "Client/Info.plist"
|
||||
fi
|
||||
|
||||
#
|
||||
# Leanplum is included only for the Firefox and FirefoxBeta builds.
|
||||
#
|
||||
|
||||
if [ "$BUDDYBUILD_SCHEME" = "Firefox" ] || [ "$BUDDYBUILD_SCHEME" = "FirefoxBeta" ]; then
|
||||
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 LeanplumProductionKey $LEANPLUM_KEY_PRODUCTION" "Client/Info.plist"
|
||||
/usr/libexec/PlistBuddy -c "Set LeanplumDevelopmentKey $LEANPLUM_KEY_DEVELOPMENT" "Client/Info.plist"
|
||||
fi
|
||||
|
||||
echo "Setting up Pocket Stories API Key"
|
||||
if [ "$BUDDYBUILD_SCHEME" == Firefox ]; then
|
||||
/usr/libexec/PlistBuddy -c "Set PocketEnvironmentAPIKey $POCKET_PRODUCTION_API_KEY" "Client/Info.plist"
|
||||
else
|
||||
/usr/libexec/PlistBuddy -c "Set PocketEnvironmentAPIKey $POCKET_STAGING_API_KEY" "Client/Info.plist"
|
||||
fi
|
||||
|
||||
#
|
||||
# Setup Sentry. We have different DSNs for Beta and Production.
|
||||
#
|
||||
|
||||
if [ "$BUDDYBUILD_SCHEME" == FirefoxBeta ]; then
|
||||
echo "Setting SentryDSN to $SENTRY_DSN_BETA_105"
|
||||
/usr/libexec/PlistBuddy -c "Set SentryDSN $SENTRY_DSN_BETA_105" "Client/Info.plist"
|
||||
elif [ "$BUDDYBUILD_SCHEME" == Firefox ]; then
|
||||
echo "Setting SentryDSN to $SENTRY_DSN_RELEASE_105"
|
||||
/usr/libexec/PlistBuddy -c "Set SentryDSN $SENTRY_DSN_RELEASE_105" "Client/Info.plist"
|
||||
fi
|
||||
|
||||
#
|
||||
# Set the build number to match the Buddybuild number
|
||||
#
|
||||
|
||||
agvtool new-version -all "$BUDDYBUILD_BUILD_NUMBER"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue