Skip to content

Commit b2698aa

Browse files
committed
chore: update maps dependencies and compileSdk to 37
1 parent 353d0c3 commit b2698aa

9 files changed

Lines changed: 34 additions & 20 deletions

File tree

solution/app/build.gradle.kts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99

1010
android {
1111
namespace = "com.example.mountainmarkers"
12-
compileSdk = 36
12+
compileSdk = 37
1313

1414
defaultConfig {
1515
applicationId = "com.example.mountainmarkers"
@@ -37,13 +37,16 @@ android {
3737
sourceCompatibility = JavaVersion.VERSION_1_8
3838
targetCompatibility = JavaVersion.VERSION_1_8
3939
}
40-
kotlinOptions {
41-
jvmTarget = "1.8"
42-
}
4340
buildFeatures {
4441
compose = true
4542
buildConfig = true
4643
}
44+
45+
kotlin {
46+
compilerOptions {
47+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8)
48+
}
49+
}
4750

4851
packaging {
4952
resources {
@@ -72,6 +75,7 @@ dependencies {
7275
implementation(libs.androidx.compose.ui.graphics)
7376
implementation(libs.androidx.compose.ui.tooling.preview)
7477
implementation(libs.androidx.compose.material3)
78+
implementation("androidx.compose.material:material-icons-extended")
7579

7680
testImplementation(libs.junit)
7781
testImplementation(libs.robolectric)
@@ -89,6 +93,7 @@ dependencies {
8993
// Hilt
9094
implementation(libs.hilt.android)
9195
kapt(libs.hilt.android.compiler)
96+
kapt("org.jetbrains.kotlin:kotlin-metadata-jvm:2.3.0")
9297
implementation(libs.kotlin.reflect)
9398

9499
// Google Maps Compose library

solution/app/src/main/java/com/example/mountainmarkers/presentation/ClusteringMarkersMapContent.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import com.example.mountainmarkers.data.local.Mountain
3535
import com.example.mountainmarkers.data.local.is14er
3636
import com.example.mountainmarkers.data.utils.LocalUnitsConverter
3737
import com.example.mountainmarkers.presentation.MountainsScreenViewState.MountainList
38+
import com.google.android.gms.maps.model.LatLng
3839
import com.google.maps.android.clustering.Cluster
3940
import com.google.maps.android.clustering.ClusterItem
4041
import com.google.maps.android.compose.GoogleMapComposable
@@ -47,10 +48,10 @@ data class MountainClusterItem(
4748
val mountain: Mountain,
4849
val snippetString: String
4950
) : ClusterItem {
50-
override fun getPosition() = mountain.location
51-
override fun getTitle() = mountain.name
52-
override fun getSnippet() = snippetString
53-
override fun getZIndex() = 0f
51+
override val position: LatLng get() = mountain.location
52+
override val title: String get() = mountain.name
53+
override val snippet: String get() = snippetString
54+
override val zIndex: Float get() = 0f
5455
}
5556

5657
/**

solution/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true
24+
android.suppressUnsupportedCompileSdk=37,37.0

solution/gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[versions]
1919
# Build-related plugins
2020
android-application = "8.13.0"
21-
kotlin-android = "2.2.10"
21+
kotlin-android = "2.3.10"
2222
hilt-android = "2.57.1"
2323
secrets-gradle-plugin = "2.0.1"
2424

@@ -39,7 +39,7 @@ test-ext-junit = "1.3.0"
3939
espresso-core = "3.7.0"
4040

4141
# Google Maps
42-
maps-compose = "6.10.0"
42+
maps-compose = "8.3.1-rc03"
4343

4444
[libraries]
4545
# AndroidX. These libraries provide core Android functionality, lifecycle management, and Compose integration.

solution/settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pluginManagement {
88
dependencyResolutionManagement {
99
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1010
repositories {
11+
mavenLocal()
1112
google()
1213
mavenCentral()
1314
}

starter/app/build.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99

1010
android {
1111
namespace = "com.example.mountainmarkers"
12-
compileSdk = 36
12+
compileSdk = 37
1313

1414
defaultConfig {
1515
applicationId = "com.example.mountainmarkers"
@@ -37,13 +37,16 @@ android {
3737
sourceCompatibility = JavaVersion.VERSION_1_8
3838
targetCompatibility = JavaVersion.VERSION_1_8
3939
}
40-
kotlinOptions {
41-
jvmTarget = "1.8"
42-
}
4340
buildFeatures {
4441
compose = true
4542
buildConfig = true
4643
}
44+
45+
kotlin {
46+
compilerOptions {
47+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8)
48+
}
49+
}
4750

4851
packaging {
4952
resources {
@@ -89,6 +92,7 @@ dependencies {
8992
// Hilt
9093
implementation(libs.hilt.android)
9194
kapt(libs.hilt.android.compiler)
95+
kapt("org.jetbrains.kotlin:kotlin-metadata-jvm:2.3.0")
9296
implementation(libs.kotlin.reflect)
9397

9498
// Google Maps SDK -- these are here for the data model. Remove these dependencies and replace

starter/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true
24+
android.suppressUnsupportedCompileSdk=37,37.0

starter/gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[versions]
1919
# Build-related plugins
2020
android-application = "8.13.0"
21-
kotlin-android = "2.2.10"
21+
kotlin-android = "2.3.10"
2222
hilt-android = "2.57.1"
2323
secrets-gradle-plugin = "2.0.1"
2424

@@ -39,10 +39,10 @@ test-ext-junit = "1.3.0"
3939
espresso-core = "3.7.0"
4040

4141
# Google Maps
42-
maps-compose = "6.10.0"
42+
maps-compose = "8.3.1-rc03"
4343
play-services-maps = "19.2.0"
44-
maps-ktx = "5.2.0"
45-
maps-utils-ktx = "5.2.0"
44+
maps-ktx = "6.1.0-rc03"
45+
maps-utils-ktx = "6.1.0-rc03"
4646

4747
[libraries]
4848
# AndroidX. These libraries provide core Android functionality, lifecycle management, and Compose integration.

starter/settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pluginManagement {
88
dependencyResolutionManagement {
99
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1010
repositories {
11+
mavenLocal()
1112
google()
1213
mavenCentral()
1314
}

0 commit comments

Comments
 (0)