Skip to content

Commit

Permalink
Fix r8 build fail due to logger from ktor
Browse files Browse the repository at this point in the history
  • Loading branch information
syt0r committed Mar 28, 2024
1 parent ce5b738 commit 3a13b8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ android {
kotlinCompilerExtensionVersion = "1.5.2"
}

buildTypes {
getByName("release") {
consumerProguardFile("consumer-rules.pro")
}
}

}

compose {
Expand Down
2 changes: 2 additions & 0 deletions core/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ktor fails release builds with R8 without it
-dontwarn org.slf4j.impl.StaticLoggerBinder

0 comments on commit 3a13b8e

Please sign in to comment.