Skip to content
Open
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
11 changes: 11 additions & 0 deletions launchdarkly-android-client-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ android {
useLibrary("android.test.mock")
}

androidComponents {
// This module has no variant-specific source sets, so the release variant's unit tests compile
// and run exactly the same code as the debug variant's. Leaving them enabled makes `check`, and
// therefore every CI run, execute the whole suite twice: it doubles the unit test time and
// doubles the chance of a run tripping a flaky test. Re-enable if a variant-specific difference
// (such as the BuildConfig.DEBUG branch in LDTimberLogging) ever gains unit test coverage.
beforeVariants(selector().withBuildType("release")) { variantBuilder ->
variantBuilder.enableUnitTest = false
}
}

configurations {
commonClasses {
transitive = false
Expand Down
Loading