Skip to content

Commit 6b14f4f

Browse files
authored
Merge pull request #1961 from SimonMarquis/minifyWithR8
Disable R8 minfication step on PRs
2 parents cd38d8a + fcab260 commit 6b14f4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/Build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
run: ./gradlew testDemoDebug :lint:test
134134

135135
- name: Build all build type and flavor permutations
136-
run: ./gradlew :app:assemble
136+
run: ./gradlew :app:assemble -PminifyWithR8=false
137137

138138
- name: Upload build outputs (APKs)
139139
uses: actions/upload-artifact@v4

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ android {
4343
applicationIdSuffix = NiaBuildType.DEBUG.applicationIdSuffix
4444
}
4545
release {
46-
isMinifyEnabled = true
46+
isMinifyEnabled = providers.gradleProperty("minifyWithR8")
47+
.map(String::toBooleanStrict).getOrElse(true)
4748
applicationIdSuffix = NiaBuildType.RELEASE.applicationIdSuffix
4849
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
4950
"proguard-rules.pro")

0 commit comments

Comments
 (0)