GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

Unverified Commit ba9a62e6 authored by Alex Catarineu's avatar Alex Catarineu Committed by Matthew Finkel

Bug 40123: Allow building the instrumented tests apks for variants other than debug

This allows to specify the variant of the instrumented tests via
a `testBuildType` gradle argument. It also applies a workaround for
a R8 issue from
parent 15e91be4
Pipeline #2174 failed with stages
......@@ -17,7 +17,16 @@ import org.gradle.internal.logging.text.StyledTextOutputFactory
import static org.gradle.api.tasks.testing.TestResult.ResultType
def obtainTestBuildType() {
def result = "debug";
if (project.hasProperty("testBuildType")) {
result = project.getProperties().get("testBuildType")
android {
testBuildType obtainTestBuildType()
compileSdkVersion Config.compileSdkVersion
if (project.hasProperty("testBuildType")) {
......@@ -119,4 +119,7 @@
# Keep Android Lifecycle methods
-keep class androidx.lifecycle.** { *; }
\ No newline at end of file
-keep class androidx.lifecycle.** { *; }
# Workaround for 'already has mapping' r8 issue (
-keep class { *; }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment