From 9b966651f3e0165039695d3b0d808eb919743c73 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sun, 25 May 2025 16:29:55 -0700 Subject: [PATCH] When resetting app session, ensure background service and screen wake lock get disabled --- lib/consts.dart | 2 +- lib/data.dart | 2 ++ pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/consts.dart b/lib/consts.dart index 514e7dc..646d798 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -9,7 +9,7 @@ class TTConsts { static get SESSION_SERVER => "https://api.zontreck.com/timetrack/$UPDATE_CHANNEL/timetrack.php"; - static const VERSION = "1.0.0-beta.26"; + static const VERSION = "1.0.0-beta.27"; static bool UPDATE_AVAILABLE = false; static UpdateChannel UPDATE_CHANNEL = UpdateChannel.beta; diff --git a/lib/data.dart b/lib/data.dart index d467ec4..ea68fc5 100644 --- a/lib/data.dart +++ b/lib/data.dart @@ -323,6 +323,8 @@ class SessionData { DisplayError = ""; IsReadOnly = false; ContainsTripTimes = true; + FlutterBackground.disableBackgroundExecution(); + WakelockPlus.disable(); Calls.dispatch(); } diff --git a/pubspec.yaml b/pubspec.yaml index 1a363b9..c4b1fc7 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.0.0-beta.26 +version: 1.0.0-beta.27 environment: sdk: ^3.7.2