Skip to content

Commit 79f2423

Browse files
committed
Update proguard snippet
1 parent 2504e8c commit 79f2423

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,19 +245,12 @@ If you are using ProGuard, the following config is required:
245245
public *;
246246
}
247247
248-
# Config for OkHttp and Okio
248+
# OkHttp/Okio/Retrofit/Moshi
249249
-dontwarn okio.**
250250
-dontwarn javax.annotation.**
251-
252-
# Config for Moshi
253-
-keepclassmembers class ** {
254-
@com.squareup.moshi.FromJson *;
255-
@com.squareup.moshi.ToJson *;
256-
}
257-
258-
# Config for Retrofit
259251
-dontnote retrofit2.Platform
260252
-dontwarn retrofit2.Platform$Java8
253+
-dontwarn okhttp3.internal.platform.ConscryptPlatform
261254
262255
-keepclasseswithmembers class * {
263256
@retrofit2.http.* <methods>;
@@ -266,6 +259,13 @@ If you are using ProGuard, the following config is required:
266259
-keepclasseswithmembers interface * {
267260
@retrofit2.http.* <methods>;
268261
}
262+
263+
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
264+
265+
-keepclassmembers class ** {
266+
@com.squareup.moshi.FromJson *;
267+
@com.squareup.moshi.ToJson *;
268+
}
269269
```
270270

271271
### More

0 commit comments

Comments
 (0)