mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-21 06:18:42 +02:00
patch: running android related code on other platforms
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user