Ryan Smith
04/10/2023, 11:25 PMrunReleaseDistributable
Gradle task, but everything seems to work with non-release. I have a suspicion there's some missing piece of Proguard configuration I need in order to keep the right parts of kotlinx-coroutines-swing
, but I'm not sure what it is. Has anyone run in to this before?Ryan Smith
04/10/2023, 11:26 PMkotlinx-coroutines-swing
I need?Dima Avdeev
04/11/2023, 5:51 AMRyan Smith
04/11/2023, 3:09 PMRyan Smith
04/11/2023, 3:10 PMRyan Smith
04/11/2023, 10:33 PMDima Avdeev
04/15/2023, 3:55 PMRyan Smith
04/15/2023, 4:30 PMRyan Smith
04/15/2023, 8:06 PMDima Avdeev
04/17/2023, 7:35 PMRyan Smith
04/17/2023, 10:23 PMRyan Smith
04/17/2023, 10:29 PMDima Avdeev
04/18/2023, 7:15 AMalexey.tsvetkov
04/24/2023, 6:29 PMcompose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
// ...
buildTypes.release.proguard {
configurationFiles.from("<http://desktop-rules.pro|desktop-rules.pro>")
}
}
}
}
// <http://desktop-rules.pro|desktop-rules.pro>
-keep class kotlinx.coroutines.swing.SwingDispatcherFactory {}
At least on my machine the exception has disappeared after adding that.Ryan Smith
04/24/2023, 6:40 PMRyan Smith
04/24/2023, 10:22 PMRyan Smith
04/24/2023, 10:27 PMKapil Yadav
08/04/2023, 10:21 AMRyan Smith
08/04/2023, 12:06 PM<http://desktop-rules.pro|desktop-rules.pro>
file to my project and add buildTypes.release.proguard {}
to my build file just like in Alexey's snippet abovealexey.tsvetkov
08/04/2023, 12:08 PMKapil Yadav
08/04/2023, 1:09 PMRyan Smith
08/04/2023, 2:22 PMdependencies {
implementation(compose.desktop.currentOs)
implementation(
"org.jetbrains.kotlinx:kotlinx-coroutines-core:${extra["kotlinx.coroutines.version"]}"
)
implementation(
"org.jetbrains.kotlinx:kotlinx-coroutines-swing:${extra["kotlinx.coroutines.version"]}"
)
}
Kapil Yadav
08/04/2023, 5:02 PMKapil Yadav
08/04/2023, 5:04 PMRyan Smith
08/07/2023, 11:58 AM-swing
, -android
, etc in your platform-specific configKapil Yadav
08/07/2023, 12:25 PMRyan Smith
08/07/2023, 4:50 PM