diff --git a/TrackierSDK/sdk-core/build.gradle b/TrackierSDK/sdk-core/build.gradle index 659e96d..e4aa328 100644 --- a/TrackierSDK/sdk-core/build.gradle +++ b/TrackierSDK/sdk-core/build.gradle @@ -33,7 +33,7 @@ android { buildTypes { release { - minifyEnabled true + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } diff --git a/TrackierSDK/sdk-core/proguard-rules.pro b/TrackierSDK/sdk-core/proguard-rules.pro index 0900b61..ebb50d5 100644 --- a/TrackierSDK/sdk-core/proguard-rules.pro +++ b/TrackierSDK/sdk-core/proguard-rules.pro @@ -15,13 +15,9 @@ -keepclasseswithmembers class * { @retrofit2.http.* ; } --keepclasseswithmembers class * { - @com.squareup.moshi.* ; -} --keepclassmembers class * { - @com.squareup.moshi.FromJson ; - @com.squareup.moshi.ToJson ; -} +-keep class com.squareup.moshi.**{*;} +-keep class com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory**{*;} + -keep @com.squareup.moshi.JsonQualifier interface * # Kotlin and kotlinx proguard rules @@ -29,8 +25,18 @@ -keep class kotlin.Metadata { *; } -keep class kotlin.** { *; } -dontwarn kotlin.** --keep class kotlinx.** { *; } +-keep class kotlinx.** { volatile ; } -dontwarn kotlinx.** -keepclassmembers class kotlin.Metadata { public ; } + +-keep class com.google.android.material.** { *; } + +-dontwarn com.google.android.material.** +-dontnote com.google.android.material.** + +-dontwarn androidx.** +-keep class androidx.** { *; } +-keep interface androidx.** { *; } +