parent
38303bbba3
commit
86c95201b8
1 changed files with 54 additions and 0 deletions
@ -0,0 +1,54 @@ |
|||||||
|
workflows: |
||||||
|
default-workflow: |
||||||
|
name: Default Workflow |
||||||
|
instance_type: mac_mini |
||||||
|
max_build_duration: 30 |
||||||
|
environment: |
||||||
|
flutter: stable |
||||||
|
xcode: latest |
||||||
|
cocoapods: default |
||||||
|
scripts: |
||||||
|
- name: Set up debug keystore |
||||||
|
script: | |
||||||
|
rm -f ~/.android/debug.keystore |
||||||
|
keytool -genkeypair \ |
||||||
|
-alias androiddebugkey \ |
||||||
|
-keypass android \ |
||||||
|
-keystore ~/.android/debug.keystore \ |
||||||
|
-storepass android \ |
||||||
|
-dname 'CN=Android Debug,O=Android,C=US' \ |
||||||
|
-keyalg 'RSA' \ |
||||||
|
-keysize 2048 \ |
||||||
|
-validity 10000 |
||||||
|
- name: Set up local properties |
||||||
|
script: | |
||||||
|
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/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: Flutter build android |
||||||
|
script: | |
||||||
|
flutter build apk --release |
||||||
|
- name: Install pods |
||||||
|
script: | |
||||||
|
find . -name "Podfile" -execdir pod install \; |
||||||
|
- name: Flutter build ios |
||||||
|
script: | |
||||||
|
# flutter build ios --release --no-codesign |
||||||
|
flutter build ipa --release |
||||||
|
artifacts: |
||||||
|
- build/**/outputs/apk/**/*.apk |
||||||
|
- build/**/outputs/bundle/**/*.aab |
||||||
|
- build/**/outputs/**/mapping.txt |
||||||
|
- build/ios/ipa/*.ipa |
||||||
|
- /tmp/xcodebuild_logs/*.log |
||||||
|
- '*.snap' |
||||||
|
- build/windows/**/*.msix |
||||||
|
- flutter_drive.log |
||||||
|
publishing: |
||||||
|
email: |
||||||
|
recipients: |
||||||
|
- shinabebel@gmail.com |
||||||
Reference in new issue