Skip to content

Commit

Permalink
Better proguard rule
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 committed May 6, 2024
1 parent 2f618f7 commit b31c8c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class PublicSuffixDatabase internal constructor(

companion object {
@JvmField
val PUBLIC_SUFFIX_RESOURCE = "/okhttp3/internal/publicsuffix/${PublicSuffixDatabase::class.java.simpleName}.gz".toPath()
val PUBLIC_SUFFIX_RESOURCE = "/${PublicSuffixDatabase::class.java.name.replace('.','/')}.gz".toPath()

private val WILDCARD_LABEL = byteArrayOf('*'.code.toByte())
private val PREVAILING_RULE = listOf("*")
Expand Down
1 change: 0 additions & 1 deletion okhttp/src/main/resources/META-INF/proguard/okhttp3.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-dontwarn javax.annotation.**

# A resource is loaded with a relative path so the package of this class must be preserved.
-keeppackagenames okhttp3.internal.publicsuffix.*
-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
Expand Down

0 comments on commit b31c8c2

Please sign in to comment.