Dev settings
This commit is contained in:
parent
c46bf2ebf6
commit
7b24d251d1
2 changed files with 6 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -31,3 +31,4 @@ android/app/key.jks
|
||||||
android/key.properties
|
android/key.properties
|
||||||
|
|
||||||
assets/private-settings.json
|
assets/private-settings.json
|
||||||
|
assets/private-settings-dev.json
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,11 @@ Future<PackageInfo> loadPackageInfo() async {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<Map<String, dynamic>> loadSecrets() async {
|
Future<Map<String, dynamic>> loadSecrets() async {
|
||||||
return await SecretLoader(secretPath: 'assets/private-settings.json').load();
|
return await SecretLoader(
|
||||||
|
secretPath: globals.isDevelopment?
|
||||||
|
'assets/private-settings-dev.json' :
|
||||||
|
'assets/private-settings.json'
|
||||||
|
).load();
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainCommon(List<Middleware<AppState>> otherMiddleware) {
|
void mainCommon(List<Middleware<AppState>> otherMiddleware) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue