Commit c34bd51b authored by Your Name's avatar Your Name

打正式包要添加混淆Gson

parent 1d5d91fa
...@@ -24,3 +24,24 @@ ...@@ -24,3 +24,24 @@
-keep class com.trustlook.** { -keep class com.trustlook.** {
*; *;
} }
# 保留 Gson
-keep class com.google.gson.reflect.** { *; }
-keepattributes *Annotation*
-keep class * extends com.google.gson.TypeAdapter
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer
-keep class com.google.gson.stream.** { *; }
-keep class com.google.gson.** { *; }
-keep class com.alibaba.idst.** { *; }
-keep class * extends com.google.gson.reflect.TypeToken
-keepclassmembers,allowobfuscation class * {
@com.google.gson.annotations.SerializedName <fields>;
}
-dontwarn sun.misc.**
-keep class com.google.gson.examples.android.model.** { <fields>; }
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
-keep class com.swiftcleaner.chovey.view.function.weather.WeatherBean { *; }
-keep class com.swiftcleaner.chovey.view.function.weather.ListBean { *; }
\ No newline at end of file
...@@ -71,7 +71,8 @@ object ConfigUtils { ...@@ -71,7 +71,8 @@ object ConfigUtils {
val jsonObject = JSONObject() val jsonObject = JSONObject()
jsonObject.put("ut", SPUtils.getInstance().getInt("ut")) jsonObject.put("ut", SPUtils.getInstance().getInt("ut"))
EventUtils.event("user_type", ext = jsonObject) EventUtils.event("user_type", ext = jsonObject)
} catch (_: Exception) { } catch (e: Exception) {
// Log.e("configMap","Exception ${e.message}")
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment