Changed build instruction for android. Fixed generation of localization files script.
M committed
Mar 31, 2021 at 12:09 UTC
eb6c1211faebf44454c81f97b88716f2aac460a5
2 files changed
+11
-1
howto-build-android.md
+5
-1
@@ -125,6 +125,10 @@ Next, we must generate key properties based on the secure keystore you generated
125
126
**REMINDER:** The *above* command will **not** succeed unless you replaced the `storePassword` and `keyPassword` variables with the correct passwords for your keystore.
127
128
+Then we need to generate localization files.
129
+
130
+`$ flutter packages pub run tool/generate_localization.dart`
131
+
132
Lastly, we will generate mobx models for the project.
133
134
`$ flutter packages pub run build_runner build --delete-conflicting-outputs`
@@ -133,4 +137,4 @@ Lastly, we will generate mobx models for the project.
137
138
`$ flutter build apk —release`
139
136
-Copyright (c) 2021 Cake Technologies LLC.
\ No newline at end of file
140
+Copyright (c) 2021 Cake Technologies LLC.
tool/generate_localization.dart
+6
@@ -27,6 +27,12 @@ Future<void> main(List<String> args) async {
27
})
28
: <String, dynamic> {srcDir : inputPath};
29
30
+ final outputDir = Directory(outputPath);
31
+
32
+ if (!outputDir.existsSync()) {
33
+ await outputDir.create();
34
+ }
35
+
36
extraInfo.forEach((key, dynamic value) async {
37
if (key != srcDir) {
38
print('Wrong key: $key');