Skip to content

Commit 7896bde

Browse files
authored
Use TestParameterInjector to test various version combinations (#8257)
Test the oldest supported versions, the latest stable versions, Gradle and AGP release candidates, even AGP alpha versions: Gradle | AGP | GoogleServices | configuration cache ------------------|--------------------------|------------------|-------------------- oldest supported | oldest supported | oldest supported | no latest stable | latest stable | latest stable | no latest stable | latest stable | latest stable | yes latest stable | release candidate (beta) | latest stable | yes release candidate | latest stable | latest stable | yes release candidate | bleeding-edge (alpha) | latest stable | yes Note: As far as I know, GoogleServices doesn't publish any snapshot, alpha, or RC versions.
1 parent 1101aa4 commit 7896bde

5 files changed

Lines changed: 267 additions & 414 deletions

File tree

firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ dependencies {
251251
integrationTestImplementation(gradleTestKit())
252252
integrationTestImplementation("com.android.tools.build:gradle:7.2.0")
253253
integrationTestImplementation(libs.junit)
254+
integrationTestImplementation("com.google.testparameterinjector:test-parameter-injector:1.22")
254255
integrationTestImplementation("com.github.tomakehurst:wiremock:2.26.3")
255256
integrationTestImplementation("com.google.code.gson:gson:2.10.1")
256257
integrationTestImplementation("org.jetbrains.kotlin:kotlin-test")

firebase-appdistribution-gradle/src/integrationTest/java/com/google/firebase/appdistribution/gradle/TestGroovyBuild.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,6 @@ class TestGroovyBuild(private val testGradleProject: TestGradleProject) {
158158
const val OLDER_AGP_VERSION = "7.0.0" // released in July 2021
159159
const val OLDER_GOOGLE_SERVICES_VERSION = "4.3.2" // released in September 2019
160160

161-
// Latest supported versions
162-
const val LATEST_COMPILE_SDK_VERSION = "30" // required for Gradle 9
163-
val LATEST_GRADLE_VERSION = VersionUtils.fetchLatestGradleVersion()
164-
val LATEST_AGP_VERSION = VersionUtils.fetchLatestAgpVersion()
165-
val LATEST_GOOGLE_SERVICES_VERSION = VersionUtils.fetchLatestGoogleServicesVersion()
166-
167161
private const val DEFAULT_CUSTOM_ANDROID_BLOCK = ""
168162
}
169163
}

0 commit comments

Comments
 (0)