Skip to content

Commit 3a86007

Browse files
committed
build(android-nav3): Set release test build type
AGP 9 only generates unit tests for the configured test build type. Because this module disables the debug variant, point unit tests at release so future tests run instead of being skipped.
1 parent 1b98b50 commit 3a86007

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎sentry-android-navigation3/build.gradle.kts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ android {
2323
getByName("release") { consumerProguardFiles("proguard-rules.pro") }
2424
}
2525

26+
// AGP 9 only generates unit tests for the testBuildType. The debug variant is
27+
// disabled, so unit tests must target release to run at all.
28+
testBuildType = "release"
29+
2630
kotlin {
2731
compilerOptions.jvmTarget = JVM_1_8
2832
compilerOptions.languageVersion = KotlinVersion.KOTLIN_1_9

0 commit comments

Comments
 (0)