Repository navigation
Conversation
…ormLocationSource.android.kt
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a shared Location Flow demo (
LocationFlowDemo) to:maps-compose-multiplatform-demoexercising the multiplatformLocation,LocationSource, andLocationPriorityAPIs fromgooglemaps/android-maps-utils#1817across Android and iOS:gradle/libs.versions.toml,maps-compose-multiplatform/build.gradle.kts,settings.gradle.kts):maps-utils-kmp-core(com.google.maps.android:android-maps-utils-core) and exposes it viaapi(libs.maps.utils.kmp.core)in:maps-compose-multiplatformcommonMain.mavenLocal()insettings.gradle.kts(when useMavenLocal=true) toincludeGroup("com.google.maps.android")so local KMP snapshot testing does not conflict with external dependencies.PlatformLocationSource.kt,PlatformLocationSource.android.kt,PlatformLocationSource.ios.kt):rememberPlatformLocationController()backed byLocationManageron Android andCLLocationManager.asLocationSource()on iOS, tracking runtime location permission state and providing permission request / system settings actions.LocationFlowDemo(DemoApp.kt,Demos.kt):LocationSource.locationEvents()incommonMainto animate the camera, update a liveMarker, render a horizontal accuracyCircle, and draw a breadcrumbPolylinetrail, with interactiveHigh Accuracy/Balancedpriority switching and runtime permission recovery controls.maps-app/src/main/AndroidManifest.xml,iosApp/iosApp/Info.plist,iosApp/create_project.rb):ACCESS_COARSE_LOCATIONandACCESS_FINE_LOCATIONinmaps-appandNSLocationWhenInUseUsageDescriptioniniosApp.iosApp/create_project.rbto checkIOS_MAPS_API_KEYinsecrets.propertiesbefore falling back toMAPS_API_KEY.Testing