mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
patch: running android related code on other platforms
This commit is contained in:
parent
10294e088a
commit
d86c501fc5
6 changed files with 39 additions and 24 deletions
|
@ -230,6 +230,8 @@ class ExceptionHandler {
|
|||
static Future<void> _addDeviceInfo(File file) async {
|
||||
final packageInfo = await PackageInfo.fromPlatform();
|
||||
final currentVersion = packageInfo.version;
|
||||
final appName = packageInfo.appName;
|
||||
final package = packageInfo.packageName;
|
||||
|
||||
final deviceInfoPlugin = DeviceInfoPlugin();
|
||||
Map<String, dynamic> deviceInfo = {};
|
||||
|
@ -252,7 +254,7 @@ class ExceptionHandler {
|
|||
}
|
||||
|
||||
await file.writeAsString(
|
||||
"App Version: $currentVersion\n\nDevice Info $deviceInfo\n\n",
|
||||
"App Version: $currentVersion\nApp Name: $appName\nPackage: $package\n\nDevice Info $deviceInfo\n\n",
|
||||
mode: FileMode.append,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue