Skip to content

Commit

Permalink
👷 : Trying to get working codemagic
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPLukaas committed May 30, 2024
1 parent 9008a2d commit 2ae0b24
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/.php-cs-fixer.cache

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions codemagic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
workflows:
flutter-app:
name: my3iL
working_directory: frontend/app_student
environment:
flutter: "3.19.2"
xcode: latest
vars:
PROD_API_URL: "https://api.lukasvalois.com"
DEV_API_URL: "https://api-dev.lukasvalois.com"
groups:
- firebase_credentials
triggering:
events:
- push
branch_patterns:
- pattern: dev
include: true
source: true
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: Add Firebase configuration
script: |
echo $FIREBASE_CONFIG | base64 --decode > android/app/google-services.json
- 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=1.0.$BUILD_NUMBER \
--build-number=$BUILD_NUMBER
artifacts:
- build/**/outputs/**/*.aab
- build/**/outputs/**/mapping.txt
- flutter_drive.log
publishing:
email:
recipients:
- [email protected]
notify:
success: true
failure: false
google_play:
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
track: $GOOGLE_PLAY_TRACK
submit_as_draft: true
1 change: 0 additions & 1 deletion frontend/app_student/codemagic.yaml

This file was deleted.

0 comments on commit 2ae0b24

Please sign in to comment.