Created
December 27, 2022 03:12
-
-
Save dodync/d61c3f58f03aa2441fa2ad283514f845 to your computer and use it in GitHub Desktop.
flutter android ios build script codemagic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatically generated on 2022-10-14 UTC from https://codemagic.io/app/6349e9b122ff8df4cf40df4e/settings | |
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary. | |
workflows: | |
android-workflow: | |
name: Build android release | |
max_build_duration: 60 | |
environment: | |
flutter: default | |
xcode: latest | |
cocoapods: default | |
cache: | |
cache_paths: [] | |
triggering: | |
events: | |
- push | |
branch_patterns: | |
- pattern: '*' | |
include: true | |
source: true | |
tag_patterns: | |
- pattern: '*' | |
include: true | |
scripts: | |
- | | |
# set up local properties | |
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties" | |
- flutter packages pub get | |
- flutter build appbundle | |
artifacts: | |
- build/**/outputs/apk/**/*.apk | |
- build/**/outputs/bundle/**/*.aab | |
- build/**/outputs/**/mapping.txt | |
- '*.snap' | |
- build/windows/**/*.msix | |
- flutter_drive.log | |
publishing: | |
email: | |
recipients: | |
- [email protected] | |
ios-workflow: | |
name: Build ios release | |
max_build_duration: 60 | |
integrations: | |
app_store_connect: Dody App Store | |
environment: | |
flutter: default | |
xcode: latest | |
cocoapods: default | |
ios_signing: | |
distribution_type: app_store | |
bundle_identifier: com.identifier.abc | |
cache: | |
cache_paths: [] | |
triggering: | |
events: | |
- push | |
branch_patterns: | |
- pattern: '*' | |
include: true | |
source: true | |
tag_patterns: | |
- pattern: '*' | |
include: true | |
scripts: | |
- name: Set up code signing settings on Xcode project | |
script: | | |
xcode-project use-profiles | |
- name: Get Flutter packages | |
script: | | |
flutter packages pub get | |
#- name: Install pods | |
# script: | | |
# find . -name "Podfile" -execdir pod install \; | |
- name: Flutter build ipa | |
script: | | |
flutter build ipa --release \ | |
--export-options-plist=/Users/builder/export_options.plist | |
artifacts: | |
- build/ios/ipa/*.ipa | |
- /tmp/xcodebuild_logs/*.log | |
- flutter_drive.log | |
publishing: | |
email: | |
recipients: | |
- [email protected] | |
app_store_connect: | |
auth: integration | |
submit_to_testflight: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment