Fix gson usage with R8 full mode
Ensure the appropriate signatures are retained for ClockRegistry's gson usage when R8 full mode is enabled. Bug: 215530220 Test: m + boot tests Change-Id: I824b870a355a4cfea04e55d5648a6c441ab446d3
This commit is contained in:
@@ -59,6 +59,9 @@ android_library {
|
|||||||
resource_dirs: [
|
resource_dirs: [
|
||||||
"res",
|
"res",
|
||||||
],
|
],
|
||||||
|
optimize: {
|
||||||
|
proguard_flags_files: ["proguard.flags"],
|
||||||
|
},
|
||||||
java_version: "1.8",
|
java_version: "1.8",
|
||||||
min_sdk_version: "current",
|
min_sdk_version: "current",
|
||||||
plugins: ["dagger2-compiler"],
|
plugins: ["dagger2-compiler"],
|
||||||
|
|||||||
4
packages/SystemUI/shared/proguard.flags
Normal file
4
packages/SystemUI/shared/proguard.flags
Normal 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
|
||||||
Reference in New Issue
Block a user