feat!: Use new localisation setup from flutter 1.22
BREAKING CHANGE: This introduces that it might require up to 2 compiles for locals to work. Also only arb files shall be checked into git. Took 19 minutes
This commit is contained in:
parent
f6a4d2e5b5
commit
62cbc864f1
88 changed files with 489 additions and 12311 deletions
|
|
@ -38,7 +38,6 @@ build_web:
|
|||
- cd web/ && rm sqljs-wasm.zip && cd ../
|
||||
- flutter clean
|
||||
- flutter pub get
|
||||
- flutter pub pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/l10n/l10n.dart lib/l10n/intl_*.arb
|
||||
- flutter build web --release --verbose
|
||||
# upload elsewhere, if wanted
|
||||
artifacts:
|
||||
|
|
@ -69,7 +68,6 @@ build_android_apk:
|
|||
- cd android && echo "storeFile=../key.jks" >> key.properties && cd ..
|
||||
- cd android/app && echo $GOOGLE_SERVICES >> google-services.json && cd ../..
|
||||
- flutter pub get
|
||||
- flutter pub pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/l10n/l10n.dart lib/l10n/intl_*.arb
|
||||
- flutter build apk --release
|
||||
- mkdir -p build/android
|
||||
- cp build/app/outputs/apk/release/app-release.apk build/android/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue