From bd0f634df0fd314ec8538c23741cb775ef554893 Mon Sep 17 00:00:00 2001 From: dkhawk <107309+dkhawk@users.noreply.github.com> Date: Tue, 16 Jun 2026 11:05:01 -0600 Subject: [PATCH] build(deps): Upgrades android-maps-utils to 5.0.0-rc01 Upgrades the Android Maps Utils dependency to the latest 5.0.0 release candidate (5.0.0-rc01). With the conversion of Android Maps Utils 5.0.0 to Kotlin, `ClusterItem` now exposes Kotlin properties instead of Java getter methods. Consequently, `MyItem` in the demo application has been refactored to directly override the `position`, `title`, `snippet`, and `zIndex` properties rather than implementing the legacy getter methods. --- .../com/google/maps/android/ktx/demo/model/MyItem.kt | 12 ++++++------ gradle/libs.versions.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/google/maps/android/ktx/demo/model/MyItem.kt b/app/src/main/java/com/google/maps/android/ktx/demo/model/MyItem.kt index 93290592..7a27c644 100644 --- a/app/src/main/java/com/google/maps/android/ktx/demo/model/MyItem.kt +++ b/app/src/main/java/com/google/maps/android/ktx/demo/model/MyItem.kt @@ -26,9 +26,9 @@ import com.google.maps.android.clustering.ClusterItem * (https://youtrack.jetbrains.com/issue/KT-6653?_ga=2.30406975.1494223917.1585591891-1137021041.1573759593) * so we must name our fields differently and then pass them to the ClusterItem methods. */ -data class MyItem(val latLng: LatLng, val myTitle: String?, val mySnippet: String?, val myZIndex: Float?) : ClusterItem { - override fun getPosition() = latLng - override fun getTitle() = myTitle - override fun getSnippet() = mySnippet - override fun getZIndex() = myZIndex -} \ No newline at end of file +data class MyItem( + override val position: LatLng, + override val title: String?, + override val snippet: String?, + override val zIndex: Float? +) : ClusterItem \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 80729769..37d01b6c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -18,7 +18,7 @@ androidxStartup = "1.2.0" # --- Google Maps --- # Versions for Google Play Services libraries, which are essential for this sample. androidMapsSdk = "20.0.0" -androidMapsUtils = "4.4.0" +androidMapsUtils = "5.0.0-rc01" # --- Testing --- # Versions for testing libraries.