version: 3 vars: RED: '\033[0;31m' GREEN: '\033[0;32m' COLOROFF: '\033[0m' PREFIX: "⏳" silent: true tasks: clean: desc: Cleans the environment. internal: true cmds: - flutter clean get: desc: Getting latest dependencies. internal: true cmds: - flutter pub get android: desc: Building Android AAB deps: [clean, get] aliases: [a] cmds: - echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Building Android AAB...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}" - flutter build appbundle lib/main_production.dart --dart-define-from-file=config.prod.json --no-pub --obfuscate --split-debug-info="./build/app/outputs/bundle/release/" {{#mustacheCase}}.CLI_ARGS{{/mustacheCase}} - open ./build/app/outputs/bundle/release/ ios: desc: Building iOS IPA deps: [clean, get] aliases: [i] cmds: - echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Building iOS IPA...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}" - flutter build ipa lib/main_production.dart --dart-define-from-file=config.prod.json --no-pub --obfuscate --split-debug-info="./build/ios/archive" {{#mustacheCase}}.CLI_ARGS{{/mustacheCase}} - find "./build/ios/archive" -name "*.xcarchive" -exec open {} \;