File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -66,18 +66,15 @@ android {
66
66
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
67
67
consumerProguardFiles ' proguard.txt'
68
68
69
- if (findProperty(" useProdBackendForTests" )) {
70
- buildConfigField(" boolean" , " USE_EMULATOR_FOR_TESTS" , " false" )
71
- } else {
72
- buildConfigField(" boolean" , " USE_EMULATOR_FOR_TESTS" , " true" )
73
- }
69
+ buildConfigField(
70
+ " boolean" ,
71
+ " USE_EMULATOR_FOR_TESTS" ,
72
+ findProperty(" useProdBackendForTests" ). asBoolean(). toString()
73
+ )
74
+
75
+ def targetBackend = findProperty(" targetBackend" ) ?: " emulator"
76
+ buildConfigField(" String" , " TARGET_BACKEND" , " \" $targetBackend \" " )
74
77
75
- if (hasProperty(' targetBackend' )) {
76
- buildConfigField(" String" , " TARGET_BACKEND" , " \" ${ property("targetBackend")} \" " )
77
- } else {
78
- // By default set the target backend to 'emulator'
79
- buildConfigField(" String" , " TARGET_BACKEND" , " \" emulator\" " )
80
- }
81
78
def localProps = new Properties ()
82
79
83
80
try {
You can’t perform that action at this time.
0 commit comments