From 6386da8936eec6bb9126d78c982ecc4f4f3baa4d Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Thu, 14 Nov 2024 12:31:46 +0300 Subject: [PATCH] Mapbox key updated to custom maps --- android/app/build.gradle | 2 ++ android/build.gradle | 4 +++- android/gradle.properties | 3 ++- ios/Podfile | 2 +- ios/Runner/Info.plist | 2 ++ lib/core/viewModels/project_view_model.dart | 2 +- 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index a75b8ca5..d843c7f9 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -211,5 +211,7 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'com.google.android.material:material:1.9.0' androidTestImplementation "androidx.test:core:1.4.0" + implementation 'com.airbnb.android:lottie:5.2.0' + implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.22' } diff --git a/android/build.gradle b/android/build.gradle index c5f1baa2..cc067af7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -12,13 +12,15 @@ buildscript { repositories { google() jcenter() + mavenCentral() maven { url 'https://developer.huawei.com/repo/' } maven { url 'https://api.mapbox.com/downloads/v2/releases/maven' credentials { username = 'mapbox' - password = "sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg" +// password = "sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg" + password = "pk.eyJ1IjoicndhaWQiLCJhIjoiY2x5cGo4aHNjMGNsbTJyc2djempobGQxaSJ9.RCaC6WrUt4A4YnZNfxnONQ" if (password == null || password == "") { throw new GradleException("MAPBOX_DOWNLOADS_TOKEN isn't set. Set it to the project properties or to the enviroment variables.") } diff --git a/android/gradle.properties b/android/gradle.properties index cf554544..cb9913a1 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -4,4 +4,5 @@ android.useAndroidX=true android.enableJetifier=true android.suppressUnsupportedCompileSdk=33 MAPBOX_USER_NAME = "mapbox" -MAPBOX_DOWNLOADS_TOKEN="sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg" \ No newline at end of file +#MAPBOX_DOWNLOADS_TOKEN="sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg" +MAPBOX_DOWNLOADS_TOKEN="pk.eyJ1IjoicndhaWQiLCJhIjoiY2x5cGo4aHNjMGNsbTJyc2djempobGQxaSJ9.RCaC6WrUt4A4YnZNfxnONQ" \ No newline at end of file diff --git a/ios/Podfile b/ios/Podfile index 5564c00b..a4d27ccb 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -platform :ios, '13.0' +platform :ios, '14.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 13782c80..a67c0647 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -120,5 +120,7 @@ UIApplicationSupportsIndirectInputEvents + MBXAccessToken + pk.eyJ1IjoicndhaWQiLCJhIjoiY2x5cGo4aHNjMGNsbTJyc2djempobGQxaSJ9.RCaC6WrUt4A4YnZNfxnONQ diff --git a/lib/core/viewModels/project_view_model.dart b/lib/core/viewModels/project_view_model.dart index d4707aa9..57362d6f 100644 --- a/lib/core/viewModels/project_view_model.dart +++ b/lib/core/viewModels/project_view_model.dart @@ -48,7 +48,7 @@ class ProjectViewModel extends BaseViewModel { GetAdmissionInfoResponseModel getAdmissionInfoResponseModel = GetAdmissionInfoResponseModel(); GetAdmissionRequestInfoResponseModel getAdmissionRequestInfoResponseModel = GetAdmissionRequestInfoResponseModel(); - bool isIndoorNavigationEnabled = false; + bool isIndoorNavigationEnabled = true; int waitingAppointmentProjectID = 0; DoctorList? waitingAppointmentDoctor;