Add proguard rules for issues example (#2703)

This commit is contained in:
Alexey Tsvetkov
2023-02-06 18:26:10 +03:00
committed by GitHub
parent ab02a7125c
commit 75addb9224
2 changed files with 22 additions and 0 deletions

View File

@@ -34,5 +34,11 @@ compose.desktop {
upgradeUuid = "6565BEAD-713A-4DE7-A469-6B10FC4A6861"
}
}
buildTypes.release {
proguard {
configurationFiles.from(project.file("compose-desktop.pro"))
}
}
}
}

View File

@@ -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**