Changed build instruction for android. Fixed generation of localization files script.

This commit is contained in:
M 2021-03-31 12:09:30 +03:00
parent c0a12c6026
commit eb6c1211fa
2 changed files with 11 additions and 1 deletions

View file

@ -125,6 +125,10 @@ Next, we must generate key properties based on the secure keystore you generated
**REMINDER:** The *above* command will **not** succeed unless you replaced the `storePassword` and `keyPassword` variables with the correct passwords for your keystore. **REMINDER:** The *above* command will **not** succeed unless you replaced the `storePassword` and `keyPassword` variables with the correct passwords for your keystore.
Then we need to generate localization files.
`$ flutter packages pub run tool/generate_localization.dart`
Lastly, we will generate mobx models for the project. Lastly, we will generate mobx models for the project.
`$ flutter packages pub run build_runner build --delete-conflicting-outputs` `$ flutter packages pub run build_runner build --delete-conflicting-outputs`
@ -133,4 +137,4 @@ Lastly, we will generate mobx models for the project.
`$ flutter build apk —release` `$ flutter build apk —release`
Copyright (c) 2021 Cake Technologies LLC. Copyright (c) 2021 Cake Technologies LLC.

View file

@ -27,6 +27,12 @@ Future<void> main(List<String> args) async {
}) })
: <String, dynamic> {srcDir : inputPath}; : <String, dynamic> {srcDir : inputPath};
final outputDir = Directory(outputPath);
if (!outputDir.existsSync()) {
await outputDir.create();
}
extraInfo.forEach((key, dynamic value) async { extraInfo.forEach((key, dynamic value) async {
if (key != srcDir) { if (key != srcDir) {
print('Wrong key: $key'); print('Wrong key: $key');