Skip to content

Commit

Permalink
Fix release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ARTI1208 committed Dec 8, 2023
1 parent 04a6587 commit c817835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/proguard-rules-release.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
*;
}
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/convention.android.base.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ fun Project.addCompose(flavor: ProductFlavor, options: ComposeOptions.() -> Unit
"${taskNamePrefix}KotlinAndroid",
)

project.tasks.whenTaskAdded {
if (name !in possibleTaskNames) return@whenTaskAdded
project.tasks.configureEach {
if (name !in possibleTaskNames) return@configureEach

addComposeArgsToKotlinCompile(
this as KotlinCompile,
Expand Down

0 comments on commit c817835

Please sign in to comment.