-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
49 lines (48 loc) · 1.79 KB
/
codemagic.yaml
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
40
41
42
43
44
45
46
47
48
49
workflows:
android-workflow-id:
name: QA workflow
max_build_duration: 120
instance_type: mac_mini_m1
environment:
groups:
- firebase_credentials
scripts:
- name: Load Firebase configuration
script: |
echo $ANDROID_FIREBASE_JSON | base64 --decode > $CM_BUILD_DIR/android/app/google-services.json
# echo $IOS_FIREBASE_JSON | base64--decode > $CM_BUILD_DIR/ios/Runner/GoogleService-Info.plist
- name: Set up local.properties
script: |
echo "flutter.sdk=$HOME/programs/flutter" > "$CM_BUILD_DIR/android/local.properties"
- name: Get Flutter packages
script: |
flutter packages pub get
- name: Build AAB with Flutter
script: |
flutter build appbundle --release --build-name=1.0.$PROJECT_BUILD_NUMBER --build-number=$PROJECT_BUILD_NUMBER
- name: Build APK with Flutter
script: |
flutter build apk --release --build-name=1.0.$PROJECT_BUILD_NUMBER --build-number=$PROJECT_BUILD_NUMBER
artifacts:
- build/**/outputs/**/*.aab
- build/**/outputs/**/*.apk
- build/**/outputs/**/mapping.txt
- flutter_drive.log
publishing:
firebase:
firebase_service_account: $FIREBASE_SERVICE_ACCOUNT
android:
app_id: 1:777924062407:android:3ddbf2f1fbdc4358d2e2e2
groups:
- internal
artifact_type: apk
slack:
channel: "#build"
notify_on_build_start: true # To receive a notification when a build starts
notify:
success: true # To not receive a notification when a build succeeds
failure: true # To not receive a notification when a build fails
ios-workflow-id:
name: ios QA workflow
max_build_duration: 120
instance_type: mac_mini_m1