Skip to content

chore: modernize navigation-sample and map-sample builds - #26

Open
dkhawk wants to merge 2 commits into
mainfrom
fix/add-utils-dep
Open

dkhawk wants to merge 2 commits into
mainfrom
fix/add-utils-dep

Conversation

@dkhawk

@dkhawk dkhawk commented Mar 12, 2026 •

Copy link
Copy Markdown

Overview

This PR modernizes the build configuration and dependencies for both the navigation-sample and map-sample projects on top of Navigation SDK 8.0.0, AGP 9.2.0, Gradle 9.4.1, and compileSdk / targetSdk 37. It migrates the Groovy build scripts to Kotlin DSL, introduces Gradle Version Catalogs (gradle/libs.versions.toml), applies weekly dependency updates (superseding #29), integrates android-maps-utils 6.1.0, and migrates navigation-sample to Places SDK 6.0.2.

Changes Included

  • Kotlin DSL & Version Catalogs: Replaced all build.gradle and settings.gradle files with .gradle.kts scripts and centralized dependencies in gradle/libs.versions.toml across both map-sample and navigation-sample.
  • Java 17: Updated compile and Kotlin JVM targets to Java 17.
  • Dependency Updates (Superseding chore(deps): weekly minor and patch dependency updates #29):
    • com.google.android.libraries.navigation:navigation: 8.0.0
    • com.google.android.libraries.places:places: 4.0.0 → 6.0.2
    • com.google.maps.android:android-maps-utils: 6.1.0 (with com.google.android.gms:play-services-maps excluded to prevent duplicate class conflicts with Navigation SDK)
    • androidx.appcompat:appcompat: 1.7.1 → 1.8.0
    • androidx.constraintlayout:constraintlayout: 2.2.1 → 2.2.2
    • androidx.transition:transition: 1.7.0 → 1.7.2
    • com.google.auto.value:auto-value: 1.6.2 → 1.11.1
    • com.google.errorprone:error_prone_annotations: 2.11.0 → 2.51.0
    • joda-time:joda-time: 2.10.14 → 2.15.0
    • com.github.bumptech.glide:glide: 4.13.2 → 5.0.9
    • com.google.guava:guava: 31.0.1-android → 33.5.0-android
  • Places SDK v6.0.2 Migration:
    • Extracted Places SDK initialization into NavigationSampleApplication using Places.initializeWithNewPlacesApiEnabled(...).
    • Migrated PlacePickerActivity from the removed AutocompleteSupportFragment to PlaceAutocomplete.IntentBuilder() with ActivityResultContracts.StartActivityForResult() and FetchPlaceRequest (forwarding the session token and requesting ID, DISPLAY_NAME, LOCATION, and TYPES).
    • Updated NavFragmentActivity, NavViewActivity, and SwappingMapAndNavActivity from place.latLng to place.location.
  • Developer Experience & Docs: Added :app:installAndLaunch Gradle tasks and updated both README.md files to document secrets.properties API key configuration and Version Catalog usage.

@dkhawk
dkhawk requested a review from kshirsagarps March 12, 2026 00:11
@dkhawk
dkhawk requested a review from LoyalAbbas November 4, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant