Skip to content

Commit

Permalink
Un minified
Browse files Browse the repository at this point in the history
  • Loading branch information
prak24oct committed Jan 27, 2021
1 parent 151c30c commit fb3c565
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion TrackierSDK/sdk-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {

buildTypes {
release {
minifyEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
22 changes: 14 additions & 8 deletions TrackierSDK/sdk-core/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,28 @@
-keepclasseswithmembers class * {
@retrofit2.http.* <methods>;
}
-keepclasseswithmembers class * {
@com.squareup.moshi.* <methods>;
}
-keepclassmembers class * {
@com.squareup.moshi.FromJson <methods>;
@com.squareup.moshi.ToJson <methods>;
}
-keep class com.squareup.moshi.**{*;}
-keep class com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory**{*;}

-keep @com.squareup.moshi.JsonQualifier interface *

# Kotlin and kotlinx proguard rules
-dontwarn org.jetbrains.annotations.**
-keep class kotlin.Metadata { *; }
-keep class kotlin.** { *; }
-dontwarn kotlin.**
-keep class kotlinx.** { *; }
-keep class kotlinx.** { volatile <fields>; }
-dontwarn kotlinx.**
-keepclassmembers class kotlin.Metadata {
public <methods>;
}

-keep class com.google.android.material.** { *; }

-dontwarn com.google.android.material.**
-dontnote com.google.android.material.**

-dontwarn androidx.**
-keep class androidx.** { *; }
-keep interface androidx.** { *; }

0 comments on commit fb3c565

Please sign in to comment.