diff --git a/examples/issues/desktop/build.gradle.kts b/examples/issues/desktop/build.gradle.kts index b2c4eae1bb..d34b3e82da 100644 --- a/examples/issues/desktop/build.gradle.kts +++ b/examples/issues/desktop/build.gradle.kts @@ -34,5 +34,11 @@ compose.desktop { upgradeUuid = "6565BEAD-713A-4DE7-A469-6B10FC4A6861" } } + + buildTypes.release { + proguard { + configurationFiles.from(project.file("compose-desktop.pro")) + } + } } } diff --git a/examples/issues/desktop/compose-desktop.pro b/examples/issues/desktop/compose-desktop.pro new file mode 100644 index 0000000000..6ab6525961 --- /dev/null +++ b/examples/issues/desktop/compose-desktop.pro @@ -0,0 +1,16 @@ +# JSR 305 annotations are for embedding nullability information. +-dontwarn javax.annotation.** + +# A resource is loaded with a relative path so the package of this class must be preserved. +-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz + +# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java. +-dontwarn org.codehaus.mojo.animal_sniffer.* + +# OkHttp platform used only on JVM and when Conscrypt and other security providers are available. +-dontwarn okhttp3.internal.platform.** +-dontwarn org.conscrypt.** +-dontwarn org.bouncycastle.** +-dontwarn org.openjsse.** + +-keep class org.ocpsoft.prettytime.i18n** \ No newline at end of file