diff --git a/android/local.properties b/android/local.properties index bc62ad6..9573626 100644 --- a/android/local.properties +++ b/android/local.properties @@ -1,5 +1,5 @@ sdk.dir=C:\\sdk\\android-sdk flutter.sdk=C:\\sdk\\flutter -flutter.buildMode=debug -flutter.versionName=1.6.241112 -flutter.versionCode=69 \ No newline at end of file +flutter.buildMode=release +flutter.versionName=1.6.241114 +flutter.versionCode=70 \ No newline at end of file diff --git a/lib/pages/layout.dart b/lib/pages/layout.dart index 9952f46..0d6c34e 100644 --- a/lib/pages/layout.dart +++ b/lib/pages/layout.dart @@ -150,6 +150,7 @@ class _LayoutState extends State { Future updateAppwidget() async { print('updateAppwidget'); + await Workmanager().cancelAll(); await Workmanager().cancelByUniqueName("com.nano71.glutassistantn.updateHomeWidget"); bool isAdded = await HomeWidgetUtils.isWidgetAdded(); diff --git a/pubspec.yaml b/pubspec.yaml index 2570f66..c89ec1a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: "https://pub.flutter-io.cn" # Remove this line if you wish to publis # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.6.241112+69 +version: 1.6.241114+70 environment: sdk: ">=2.14.0 <4.0.0"