Skip to content

Instantly share code, notes, and snippets.

@tayormi
Created November 20, 2019 15:09
Show Gist options
  • Select an option

  • Save tayormi/5cd9c1bbfdb2655cd4eafdf107b7913a to your computer and use it in GitHub Desktop.

Select an option

Save tayormi/5cd9c1bbfdb2655cd4eafdf107b7913a to your computer and use it in GitHub Desktop.
CodeMagic configuration for ReciMix
workflows:
default-workflow:
name: Default Workflow
environment:
flutter: stable
scripts:
- |
# set up debug key.properties
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 config --enable-web
- flutter build apk --debug
- |
# build web
flutter build web --debug
cd build/web
7z a -r ../web.zip ./*
artifacts:
- build/**/outputs/**/*.apk
- build/**/outputs/**/*.aab
- build/**/outputs/**/mapping.txt
- build/web.zip
- flutter_drive.log
publishing:
email:
recipients:
- [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment