Repository navigation
chore: modernize navigation-sample and map-sample builds - #26
Conversation
9735280 to
9029a1a
Compare
|
Hi @dkhawk Nice cleanup overall! A few small things before merging: |
|
Thanks for the review @LoyalAbbas! Addressed all of your feedback in
|
…th for Kotlin 2.4 metadata
Overview
This PR modernizes the build configuration and dependencies for both the
navigation-sampleandmap-sampleprojects on top of Navigation SDK8.0.0, AGP9.2.0, Gradle9.4.1, andcompileSdk/targetSdk37. It migrates the Groovy build scripts to Kotlin DSL, introduces Gradle Version Catalogs (gradle/libs.versions.toml), applies weekly dependency updates (superseding #29), integratesandroid-maps-utils6.1.0, and migratesnavigation-sampleto Places SDK6.0.2.Changes Included
build.gradleandsettings.gradlefiles with.gradle.ktsscripts and centralized dependencies ingradle/libs.versions.tomlacross bothmap-sampleandnavigation-sample.com.google.android.libraries.navigation:navigation:8.0.0com.google.android.libraries.places:places:4.0.0→6.0.2com.google.maps.android:android-maps-utils:6.1.0(withcom.google.android.gms:play-services-mapsexcluded to prevent duplicate class conflicts with Navigation SDK)androidx.appcompat:appcompat:1.7.1→1.8.0androidx.constraintlayout:constraintlayout:2.2.1→2.2.2androidx.transition:transition:1.7.0→1.7.2com.google.auto.value:auto-value:1.6.2→1.11.1com.google.errorprone:error_prone_annotations:2.11.0→2.51.0joda-time:joda-time:2.10.14→2.15.0com.github.bumptech.glide:glide:4.13.2→5.0.9com.google.guava:guava:31.0.1-android→33.5.0-androidNavigationSampleApplicationusingPlaces.initializeWithNewPlacesApiEnabled(...).PlacePickerActivityfrom the removedAutocompleteSupportFragmenttoPlaceAutocomplete.IntentBuilder()withActivityResultContracts.StartActivityForResult()andFetchPlaceRequest(forwarding the session token and requestingID,DISPLAY_NAME,LOCATION, andTYPES).NavFragmentActivity,NavViewActivity, andSwappingMapAndNavActivityfromplace.latLngtoplace.location.:app:installAndLaunchGradle tasks and updated bothREADME.mdfiles to documentsecrets.propertiesAPI key configuration and Version Catalog usage.