diff --git a/codemagic.yaml b/codemagic.yaml new file mode 100644 index 0000000..536bee5 --- /dev/null +++ b/codemagic.yaml @@ -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