Repository navigation
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
82 lines (67 loc) · 1.97 KB
/
Copy pathcodemagic.yaml
File metadata and controls
82 lines (67 loc) · 1.97 KB
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
workflows:
ios-production:
name: iOS Production
max_build_duration: 120
instance_type: mac_mini_m2
integrations:
app_store_connect: Main
triggering:
events:
- push
branch_patterns:
- pattern: master
include: true
source: true
environment:
groups:
- main
flutter: stable
xcode: latest
ios_signing:
distribution_type: app_store
bundle_identifier: com.numex.ai.app
scripts:
- name: Show tool versions
script: |
flutter --version
xcodebuild -version
pod --version
- name: Get Flutter packages
script: |
cd app
flutter pub get
- name: Analyze
script: |
cd app
flutter analyze
- name: Run tests
script: |
cd app
flutter test
- name: Set up iOS code signing
script: |
cd app
xcode-project use-profiles
- name: Build iOS IPA
script: |
cd app
BUILD_NAME=$(grep '^version:' pubspec.yaml | sed 's/version: //' | cut -d+ -f1)
IOS_BUILD_NUMBER=$(($BUILD_NUMBER + 1))
echo "Building iOS version $BUILD_NAME ($IOS_BUILD_NUMBER)"
echo "Using configured API_BASE_URL"
flutter build ipa --release \
--build-name=$BUILD_NAME \
--build-number=$IOS_BUILD_NUMBER \
--dart-define=GOOGLE_WEB_CLIENT_ID="$GOOGLE_WEB_CLIENT_ID" \
--dart-define=API_BASE_URL="$API_BASE_URL" \
--dart-define=REVENUECAT_API_KEY="$REVENUECAT_API_KEY" \
--export-options-plist="$HOME/export_options.plist"
artifacts:
- app/build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
app_store_connect:
auth: integration
submit_to_testflight: true
submit_to_app_store: false