Merge "Fix gson usage with R8 full mode" into tm-qpr-dev

This commit is contained in:
Hawkwood Glazier
2022-10-19 21:35:08 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ android_library {
resource_dirs: [
"res",
],
optimize: {
proguard_flags_files: ["proguard.flags"],
},
java_version: "1.8",
min_sdk_version: "current",
plugins: ["dagger2-compiler"],

View File

@@ -0,0 +1,4 @@
# Retain signatures of TypeToken and its subclasses for gson usage in ClockRegistry
-keepattributes Signature
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken