Skip to content

Commit fcab260

Browse files
committed
Disable R8 minfication step on PRs
1 parent 974d6b8 commit fcab260

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
@@ -111,7 +111,7 @@ jobs:
111111
run: ./gradlew testDemoDebug :lint:test
112112

113113
- name: Build all build type and flavor permutations
114-
run: ./gradlew :app:assemble
114+
run: ./gradlew :app:assemble -PminifyWithR8=false
115115

116116
- name: Upload build outputs (APKs)
117117
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)