From 4eeadebb2d3373d6d5deb1c46486e490483448ef Mon Sep 17 00:00:00 2001 From: Maciej Procyk Date: Sun, 3 Mar 2024 19:55:30 +0100 Subject: [PATCH] make desktop release to work with cam --- desktopApp/build.gradle.kts | 2 +- desktopApp/compose-desktop.pro | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/desktopApp/build.gradle.kts b/desktopApp/build.gradle.kts index 6591f44..43a9466 100644 --- a/desktopApp/build.gradle.kts +++ b/desktopApp/build.gradle.kts @@ -59,7 +59,7 @@ compose.desktop { buildTypes.release.proguard { configurationFiles.from(project.file("compose-desktop.pro")) isEnabled = true - optimize = true + optimize = false obfuscate = false } } diff --git a/desktopApp/compose-desktop.pro b/desktopApp/compose-desktop.pro index d0a7cd9..150305d 100644 --- a/desktopApp/compose-desktop.pro +++ b/desktopApp/compose-desktop.pro @@ -25,6 +25,8 @@ -keepclasseswithmembers class kotlinx.serialization.cbor.** { kotlinx.serialization.KSerializer serializer(...); } +-keep class com.sun.jna.** { *; } +-keep class com.google.zxing.** { *; } -dontwarn com.arkivanov.decompose.extensions.compose.pages.** -dontwarn org.xml.sax.**