@@ -88,25 +88,12 @@ android {
8888 }
8989
9090 buildTypes {
91- debug {
92- applicationIdSuffix = " .debug"
93- versionNameSuffix = " -SNAPSHOT"
94-
95- enableUnitTestCoverage = testCoverageEnabled
96- enableAndroidTestCoverage = testCoverageEnabled
97-
98- isMinifyEnabled = false
99- isShrinkResources = false
100- isDebuggable = true
101-
102- buildConfigField(" String" , " GLEAN_RELEASE_CHANNEL" , " null" )
103- }
104-
91+ val isCI = project.findProperty(" ci" ) == " true"
10592 release {
10693 signingConfig = signingConfigs.getByType(SigningType .TB_RELEASE )
10794
108- isMinifyEnabled = true
109- isShrinkResources = true
95+ isMinifyEnabled = ! isCI
96+ isShrinkResources = ! isCI
11097 isDebuggable = false
11198
11299 proguardFiles(
@@ -123,8 +110,8 @@ android {
123110 applicationIdSuffix = " .beta"
124111 versionNameSuffix = " b1"
125112
126- isMinifyEnabled = true
127- isShrinkResources = true
113+ isMinifyEnabled = ! isCI
114+ isShrinkResources = ! isCI
128115 isDebuggable = false
129116
130117 matchingFallbacks + = listOf (" release" )
@@ -143,8 +130,8 @@ android {
143130 applicationIdSuffix = " .daily"
144131 versionNameSuffix = " a1"
145132
146- isMinifyEnabled = true
147- isShrinkResources = true
133+ isMinifyEnabled = ! isCI
134+ isShrinkResources = ! isCI
148135 isDebuggable = false
149136
150137 matchingFallbacks + = listOf (" release" )
@@ -157,6 +144,20 @@ android {
157144 // See https://bugzilla.mozilla.org/show_bug.cgi?id=1918151
158145 buildConfigField(" String" , " GLEAN_RELEASE_CHANNEL" , " \" nightly\" " )
159146 }
147+
148+ debug {
149+ applicationIdSuffix = " .debug"
150+ versionNameSuffix = " -SNAPSHOT"
151+
152+ enableUnitTestCoverage = testCoverageEnabled
153+ enableAndroidTestCoverage = testCoverageEnabled
154+
155+ isMinifyEnabled = false
156+ isShrinkResources = false
157+ isDebuggable = true
158+
159+ buildConfigField(" String" , " GLEAN_RELEASE_CHANNEL" , " null" )
160+ }
160161 }
161162
162163 flavorDimensions + = listOf (" app" )
0 commit comments