From 851c3a6839bc045432f76a337197db5e0a878948 Mon Sep 17 00:00:00 2001 From: Fareez Iqmal <60868965+iqfareez@users.noreply.github.com> Date: Sat, 11 Feb 2023 13:32:24 +0800 Subject: [PATCH] :wrench: Added codemagic config file --- codemagic.yaml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 codemagic.yaml diff --git a/codemagic.yaml b/codemagic.yaml new file mode 100644 index 0000000..bec1815 --- /dev/null +++ b/codemagic.yaml @@ -0,0 +1,51 @@ +# Automatically generated on 2023-02-11 UTC from https://codemagic.io/app/63e722fdb96d2f5c6eea9cfb/settings +# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary. + +workflows: + default-workflow: + name: Default Workflow + max_build_duration: 60 + environment: + flutter: stable + xcode: latest + cocoapods: default + triggering: + events: + - tag + branch_patterns: + - pattern: '*' + include: true + source: true + tag_patterns: + - pattern: '*' + include: true + scripts: + - | + set -e + # set up debug keystore + 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 + - | + # set up local properties + echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties" + - flutter packages pub get + - flutter build appbundle --release + artifacts: + - build/**/outputs/apk/**/*.apk + - build/**/outputs/bundle/**/*.aab + - build/**/outputs/**/mapping.txt + - '*.snap' + - build/windows/**/*.msix + - flutter_drive.log + publishing: + email: + recipients: + - iqmal3@outlook.com