mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
CW 781 replace all print statements with printV (#1733)
* replace all print statements with printV * restore backup error message * missing print statements, error fixes * Update cw_core/lib/utils/print_verbose.dart [skip ci] * Update cw_core/lib/utils/print_verbose.dart [skip ci] * CW-846: Correctly display balance (#1848) * Correctly display balance even with frozen coins * remove package= from AndroidMainfest.xml * update namespace * print -> printV --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
parent
c74194abf4
commit
c78662fbfe
124 changed files with 578 additions and 343 deletions
|
@ -1,5 +1,7 @@
|
|||
import 'dart:io';
|
||||
import 'dart:convert';
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
|
||||
import 'localization/localization_constants.dart';
|
||||
import 'utils/utils.dart';
|
||||
|
||||
|
@ -35,7 +37,7 @@ Future<void> main(List<String> args) async {
|
|||
|
||||
extraInfo.forEach((key, dynamic value) async {
|
||||
if (key != srcDir) {
|
||||
print('Wrong key: $key');
|
||||
printV('Wrong key: $key');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -43,7 +45,7 @@ Future<void> main(List<String> args) async {
|
|||
final dir = Directory(dirPath);
|
||||
|
||||
if (!await dir.exists()) {
|
||||
print('Wrong directory path: $dirPath');
|
||||
printV('Wrong directory path: $dirPath');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -53,12 +55,12 @@ Future<void> main(List<String> args) async {
|
|||
final shortLocale = element.path.split('_',)[1].split('.')[0];
|
||||
localePath[shortLocale] = element.path;
|
||||
} catch (e) {
|
||||
print('Wrong file: ${element.path}');
|
||||
printV('Wrong file: ${element.path}');
|
||||
}
|
||||
});
|
||||
|
||||
if (!localePath.keys.contains(defaultLocale)) {
|
||||
print("Locale list doesn't contain $defaultLocale");
|
||||
printV("Locale list doesn't contain $defaultLocale");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -115,7 +117,7 @@ Future<void> main(List<String> args) async {
|
|||
|
||||
await File(outputPath + localeListFileName).writeAsString(locales);
|
||||
} catch (e) {
|
||||
print(e.toString());
|
||||
printV(e.toString());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue