Browse Source

Add proguard rules for issues example (#2703)

pull/2708/head
Alexey Tsvetkov 1 year ago committed by GitHub
parent
commit
75addb9224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      examples/issues/desktop/build.gradle.kts
  2. 16
      examples/issues/desktop/compose-desktop.pro

6
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"))
}
}
}
}

16
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**
Loading…
Cancel
Save