Skip to content

Commit

Permalink
fix loss of Screen.key after obfuscation (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdsfdhvh authored May 15, 2024
1 parent f7c1158 commit 0fee78f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions voyager-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ setupModuleForComposeMultiplatform(fullyMultiplatform = true)

android {
namespace = "cafe.adriel.voyager.core"
defaultConfig {
consumerProguardFiles("consumer-rules.pro")
}
}

kotlin {
Expand Down
3 changes: 3 additions & 0 deletions voyager-core/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-keepclassmembers class * implements cafe.adriel.voyager.core.screen.Screen {
public getKey();
}

0 comments on commit 0fee78f

Please sign in to comment.