feat: Refactor Codemagic scripts for improved readability and maintainability
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
workflows:
|
# Reusable script for building the Flutter app
|
||||||
# =================================================================================
|
build-script: &build-script
|
||||||
# Reusable Scripts
|
|
||||||
# =================================================================================
|
|
||||||
build-script: &build-script
|
|
||||||
name: Build Flutter App
|
name: Build Flutter App
|
||||||
script: |
|
script: |
|
||||||
flutter pub get
|
flutter pub get
|
||||||
@@ -15,23 +12,25 @@ workflows:
|
|||||||
# Build iOS
|
# Build iOS
|
||||||
flutter build ipa --flavor $FLAVOR --export-options-plist=$FCI_BUILD_DIR/mobile-apps/client-app/ios/exportOptions.plist
|
flutter build ipa --flavor $FLAVOR --export-options-plist=$FCI_BUILD_DIR/mobile-apps/client-app/ios/exportOptions.plist
|
||||||
|
|
||||||
distribute-script: &distribute-script
|
# Reusable script for distributing to Firebase
|
||||||
|
distribute-script: &distribute-script
|
||||||
name: Distribute to Firebase App Distribution
|
name: Distribute to Firebase App Distribution
|
||||||
script: |
|
script: |
|
||||||
# Distribute Android
|
# Distribute Android
|
||||||
firebase appdistribution:distribute "build/app/outputs/bundle/${FLAVOR}Release/app-${FLAVOR}-release.aab" \
|
firebase appdistribution:distribute "build/app/outputs/bundle/${FLAVOR}Release/app-${FLAVOR}-release.aab" \
|
||||||
--app $FIREBASE_APP_ID_ANDROID \
|
--app $FIREBASE_APP_ID_ANDROID \
|
||||||
--release-notes "Build $FCI_BUILD_NUMBER" \
|
--release-notes "Build $FCI_BUILD_NUMBE R" \
|
||||||
--groups "$FIREBASE_TESTER_GROUPS" \
|
--groups "$FIREBASE_TESTER_GROUPS" \
|
||||||
--token $FIREBASE_TOKEN
|
--token $FIREBASE_TOKEN
|
||||||
|
|
||||||
# Distribute iOS
|
# Distribute iOS
|
||||||
firebase appdistribution:distribute "build/ios/ipa/app.ipa" \
|
firebase appdistribution:distribute "build/ios/ipa/app.ipa" \
|
||||||
--app $FIREBASE_APP_ID_IOS \
|
--app $FIREBASE_APP_ID_IOS \
|
||||||
--release-notes "Build $FCI_BUILD_NUMBER" \
|
--release-notes "Build $FCI_BUILD_NUMBE R" \
|
||||||
--groups "$FIREBASE_TESTER_GROUPS" \
|
--groups "$FIREBASE_TESTER_GROUPS" \
|
||||||
--token $FIREBASE_TOKEN
|
--token $FIREBASE_TOKEN
|
||||||
|
|
||||||
|
workflows:
|
||||||
# =================================================================================
|
# =================================================================================
|
||||||
# Base workflow for client_app
|
# Base workflow for client_app
|
||||||
# =================================================================================
|
# =================================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user