mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 12:23:31 +00:00
Initial try of Android codemagic config
This commit is contained in:
parent
54565a9669
commit
3bfe635c6c
1 changed files with 49 additions and 0 deletions
49
codemagic.yaml
Normal file
49
codemagic.yaml
Normal file
|
@ -0,0 +1,49 @@
|
|||
workflows:
|
||||
android-workflow:
|
||||
name: Android Workflow
|
||||
instance_type: mac_mini_m1
|
||||
max_build_duration: 120
|
||||
environment:
|
||||
android_signing:
|
||||
- codemagickeystore
|
||||
groups:
|
||||
- google_play # <-- (Includes GCLOUD_SERVICE_ACCOUNT_CREDENTIALS)
|
||||
vars:
|
||||
PACKAGE_NAME: "relatica.myportal.social" # <-- Put your package name here
|
||||
GOOGLE_PLAY_TRACK: "internal"
|
||||
flutter: stable
|
||||
scripts:
|
||||
- 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: Flutter analyze
|
||||
script: |
|
||||
flutter analyze
|
||||
- name: Flutter unit tests
|
||||
script: |
|
||||
flutter test
|
||||
ignore_failure: true
|
||||
- name: Build AAB with Flutter
|
||||
script: |
|
||||
BUILD_NUMBER=$(($(google-play get-latest-build-number --package-name "$PACKAGE_NAME" --tracks="$GOOGLE_PLAY_TRACK") + 1))
|
||||
flutter build appbundle --release \
|
||||
--build-name=0.9.$BUILD_NUMBER \
|
||||
--build-number=$BUILD_NUMBER
|
||||
artifacts:
|
||||
- build/**/outputs/**/*.aab
|
||||
- build/**/outputs/**/mapping.txt
|
||||
- flutter_drive.log
|
||||
publishing:
|
||||
email:
|
||||
recipients:
|
||||
- codemagic@myportal.social
|
||||
notify:
|
||||
success: true
|
||||
failure: false
|
||||
google_play:
|
||||
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
|
||||
track: $GOOGLE_PLAY_TRACK
|
||||
submit_as_draft: true
|
Loading…
Reference in a new issue