Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ApiDemos/project/java-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dependencies {
implementation(libs.activity)
implementation(project(":ApiDemos:common-ui"))
implementation(libs.uiautomator)
implementation(libs.maps.utils.ktx)
implementation(libs.android.maps.utils)

// Tests
testImplementation(libs.junit)
Expand Down
3 changes: 1 addition & 2 deletions ApiDemos/project/kotlin-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ dependencies {
implementation(libs.material)

implementation(libs.lifecycle.runtime.ktx)
implementation(libs.maps.ktx)
implementation(libs.maps.utils.ktx)
implementation(libs.android.maps.utils)
implementation(libs.play.services.location)

implementation(libs.activity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.example.kotlindemos.utils.MapDemoActivityTest
import com.google.android.gms.maps.model.BitmapDescriptor
import com.google.android.gms.maps.model.GroundOverlay
import com.google.common.truth.Truth.assertThat
import com.google.maps.android.ktx.utils.withSphericalOffset
import com.google.maps.android.withSphericalOffset
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.CameraPosition
import com.google.android.gms.maps.model.LatLng
import com.google.android.gms.maps.model.LatLngBounds
import com.google.maps.android.ktx.awaitMap
import com.google.maps.android.ktx.cameraIdleEvents
import com.google.maps.android.awaitMap
import com.google.maps.android.cameraIdleEvents
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.launch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ import com.google.android.gms.maps.model.LatLng
import com.google.android.gms.maps.model.Marker
import com.google.android.gms.maps.model.MarkerOptions
import com.google.android.gms.maps.model.PatternItem
import com.google.maps.android.ktx.utils.sphericalDistance
import com.google.maps.android.ktx.utils.withSphericalOffset
import com.google.maps.android.sphericalDistance
import com.google.maps.android.withSphericalOffset

import java.util.ArrayList

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import com.google.android.gms.maps.LocationSource
import com.google.android.gms.maps.LocationSource.OnLocationChangedListener
import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.LatLng
import com.google.maps.android.ktx.awaitMap
import com.google.maps.android.awaitMap

import kotlinx.coroutines.launch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import android.view.View
import androidx.lifecycle.lifecycleScope
import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.LatLng
import com.google.maps.android.ktx.addMarker
import com.google.maps.android.ktx.awaitMap
import com.google.maps.android.addMarker
import com.google.maps.android.awaitMap
import kotlinx.coroutines.launch

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import androidx.lifecycle.lifecycleScope
import com.example.common_ui.R
import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.LatLng
import com.google.maps.android.ktx.addMarker
import com.google.maps.android.ktx.awaitMap
import com.google.maps.android.addMarker
import com.google.maps.android.awaitMap
import kotlinx.coroutines.launch

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.BitmapDescriptorFactory
import com.google.android.gms.maps.model.LatLng
import com.google.android.gms.maps.model.Marker
import com.google.maps.android.ktx.addMarker
import com.google.maps.android.ktx.awaitMap
import com.google.maps.android.addMarker
import com.google.maps.android.awaitMap
import kotlinx.parcelize.Parcelize
import kotlinx.coroutines.launch
import java.util.Random
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.GoogleMap.SnapshotReadyCallback
import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.LatLng
import com.google.maps.android.ktx.awaitMap
import com.google.maps.android.awaitMap
import kotlinx.coroutines.launch

/**
Expand Down
6 changes: 5 additions & 1 deletion FireMarkers/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ plugins {
alias(libs.plugins.kotlin.serialization) // Provides Kotlin serialization capabilities.
}

hilt {
enableAggregatingTask = false
}

if (file("google-services.json").exists()) {
apply(plugin = "com.google.gms.google-services")
println("Applied Google Services plugin.")
Expand Down Expand Up @@ -139,7 +143,7 @@ dependencies {
// icons, and navigation components for Compose.
// ---------------------------------------------------------------------------------------------
implementation(libs.maps.compose)
implementation(libs.maps.utils.ktx)
implementation(libs.android.maps.utils)

// ---------------------------------------------------------------------------------------------
// Kotlin Libraries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.ServerValue
import com.google.firebase.database.ValueEventListener
import com.google.maps.android.ktx.utils.withSphericalLinearInterpolation
import com.google.maps.android.withSphericalLinearInterpolation
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Dkotlinx.metadata.jvm.lenient=true -Dkotlin.metadata.jvm.lenient=true

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.enableJetifier=true
android.useAndroidX=true
android.suppressUnsupportedCompileSdk=37
12 changes: 5 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ androidxJunit = "1.3.0" # Test ext
appcompat = "1.8.0"
cardview = "1.0.0"
constraintlayout = "2.2.2"
coreKtx = "1.19.0"
coreKtx = "1.19.1"
lifecycle = "2.11.0"
multidex = "2.0.1"
navigation = "2.10.1"
Expand All @@ -36,9 +36,8 @@ material3 = "1.4.0"
materialIconsExtended = "1.7.8"

# Google Maps & Places
mapsCompose = "8.6.0"
mapsKtx = "6.4.1"
mapsUtils = "5.2.0"
mapsCompose = "9.0.0"
mapsUtils = "6.0.0"
places = "5.3.0"
playServicesLocation = "21.4.0"
playServicesMaps = "20.0.0"
Expand Down Expand Up @@ -106,9 +105,8 @@ ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", versio

# Maps & Places
maps-compose = { module = "com.google.maps.android:maps-compose", version.ref = "mapsCompose" }
maps-ktx = { group = "com.google.maps.android", name = "maps-ktx", version.ref = "mapsKtx" }
maps-utils = { module = "com.google.maps.android:android-maps-utils", version.ref = "mapsUtils" }
maps-utils-ktx = { group = "com.google.maps.android", name = "maps-utils-ktx", version.ref = "mapsKtx" }
android-maps-utils = { module = "com.google.maps.android:android-maps-utils", version.ref = "mapsUtils" }
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
android-maps-utils-core = { module = "com.google.maps.android:android-maps-utils-core", version.ref = "mapsUtils" }
places = { group = "com.google.android.libraries.places", name = "places", version.ref = "places" }
play-services-location = { group = "com.google.android.gms", name = "play-services-location", version.ref = "playServicesLocation" }
play-services-maps = { group = "com.google.android.gms", name = "play-services-maps", version.ref = "playServicesMaps" }
Expand Down
1 change: 0 additions & 1 deletion snippets/app-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ dependencies {
//
// Android Maps Compose composables for the Maps SDK for Android
implementation(libs.maps.compose)

// If your project does not use a version catalog, you can use the following dependency instead:
//
// implementation("com.google.maps.android:maps-compose:8.4.0")
Expand Down
4 changes: 2 additions & 2 deletions snippets/app-ktx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ dependencies {
implementation(libs.lifecycle.runtime.ktx)
// [END_EXCLUDE]

// KTX for the Maps SDK for Android library
implementation(libs.maps.ktx)
// Maps SDK for Android Utils library (includes KTX extensions)
implementation(libs.android.maps.utils)
}
// [END maps_android_ktx_install_snippet]

Expand Down
6 changes: 3 additions & 3 deletions snippets/app-ktx/src/main/java/com/example/app_ktx/KTX.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import androidx.lifecycle.repeatOnLifecycle
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.LatLng
import com.google.maps.android.ktx.addMarker
import com.google.maps.android.ktx.awaitMap
import com.google.maps.android.ktx.cameraMoveEvents
import com.google.maps.android.addMarker
import com.google.maps.android.awaitMap
import com.google.maps.android.cameraMoveEvents
import com.google.maps.example.ktx.R
import kotlinx.coroutines.launch

Expand Down
2 changes: 1 addition & 1 deletion snippets/app-rx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ dependencies {
implementation(libs.lifecycle.runtime.ktx)
implementation(libs.material)
implementation(libs.rxlifecycle.android.lifecycle.kotlin)
implementation(libs.maps.ktx)
implementation(libs.android.maps.utils)
implementation(libs.kotlin.stdlib.jdk8)
// [END_EXCLUDE silent]
}
Expand Down
4 changes: 2 additions & 2 deletions snippets/app-utils-ktx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ dependencies {
implementation(libs.lifecycle.runtime.ktx)
// [END_EXCLUDE]

// KTX for the Maps SDK for Android Utility Library
implementation(libs.maps.utils.ktx)
// Maps SDK for Android Utility Library
implementation(libs.android.maps.utils)
}
// [END maps_android_utils_ktx_install_snippet]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ internal class GeoJSON {
private lateinit var map: GoogleMap
private fun addGeoJsonLayerJsonObject() {
// [START maps_android_util_geojson_add_jsonobject]
val geoJsonData: JSONObject? = // JSONObject containing the GeoJSON data
val geoJsonData: JSONObject = // JSONObject containing the GeoJSON data
// [START_EXCLUDE silent]
null
JSONObject()
// [END_EXCLUDE]
val layer = GeoJsonLayer(map, geoJsonData!!)
// [END maps_android_util_geojson_add_jsonobject]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ internal class KML {
@Throws(IOException::class, XmlPullParserException::class)
private fun addKmlLayerFileInputStream(context: Context) {
// [START maps_android_utils_kml_add_input_stream]
val inputStream: InputStream? = // InputStream containing KML data
val inputStream: InputStream = // InputStream containing KML data
// [START_EXCLUDE silent]
null
java.io.ByteArrayInputStream(ByteArray(0))
// [END_EXCLUDE]
val layer = KmlLayer(map, inputStream!!, context)
// [END maps_android_utils_kml_add_input_stream]
Expand Down
8 changes: 4 additions & 4 deletions snippets/app-utils/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ dependencies {
// first add the following to your gradle/libs.versions.toml file:
//
// [versions]
// mapsUtils = "5.1.1"
// mapsUtils = "6.0.0"
//
// [libraries]
// maps-utils = { module = "com.google.maps.android:android-maps-utils", version.ref = "mapsUtils" }
// android-maps-utils = { module = "com.google.maps.android:android-maps-utils", version.ref = "mapsUtils" }
//
// Utility Library for Maps SDK for Android
// You do not need to add a separate dependency for the Maps SDK for Android
// since this library builds in the compatible version of the Maps SDK.
implementation(libs.maps.utils)
implementation(libs.android.maps.utils)

// If your project does not use a version catalog, you can use the following dependency instead:
//
// implementation("com.google.maps.android:android-maps-utils:5.1.1")
// implementation("com.google.maps.android:android-maps-utils:6.0.0")
}
// [END maps_android_utils_install_snippet]

Expand Down
Loading