From 94aebeafd0f0bded73b230465189e17fb824d596 Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 17 May 2025 17:43:03 +0200 Subject: [PATCH] added notification for tracking function and button to reset map position to current location time --- android/app/build.gradle.kts | 5 ++ android/app/src/main/AndroidManifest.xml | 13 +++- lib/main.dart | 7 ++ lib/screens/excursion/widgets/tracking.dart | 41 ++++++----- lib/services/notification_service.dart | 45 ++++++++++++ macos/Flutter/GeneratedPluginRegistrant.swift | 2 + pubspec.lock | 72 +++++++++++++++++++ pubspec.yaml | 1 + time.txt | 1 + windows/flutter/generated_plugins.cmake | 1 + 10 files changed, 169 insertions(+), 19 deletions(-) create mode 100644 lib/services/notification_service.dart diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index f5f5dc0..fc8627b 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -11,6 +11,7 @@ android { ndkVersion = flutter.ndkVersion compileOptions { + isCoreLibraryDesugaringEnabled = true sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } @@ -42,3 +43,7 @@ android { flutter { source = "../.." } + +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5") +} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 9ac7e41..881b9eb 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ - - + + + android:value="2" /> + + + + + + +