Skip to content

Commit

Permalink
minfy
Browse files Browse the repository at this point in the history
  • Loading branch information
rikaaa0928 committed Jan 2, 2025
1 parent e6c690d commit 597ef38
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ android {

buildTypes {
release {
isMinifyEnabled = false
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
Expand All @@ -46,6 +47,10 @@ android {
kotlinOptions {
jvmTarget = "17"
}

kotlin {
jvmToolchain(17)
}
}

dependencies {
Expand Down
13 changes: 12 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keep, includedescriptorclasses class org.rustls.platformverifier.** { *; }
-keep, includedescriptorclasses class org.rustls.platformverifier.** { *; }

-keep class uniffi.** { *; }
-keep class com.sun.jna.** { *; }
-keep class java.awt.Component { *; }
-keep class java.awt.GraphicsEnvironment { *; }
-keep class java.awt.HeadlessException { *; }
-keep class java.awt.Window { *; }
-dontwarn java.awt.Component
-dontwarn java.awt.GraphicsEnvironment
-dontwarn java.awt.HeadlessException
-dontwarn java.awt.Window

0 comments on commit 597ef38

Please sign in to comment.