mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-01-15 21:53:41 +01:00
29 lines
783 B
Prolog
29 lines
783 B
Prolog
#### OkHttp, Retrofit and Moshi
|
|
-dontwarn okhttp3.**
|
|
-dontwarn retrofit2.Platform$Java8
|
|
-dontwarn okio.**
|
|
-dontwarn javax.annotation.**
|
|
-keepclasseswithmembers class * {
|
|
@retrofit2.http.* <methods>;
|
|
}
|
|
-keepclasseswithmembers class * {
|
|
@com.squareup.moshi.* <methods>;
|
|
}
|
|
-keep @com.squareup.moshi.JsonQualifier interface *
|
|
-dontwarn org.jetbrains.annotations.**
|
|
-keep class kotlin.Metadata { *; }
|
|
-keepclassmembers class kotlin.Metadata {
|
|
public <methods>;
|
|
}
|
|
|
|
-keepclassmembers class * {
|
|
@com.squareup.moshi.FromJson <methods>;
|
|
@com.squareup.moshi.ToJson <methods>;
|
|
}
|
|
|
|
-keepnames @kotlin.Metadata class com.myapp.packagename.model.**
|
|
-keep class com.myapp.packagnename.model.** { *; }
|
|
|
|
# Keeping entities intact
|
|
-keep class com.melih.repository.entities.** { *; }
|