Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -keepattributes Signature
- -keepattributes *Annotation*
- -keepattributes EnclosingMethod,InnerClasses,Exceptions,MethodParameters
- -keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations, AnnotationDefault
- -keepattributes LineNumberTable, SourceFile
- ########################
- ## 2) Retrofit / OkHttp / Gson
- ########################
- -keep class retrofit2.** { *; }
- -keep interface retrofit2.** { *; }
- -keep class okhttp3.** { *; }
- -dontwarn okhttp3.**
- -dontwarn okio.**
- -keep class com.google.gson.** { *; }
- -keepclasseswithmembers class * {
- @retrofit2.http.* <methods>;
- }
- -keep interface retrofit2.Call
- -keep class retrofit2.Response
- -keep class kotlin.coroutines.Continuation
- -dontwarn javax.annotation.**
- -adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz
- -dontwarn org.codehaus.mojo.animal_sniffer.*
- -dontwarn retrofit2.KotlinExtensions
- -dontwarn retrofit2.KotlinExtensions$*
- -dontnote retrofit2.Platform
- -dontwarn retrofit2.Platform$Android$MainThreadExecutor
- ########################
- ## 3) Gson
- ########################
- -keep class * extends com.google.gson.TypeAdapter { *; }
- -keep class * implements com.google.gson.TypeAdapterFactory { *; }
- -keep class * implements com.google.gson.JsonDeserializer { *; }
- -keep class * implements com.google.gson.JsonSerializer { *; }
- -keep class * {
- @com.google.gson.annotations.SerializedName <fields>;
- }
- -keep interface com.companyname.data.remote.** { *; }
- ########################
- ## 5) Glide
- ########################
- -keep public class * implements com.bumptech.glide.module.GlideModule
- -keep public class * extends com.bumptech.glide.module.AppGlideModule
- -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
- **[] $VALUES;
- public *;
- }
- ########################
- ## 6) Firebase (DataSnapshot.getValue)
- ########################
- -keepclassmembers,allowoptimization class com.companyname.domain.model.chat.TicketModel {
- public <init>(); !static <fields>; public !static *** get*();
- }
- -keepclassmembers,allowoptimization class com.companyname.features.dispute.presentation.view.DisputeMessage {
- public <init>(); !static <fields>; public !static *** get*();
- }
- -keepclassmembers,allowoptimization class com.companyname.domain.model.orderInfo.OrderResult {
- public <init>(); !static <fields>; public !static *** get*();
- }
- ########################
- ## 7) DI / Koin / Initializers
- ########################
- -keep class com.companyname.features.core.initializers.KoinInitializer { *; }
- -keep class com.companyname.features.core.initializers.LokaliseInitializer { *; }
- -keep interface com.companyname.domain.repository.local.DeliveryDataRepository { *; }
- -keep interface com.companyname.domain.datasource.SettingsDataSource { *; }
- -keep interface com.companyname.domain.datasource.UserDataSource { *; }
- -keep interface com.companyname.domain.datasource.RuntimeFlags { *; }
- -keep interface com.companyname.domain.intercators.CheckRuntimeAutoCanceledOrderUseCase { *; }
- -keep interface com.companyname.domain.repository.SettingsRepository { *; }
- -keep class com.companyname.domain.datasource.** { *; }
- ########################
- ## 8) Domain
- ########################
- -keep class com.companyname.domain.model.** { *; }
- -keep enum com.companyname.features.address.OpenMapSource { *; }
- ########################
- ## 9)
- ########################
- # PubNub
- -dontwarn com.pubnub.**
- # Stripe Card Scan
- -dontwarn com.stripe.android.stripecardscan.**
- # Install Referrer
- -dontwarn com.android.installreferrer.*
- # Google Places
- -dontwarn com.google.android.libraries.places.api.*
- # Google translate client
- -keepclassmembers class * { @com.google.api.client.util.Key <fields>; }
- -dontwarn com.google.**
- -dontwarn com.google.auto.**
- -dontwarn autovalue.shaded.com.**
- # Adjust
- -keep class com.adjust.sdk.** { *; }
- -keep class com.google.android.gms.common.ConnectionResult { int SUCCESS; }
- -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
- com.google.android.gms.ads.identifier.AdvertisingIdClient$Info getAdvertisingIdInfo(android.content.Context);
- }
- -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {
- java.lang.String getId();
- boolean isLimitAdTrackingEnabled();
- }
- -keep public class com.android.installreferrer.** { *; }
- # HMS / Huawei
- -ignorewarnings
- -keep class com.huawei.hms.** { *; }
- -keep class * extends com.huawei.hms.core.aidl.IMessageEntity { *; }
- -keep public class com.huawei.location.nlp.network.** { *; }
- -keep class com.huawei.wisesecurity.ucs.** { *; }
- -keep class com.huawei.hianalytics.** { *; }
- -keep class com.huawei.updatesdk.** { *; }
- # Lokalise
- -keep class com.lokalise.** { *; }
- -dontwarn com.lokalise.*
- # Realm annotations
- -keep @interface io.realm.annotations.RealmModule { *; }
- -keep class io.realm.annotations.RealmModule { *; }
- # Sentry
- -keep class io.sentry.** { *; }
- -dontwarn io.sentry.**
- # NewRelic
- -keep class com.newrelic.agent.android.distributedtracing.TraceConfiguration { *; }
- -keep class com.newrelic.** { *; }
- -dontwarn com.newrelic.**
- -keep class com.newrelic.com.google.gson.reflect.TypeToken { *; }
- -keep class * extends com.newrelic.com.google.gson.reflect.TypeToken
- ########################
- ## 10)
- ########################
- -keep class spay.sdk.** { *; }
- -keep class com.companyname.ui.** { *; }
- -keep class com.companyname.data.cache.** { *; } # если там есть runtime-reflection
- -keep class kotlin.Metadata
- -keep class * implements java.io.Serializable { *; }
- -keepclassmembers class com.google.android.material.tabs.TabItem {
- public *;
- <fields>;
- <methods>;
- }
- -keep class com.google.android.material.tabs.TabItem { *; }
- -keep class com.google.android.material.tabs.TabLayout { *; }
- ########################
- ## 11) Kotlin Coroutines
- ########################
- -keep class kotlinx.coroutines.** { *; }
- -keep class kotlin.coroutines.** { *; }
- -keep class kotlinx.coroutines.internal.** { *; }
- -keep class kotlinx.coroutines.android.** { *; }
- -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
- -keepnames class kotlinx.coroutines.android.AndroidDispatcherFactory {}
- -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
- -keepnames interface kotlinx.coroutines.Job
- -keepnames interface kotlinx.coroutines.CompletableJob
- -keepnames class kotlinx.coroutines.scheduling.ExperimentalCoroutineDispatcher {}
- -dontwarn kotlinx.coroutines.**
Advertisement
Add Comment
Please, Sign In to add comment