From e74342d5f61534109fb7aee8497f6cbbce59d070 Mon Sep 17 00:00:00 2001 From: LezdCS Date: Mon, 22 Jul 2024 19:32:31 +0900 Subject: [PATCH 1/2] remove alarm uses permission android --- android/app/src/main/AndroidManifest.xml | 4 ++-- .../controllers/realtime_irl_view_controller.dart | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index cc4b7282..f39b2284 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,11 +1,11 @@ - - + diff --git a/lib/src/presentation/controllers/realtime_irl_view_controller.dart b/lib/src/presentation/controllers/realtime_irl_view_controller.dart index c3d07098..3052ba0d 100644 --- a/lib/src/presentation/controllers/realtime_irl_view_controller.dart +++ b/lib/src/presentation/controllers/realtime_irl_view_controller.dart @@ -30,8 +30,9 @@ class RealtimeIrlViewController extends GetxController { Future start() async { realtimeIrl.status.value = RtIrlStatus.updating; + DataState p = await determinePosition(); + timerRtIrl = Timer.periodic(const Duration(seconds: 4), (Timer t) async { - DataState p = await determinePosition(); if (p is DataSuccess && realtimeIrl.status.value == RtIrlStatus.updating) { DataState updateResult = await realtimeIrl.updatePosition(p.data!); From 27d2c41475244281c4a32cb6d8bf47f6d448bd7a Mon Sep 17 00:00:00 2001 From: LezdCS Date: Mon, 22 Jul 2024 19:36:39 +0900 Subject: [PATCH 2/2] version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 1da0721f..16bc4c5e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # 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: 2.4.4+62 +version: 2.4.5+63 environment: sdk: '>=2.19.0-0 <4.0.0'