状态常驻通知:通知级VISIBILITY_PUBLIC(锁屏隐藏模式可见);版本升至1.4.4+15

This commit is contained in:
2026-11-23 21:32:10 +08:00
parent 614186bf2c
commit 5bbebe326c
3 changed files with 3 additions and 2 deletions
@@ -94,6 +94,7 @@ class StatusService : Service() {
.setSmallIcon(android.R.drawable.ic_dialog_info)
.setOngoing(true)
.setOnlyAlertOnce(true)
.setVisibility(Notification.VISIBILITY_PUBLIC)
.setContentIntent(pi)
.build()
}
+1 -1
View File
@@ -14,7 +14,7 @@ import 'package:path_provider/path_provider.dart';
import '../../core/network/api_client.dart';
import '../../core/theme/app_colors.dart';
const kAppVersion = '1.4.3'; // 与 pubspec.yaml version 同步
const kAppVersion = '1.4.4'; // 与 pubspec.yaml version 同步
/// 比较语义化版本:a < b 返回 -1,> 返回 1,相等 0
int compareVersion(String a, String b) {
+1 -1
View File
@@ -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.4.3+14
version: 1.4.4+15
environment:
sdk: ^3.12.2