Skip to content

Instantly share code, notes, and snippets.

@dodync
Created December 27, 2022 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dodync/d61c3f58f03aa2441fa2ad283514f845 to your computer and use it in GitHub Desktop.
Save dodync/d61c3f58f03aa2441fa2ad283514f845 to your computer and use it in GitHub Desktop.
flutter android ios build script codemagic
# 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:
- dodyrw@gmail.com
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:
- dodyrw@gmail.com
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