Fixed cast for json to dart Map<String, dynamic> instead of Map<String, String> in too/secrets.dart

This commit is contained in:
M 2020-01-08 15:59:37 +02:00
parent 78ec11de47
commit 26ed668611

View file

@ -12,7 +12,7 @@ Future<void> main() async {
: secretsTestPath;
final inoutContent = File(inputPath).readAsStringSync();
final config = json.decode(inoutContent) as Map<String, String>;
final config = json.decode(inoutContent) as Map<String, dynamic>;
final output =
'const salt = \'${config["salt"]}\';\nconst key = \'${config["key"]}\';\nconst walletSalt = \'${config["walletSalt"]}\';\nconst shortKey = \'${config["shortKey"]}\';\nconst change_now_api_key = \'${config["change_now_api_key"]}\';';