Browse Source

Merge branch 'master' into zhou_dev

* master:
  修改版本号:v0.0.15
周素华 10 months ago
parent
commit
766ce29d8a
2 changed files with 4 additions and 2 deletions
  1. 3 1
      lib/widget/upgrade_dialog.dart
  2. 1 1
      pubspec.yaml

+ 3 - 1
lib/widget/upgrade_dialog.dart

@@ -33,6 +33,7 @@ class UpgradeDialog extends StatelessWidget {
33 33
     UpgradeService.getName(path);
34 34
     // 拆分文件名
35 35
     var apkName = UpgradeService.getName(path);
36
+    logger.d('path:$path');
36 37
     logger.d('apkName:$apkName');
37 38
 
38 39
     var file = await UpgradeService.getApkFile(apkName);
@@ -49,7 +50,8 @@ class UpgradeDialog extends StatelessWidget {
49 50
         (count, total) => progress.value = count / total,
50 51
       );
51 52
       installApk(file.path);
52
-    } catch (_) {
53
+    } catch (e) {
54
+      logger.e(e);
53 55
       MyNavigator.showToast('下载失败,请重试');
54 56
       progress.value = -1;
55 57
     }

+ 1 - 1
pubspec.yaml

@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
16 16
 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
17 17
 # In Windows, build-name is used as the major, minor, and patch parts
18 18
 # of the product and file versions while build-number is used as the build suffix.
19
-version: 0.0.14+14
19
+version: 0.0.15+15
20 20
 
21 21
 environment:
22 22
   sdk: '>=3.1.5 <4.0.0'