-
Notifications
You must be signed in to change notification settings - Fork 3
/
codemagic.yaml
41 lines (41 loc) · 1.16 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
workflows:
android-workflow:
name: Android Workflow
max_build_duration: 120
environment:
flutter: stable
xcode: latest
vars:
PACKAGE_NAME: "br.com.ismael.pay_flow"
GOOGLE_PLAY_TRACK: production
groups:
- keystore_credentials
- repo_credentials
- google_play
android_signing:
- pay-flow-keystore
scripts:
- name: Set up local.properties
script: echo "flutter.sdk=$HOME/programs/flutter" > "$CM_BUILD_DIR/android/local.properties"
- name: Update version pubspec.yaml
script: |
chmod +x scripts/update_version.sh
./scripts/update_version.sh
- name: Build AAB with Flutter
script: |
flutter build appbundle --release
artifacts:
- build/**/outputs/**/*.aab
- build/**/outputs/**/mapping.txt
- flutter_drive.log
publishing:
email:
recipients:
notify:
success: true
failure: true
google_play:
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
track: $GOOGLE_PLAY_TRACK
submit_as_draft: false