From 8f44c3c8270d41e45f3af4301934fd1a831a8e69 Mon Sep 17 00:00:00 2001 From: Maciej Procyk Date: Thu, 9 May 2024 20:55:53 +0200 Subject: [PATCH] fix desktop release --- composeApp/build.gradle.kts | 2 +- composeApp/compose-desktop.pro | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index e37e83a..25e5f04 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -200,7 +200,7 @@ compose { buildTypes.release.proguard { configurationFiles.from(project.file("compose-desktop.pro")) isEnabled = true - optimize = true + optimize = false obfuscate = false } } diff --git a/composeApp/compose-desktop.pro b/composeApp/compose-desktop.pro index ad644fb..a7b57e6 100644 --- a/composeApp/compose-desktop.pro +++ b/composeApp/compose-desktop.pro @@ -1,4 +1,15 @@ -keep class io.ktor.client.engine.java.JavaHttpEngineContainer -keep class kotlinx.coroutines.swing.SwingDispatcherFactory --keep class com.arkivanov.decompose.extensions.compose.jetbrains.mainthread.SwingMainThreadChecker +-keep class com.arkivanov.decompose.extensions.compose.mainthread.SwingMainThreadChecker +-keep class org.bridj.** { *; } +-keep class com.sun.jna.** { *; } +-keep class com.google.zxing.** { *; } + -dontwarn org.slf4j.** +-dontwarn org.osgi.framework.** +-dontwarn com.github.sarxos.webcam.log.** +-dontwarn com.github.eduramiba.webcamcapture.TestDriver +-dontwarn com.github.eduramiba.webcamcapture.TestDriver$1 +-dontwarn javafx.scene.image.WritableImage +-dontwarn javafx.scene.image.PixelFormat +-dontwarn javafx.scene.image.PixelWriter