Closed westlinkin closed 2 years ago
Need to add this line -keep class com.google.gson.** { *; }
into proguard config file
Ok
With release of R8 full mode I had to add the retrofit proguard rules manually from here https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro in addition to
-keep class com.google.gson.reflect.TypeToken
-keep class * extends com.google.gson.reflect.TypeToken
-keep public class * implements java.lang.reflect.Type
Great work!
I implement this library into Flutter. When in debug mode, it goes well, but after I built it in release mode, it crashes.
Here is the log caught by Crashlytics:
I'm thinking maybe caused by
obfuscate
problem?