Skip to content

Commit df28733

Browse files
authored
chore: upgraded to Gradle 9.0 and some dependencies (#800)
* chore: upgraded to Gradle 9.0 and some dependencies * chore: upgraded Compose BoM * chore: increase timeout * chore: extracted timeout
1 parent 1780317 commit df28733

File tree

13 files changed

+26
-35
lines changed

13 files changed

+26
-35
lines changed

build.gradle.kts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
val kotlinVersion by extra(libs.versions.kotlin.get())
4-
val androidxTestVersion by extra(libs.versions.androidxtest.get())
53
repositories {
64
google()
75
mavenCentral()
@@ -18,7 +16,7 @@ buildscript {
1816
plugins {
1917
alias(libs.plugins.dokka) apply true
2018
alias(libs.plugins.compose.compiler) apply false
21-
id("com.autonomousapps.dependency-analysis") version "2.0.0"
19+
id("com.autonomousapps.dependency-analysis") version "3.4.1"
2220
alias(libs.plugins.android.application) apply false
2321
alias(libs.plugins.kotlin.android) apply false
2422

@@ -35,9 +33,4 @@ val projectArtifactId by extra { project: Project ->
3533
allprojects {
3634
group = "com.google.maps.android"
3735
version = "6.12.2"
38-
val projectArtifactId by extra { project.name }
39-
}
40-
41-
tasks.register("clean", Delete::class) {
42-
delete(rootProject.layout.buildDirectory)
43-
}
36+
}

gradle/libs.versions.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
[versions]
22
activitycompose = "1.11.0"
3-
agp = "8.13.0"
3+
agp = "8.13.1"
44
androidCore = "1.7.0"
55
androidx-core = "1.17.0"
66
androidxtest = "1.7.0"
7-
compose-bom = "2025.09.01"
8-
dokka = "2.0.0"
7+
compose-bom = "2025.11.01"
8+
dokka = "2.1.0"
99
espresso = "3.7.0"
10-
gradleMavenPublishPlugin = "0.34.0"
10+
gradleMavenPublishPlugin = "0.35.0"
1111
jacoco-plugin = "0.2.1"
1212
junit = "4.13.2"
1313
junitktx = "1.3.0"
14-
kotlin = "2.2.20"
14+
kotlin = "2.2.21"
1515
kotlinxCoroutines = "1.10.2"
1616
leakcanaryAndroid = "2.14"
1717
mapsecrets = "2.0.1"
18-
mapsktx = "5.2.0"
18+
mapsktx = "5.2.1"
1919
material3 = "1.4.0"
2020
materialIconsExtendedAndroid = "1.7.8"
21-
mockk = "1.14.5"
22-
mockkAndroid = "1.14.5"
23-
org-jacoco-core = "0.8.13"
21+
mockk = "1.14.6"
22+
mockkAndroid = "1.14.6"
23+
org-jacoco-core = "0.8.14"
2424
screenshot = "0.0.1-alpha11"
2525
constraintlayout = "2.2.1"
2626
material = "1.13.0"

gradle/wrapper/gradle-wrapper.jar

1.83 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

maps-app/build.gradle.kts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ android {
5656

5757
experimentalProperties["android.experimental.enableScreenshotTest"] = true
5858

59-
testOptions {
60-
screenshotTests {
61-
imageDifferenceThreshold = 0.035f // 3.5%
62-
}
59+
screenshotTests {
60+
imageDifferenceThreshold = 0.035f // 3.5%
6361
}
6462

63+
6564
packaging {
6665
resources {
6766
pickFirsts += listOf(
@@ -100,7 +99,6 @@ dependencies {
10099
androidTestImplementation(libs.kotlinx.coroutines.test)
101100
androidTestImplementation(libs.truth)
102101
androidTestImplementation(libs.mockk.android)
103-
//androidTestImplementation(kotlin("test"))
104102

105103
testImplementation(libs.test.junit)
106104
testImplementation(libs.robolectric)

maps-app/src/androidTest/java/com/google/maps/android/compose/GoogleMapViewTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class GoogleMapViewTests {
7474
content.invoke()
7575
}
7676
}
77-
val mapLoaded = countDownLatch.await(30, TimeUnit.SECONDS)
77+
val mapLoaded = countDownLatch.await(MAP_LOAD_TIMEOUT_SECONDS, TimeUnit.SECONDS)
7878
assertThat(mapLoaded).isTrue()
7979
}
8080

maps-app/src/androidTest/java/com/google/maps/android/compose/MapInColumnTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class MapInColumnTests {
6868
}
6969
)
7070
}
71-
val mapLoaded = countDownLatch.await(30, TimeUnit.SECONDS)
71+
val mapLoaded = countDownLatch.await(MAP_LOAD_TIMEOUT_SECONDS, TimeUnit.SECONDS)
7272
assertTrue("Map loaded", mapLoaded)
7373
}
7474

maps-app/src/androidTest/java/com/google/maps/android/compose/MapsInLazyColumnTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MapsInLazyColumnTests {
6969
)
7070

7171
LaunchedEffect(Unit) {
72-
val mapsLoaded = countDownLatch.await(30, TimeUnit.SECONDS)
72+
val mapsLoaded = countDownLatch.await(MAP_LOAD_TIMEOUT_SECONDS, TimeUnit.SECONDS)
7373
assertTrue("Visible maps loaded", mapsLoaded)
7474
}
7575
}

0 commit comments

Comments
 (0)