From 6118da7f934d7455cad752afa66ab78d4b981e68 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Mon, 2 Sep 2024 11:36:22 -0400 Subject: [PATCH] Re-enable proguard --- desktop/build.gradle.kts | 1 - desktop/proguard-rules.pro | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/build.gradle.kts b/desktop/build.gradle.kts index f85f93a802..84f255a702 100644 --- a/desktop/build.gradle.kts +++ b/desktop/build.gradle.kts @@ -192,7 +192,6 @@ compose.desktop { buildTypes.release.proguard { version.set(libs.versions.proguard.get()) configurationFiles.from("proguard-rules.pro") - isEnabled = false } windows { diff --git a/desktop/proguard-rules.pro b/desktop/proguard-rules.pro index 61be170616..4ef1ddf49e 100644 --- a/desktop/proguard-rules.pro +++ b/desktop/proguard-rules.pro @@ -24,6 +24,7 @@ # OKHTTP -dontwarn org.codehaus.mojo.animal_sniffer.* -dontwarn okhttp3.internal.platform.** +-keep class okio.** { *; } # DarkLaf # todo optimize more @@ -77,3 +78,6 @@ # Skiko -dontwarn org.jetbrains.skiko.** + +# Compose +-keep class androidx.compose.runtime.** { *; }