Skip to content

Commit

Permalink
fix: 🐛 修复proguard
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg886 committed Nov 28, 2024
1 parent c2d8a7b commit e9346f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ kotlin {
//epub export
implementation(libs.epublib.core.get().toString()) {
exclude("xmlpull", "xmlpull")
exclude("net.sf.kxml","kxml2")
}
implementation(libs.jsoup)

Expand All @@ -141,6 +142,7 @@ kotlin {
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
implementation(libs.kotlinx.coroutines.swing)
implementation(libs.kxml2)
}
}
}
Expand Down
7 changes: 1 addition & 6 deletions composeApp/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
<init>(...);
<methods>;
}
-dontwarn org.slf4j.impl.StaticLoggerBinder

# 保留所有实现了 Screen 的子类及其成员和方法
-keep class * extends cafe.adriel.voyager.core.screen.Screen {
<init>(...);
<methods>;
}

-dontwarn org.slf4j.impl.StaticLoggerBinder
# 保留所有实现了 Screen 的子类及其成员和方法
-keep class * extends cafe.adriel.voyager.core.screen.Screen {
<init>(...);
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jsoup = "1.18.1"
kotlin = "2.0.21"
kotlinx-coroutines = "1.9.0"
kotlinxSerializationJson = "1.7.3"
kxml2 = "2.3.0"
multiplatformSettings = "1.2.0"
orbitCore = "9.0.0"
pixko = "1.8"
Expand Down Expand Up @@ -37,6 +38,7 @@ androidx-lifecycle-viewmodel = { group = "org.jetbrains.androidx.lifecycle", nam
androidx-lifecycle-runtime-compose = { group = "org.jetbrains.androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidx-lifecycle" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version = "0.6.1" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
kxml2 = { module = "net.sf.kxml:kxml2", version.ref = "kxml2" }
multiplatform-settings = { module = "com.russhwolf:multiplatform-settings", version.ref = "multiplatformSettings" }
multiplatform-settings-serialization = { module = "com.russhwolf:multiplatform-settings-serialization", version.ref = "multiplatformSettings" }
orbit-core = { module = "org.orbit-mvi:orbit-core", version.ref = "orbitCore" }
Expand Down

0 comments on commit e9346f9

Please sign in to comment.