From 05201ed358eda5eaf4b9427c2e6d4f531a571020 Mon Sep 17 00:00:00 2001 From: ErBW_s Date: Sat, 8 Feb 2025 11:44:42 +0800 Subject: [PATCH] ohos version 1.5.6 --- lib/pages/init_page.dart | 4 ++-- lib/request/api.dart | 2 +- ohos/AppScope/app.json5 | 4 ++-- pubspec.yaml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/pages/init_page.dart b/lib/pages/init_page.dart index 0177c8d6..8a92c4a1 100644 --- a/lib/pages/init_page.dart +++ b/lib/pages/init_page.dart @@ -31,8 +31,8 @@ class _InitPageState extends State { void initState() { _pluginInit(); _webDavInit(); - _update(); _migrateStorage(); + _update(); themeProvider = Provider.of(context, listen: false); super.initState(); } @@ -184,11 +184,11 @@ class _InitPageState extends State { Future _update() async { // Don't check update when there is no plugin. // We will progress init workflow instead. + await Future.delayed(const Duration(seconds: 1)); if (pluginsController.pluginList.isNotEmpty) { bool autoUpdate = setting.get(SettingBoxKey.autoUpdate, defaultValue: true); if (autoUpdate) { - await Future.delayed(const Duration(seconds: 1)); Modular.get().checkUpdata(type: 'auto'); } } diff --git a/lib/request/api.dart b/lib/request/api.dart index 1c5bb2f6..907e458d 100644 --- a/lib/request/api.dart +++ b/lib/request/api.dart @@ -1,6 +1,6 @@ class Api { // 当前版本 - static const String version = '1.5.5'; + static const String version = '1.5.6'; // 规则API级别 static const int apiLevel = 3; // 项目主页 diff --git a/ohos/AppScope/app.json5 b/ohos/AppScope/app.json5 index bea28874..099a001a 100644 --- a/ohos/AppScope/app.json5 +++ b/ohos/AppScope/app.json5 @@ -2,8 +2,8 @@ "app": { "bundleName": "com.predidit.kazumi", "vendor": "example", - "versionCode": 10505, - "versionName": "1.5.5", + "versionCode": 10506, + "versionName": "1.5.6", "icon": "$media:app_icon", "label": "$string:app_name" } diff --git a/pubspec.yaml b/pubspec.yaml index a1ad6d82..d5fe22d0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.5.5+10505 +version: 1.5.6+10506 environment: sdk: '>=3.3.4 <4.0.0'