From d9b74a9dad76314c634d826b33efea2b0af78e36 Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 26 Nov 2024 12:13:15 +0200 Subject: [PATCH] location permission --- Frontend/android/app/build.gradle | 3 ++- Frontend/android/app/src/main/AndroidManifest.xml | 6 +++++- Frontend/ios/Runner/Info.plist | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Frontend/android/app/build.gradle b/Frontend/android/app/build.gradle index e4c651e7..166b2b2b 100644 --- a/Frontend/android/app/build.gradle +++ b/Frontend/android/app/build.gradle @@ -26,7 +26,8 @@ android { namespace "com.example.patient_manager" compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion - + compileSdkVersion 34 + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Frontend/android/app/src/main/AndroidManifest.xml b/Frontend/android/app/src/main/AndroidManifest.xml index 3196100f..5bef92c7 100644 --- a/Frontend/android/app/src/main/AndroidManifest.xml +++ b/Frontend/android/app/src/main/AndroidManifest.xml @@ -1,9 +1,13 @@ + + + + android:icon="@mipmap/launcher_icon" + android:enableOnBackInvokedCallback="true"> + NSLocationWhenInUseUsageDescription + This app needs access to location when open. CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName