- Select desired build triggers, i.e. include target experimental, trigger on push
- APP_VERSION
- Major, minor, and patch version number
- Accepted:
7.3.0
,8.1.15
, etc.
- BUILD_ENV
- Build environment
- Accepted:
QA
,PROD-TEST
,PROD
- APP_CONFIG
- Build configuration settings for campus mobile
- Value: Encrypted and secured
app-config.js
- SP_CONFIG
- Sharepoint integration configuration
- Value: Encrypted and secured
sp-config.json
- FIREBASE_IOS
- Firebase config for iOS
- Value: Encrypted and secured
FIREBASE_IOS_QA.plist
orFIREBASE_IOS_PROD.plist
- FIREBASE_ANDROID
- Firebase config for Android
- Value: Encrypted and secured
FIREBASE_ANDROID_QA.json
orFIREBASE_ANDROID_PROD.json
- BUILD_PLATFORM
- Build platform
- Accepted:
IOS
,ANDROID
Encrypting Environment Variables
- Click the text link
Encrypt environment variables
underConfiguration as code
in the right pane - Drag and drop the file to encrypt
- Copy the encrypted value, and paste it into the
Variable value
field in theEnvironment variables
section - Click the
Secure
checkbox to hide and secure the encrypted value
- Copy and paste the contents of
post-clone.sh
fromcampus-mobile/scripts/codemagic-ci
- Select the desired build platform OS (Android and/or iOS)
- Choose the build mode (Release)
- Add build arguements:
--build-name=$APP_VERSION --build-number=$PROJECT_BUILD_NUMBER
-
Enable Android code signing
- Required:
- Keystore file
- Keystore password
- Key alias
- Key password
- Required:
-
Enable iOS code signing
- Select code signing method: Manual
- Required:
- Code signing certificate (
UCSDDistribution_2020-12-08.p12
) - Certificate password
- Provisioning profiles (
UC_San_Diego.mobileprovision
)
- Code signing certificate (
-
Google Play
- Check
Enable Google Play publishing
- Required: Credentials.json
- Select Track:
- Internal
- Alpha
- Beta
- Check
-
App Store Connect
- Check
Enable App Store Connect publishing
- Required:
- Apple ID
- App-specific password
- Check
- Copy and paste the contents of
post-publish.sh
fromcampus-mobile/scripts/codemagic-ci