forked from espresso-cash/espresso-cash-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
86 lines (83 loc) · 3.25 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
workflows:
app-android:
name: App Publishing Workflow
max_build_duration: 60
instance_type: mac_mini_m1
integrations:
app_store_connect: app
working_directory: packages/espressocash_app
environment:
groups:
- common
- google_credentials
flutter: 3.24.3
xcode: 15.3
java: 17
cocoapods: 1.13.0
android_signing:
- app
ios_signing:
distribution_type: app_store
bundle_identifier: com.pleasecrypto.flutter
scripts:
- name: Set up local.properties
script: |
echo "flutter.sdk=$HOME/programs/flutter" > "android/local.properties"
- name: Set up code signing settings on Xcode project
script: xcode-project use-profiles
- name: Get Flutter packages
script: |
flutter packages pub get
- name: Generate code
script: |
flutter pub run build_runner build --delete-conflicting-outputs
- name: Build AAB with Flutter
script: |
BUILD_NUMBER=$(($PROJECT_BUILD_NUMBER + 200))
flutter build appbundle --release \
--build-number=$BUILD_NUMBER \
--dart-define PROD=true \
--dart-define SOLANA_RPC_URL=$SOLANA_RPC_URL \
--dart-define SOLANA_WEBSOCKET_URL=$SOLANA_WEBSOCKET_URL \
--dart-define SENTRY_DSN=$SENTRY_DSN \
--dart-define RAMP_API_KEY=$RAMP_API_KEY \
--dart-define KADO_API_KEY=$KADO_API_KEY \
--dart-define GUARDARIAN_API_KEY=$GUARDARIAN_API_KEY \
--dart-define INTERCOM_APP_ID=$INTERCOM_APP_ID \
--dart-define INTERCOM_IOS_KEY=$INTERCOM_IOS_KEY \
--dart-define INTERCOM_ANDROID_KEY=$INTERCOM_ANDROID_KEY \
--dart-define MIXPANEL_TOKEN=$MIXPANEL_TOKEN \
--dart-define STELLAR_PROD=true \
--dart-define SOROBAN_RPC_URL=$SOROBAN_RPC_URL
- name: Build IPA with Flutter
script: |
BUILD_NUMBER=$(($PROJECT_BUILD_NUMBER + 200))
flutter build ipa --release \
--export-options-plist=/Users/builder/export_options.plist \
--build-number=$BUILD_NUMBER \
--dart-define PROD=true \
--dart-define SOLANA_RPC_URL=$SOLANA_RPC_URL \
--dart-define SOLANA_WEBSOCKET_URL=$SOLANA_WEBSOCKET_URL \
--dart-define SENTRY_DSN=$SENTRY_DSN \
--dart-define RAMP_API_KEY=$RAMP_API_KEY \
--dart-define KADO_API_KEY=$KADO_API_KEY \
--dart-define GUARDARIAN_API_KEY=$GUARDARIAN_API_KEY \
--dart-define INTERCOM_APP_ID=$INTERCOM_APP_ID \
--dart-define INTERCOM_IOS_KEY=$INTERCOM_IOS_KEY \
--dart-define INTERCOM_ANDROID_KEY=$INTERCOM_ANDROID_KEY \
--dart-define MIXPANEL_TOKEN=$MIXPANEL_TOKEN \
--dart-define STELLAR_PROD=true \
--dart-define SOROBAN_RPC_URL=$SOROBAN_RPC_URL
artifacts:
- build/**/outputs/**/*.aab
- build/**/outputs/**/mapping.txt
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- flutter_drive.log
publishing:
google_play:
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
track: alpha
submit_as_draft: false
app_store_connect:
auth: integration