74 lines
2.2 KiB
YAML
74 lines
2.2 KiB
YAML
version: 3
|
|
|
|
vars:
|
|
RED: '\033[0;31m'
|
|
GREEN: '\033[0;32m'
|
|
COLOROFF: '\033[0m'
|
|
PREFIX: "⏳"
|
|
|
|
includes:
|
|
gen: ./automation/generator.yml
|
|
pub: ./automation/pub.yml
|
|
run: ./automation/run.yml
|
|
build: ./automation/build.yml
|
|
|
|
silent: true
|
|
|
|
tasks:
|
|
help:
|
|
desc: Help dialog.
|
|
aliases: [h, default]
|
|
cmds:
|
|
- task --summary --list-all
|
|
|
|
clean:
|
|
desc: Cleans the environment.
|
|
aliases: [cl]
|
|
cmds:
|
|
- echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Cleaning the project...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}"
|
|
- flutter clean
|
|
|
|
format:
|
|
desc: Formats the code.
|
|
aliases: [fmt]
|
|
cmds:
|
|
- echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Formatting the code...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}"
|
|
- flutter format --fix
|
|
- dart fix --apply
|
|
|
|
lint:
|
|
desc: Lints the code.
|
|
aliases: [l]
|
|
cmds:
|
|
- echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Verifying code...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}"
|
|
- dart analyze . || (echo "Error in project"; exit 1)
|
|
|
|
bootstrap:
|
|
desc: Bootstraps the project.
|
|
aliases: [bs]
|
|
cmds:
|
|
- melos bs || true
|
|
- flutter pub get
|
|
- dart run build_runner build --delete-conflicting-outputs
|
|
- flutter gen-l10n
|
|
- fluttergen || true
|
|
|
|
encrypt-android-keys:
|
|
desc: Encrypt Android keys
|
|
aliases: [eak]
|
|
cmds:
|
|
- cd android && jar cfvM android_keys.zip android_keys
|
|
- source '.env' && gpg --quiet --batch --yes --symmetric --passphrase=$ANDROID_KEYS_SECRET_PASSPHRASE --output android/android_keys.zip.gpg android/android_keys.zip
|
|
- rm -rf android/android_keys
|
|
- rm android/android_keys.zip
|
|
|
|
decrypt-android-keys:
|
|
desc: Decrypt Android keys
|
|
aliases: [dak]
|
|
cmds:
|
|
- source '.env' && gpg --quiet --batch --yes --decrypt --passphrase=$ANDROID_KEYS_SECRET_PASSPHRASE --output android/android_keys.zip android/android_keys.zip.gpg
|
|
- cd android && jar xvf android_keys.zip
|
|
- mv android/android_keys/* android/
|
|
- rm -rf android/android_keys
|
|
- rm android/android_keys.zip
|