Skip to content

Commit e2020cb

Browse files
chore: Update proguard config
1 parent cd6f3a0 commit e2020cb

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ tasks {
392392
// Include the Java runtime classes
393393
val javaHome = System.getProperty("java.home")
394394
libraryjars("$javaHome/jmods")
395+
396+
// Include all dependencies as library jars so Proguard can resolve hierarchies
397+
// for classes excluded from the fat JAR (like JNA and Skiko runtimes).
398+
libraryjars(configurations.runtimeClasspath.get().filter { it.exists() })
395399

396400
// Report on what was removed
397401
printusage(layout.buildDirectory.file("proguard/usage.txt").get().asFile)

proguard-rules.pro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
-keep class io.ktor.** { *; }
3434

3535
# JNA (Native access)
36-
#-keep class com.sun.jna.** { *; }
36+
-keep class com.sun.jna.** { *; }
37+
38+
# FileKit (Native file dialogs)
39+
-keep class io.github.vinceglb.filekit.** { *; }
3740

3841
# Keep SPI services (ServiceLoader)
3942
-keepnames class * {

0 commit comments

Comments
 (0)