Skip to content

Commit

Permalink
Add release variant as fallback for resolving library variant matchin…
Browse files Browse the repository at this point in the history
…g issues. Fix proguard.
  • Loading branch information
KotlinGeekDev committed Dec 27, 2024
1 parent c947a78 commit 2b51763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
matchingFallbacks.add("release")
if (project.hasProperty("STORE_FILE")) {
signingConfig = signingConfigs.getByName("release")
}
Expand Down
4 changes: 4 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
# For Nostr
-keep class com.sun.jna.** { *; }
-keep class * implements com.sun.jna.** { *; }
-dontwarn java.awt.Component
-dontwarn java.awt.GraphicsEnvironment
-dontwarn java.awt.HeadlessException
-dontwarn java.awt.Window

# For Kodein
-keep, allowobfuscation, allowoptimization class org.kodein.type.TypeReference
Expand Down

0 comments on commit 2b51763

Please sign in to comment.