You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix reflection error in com.google.android.datatransport.Priority when using aggressive Proguard rules. (#2016)
The enum's values are accessed via reflection, so aggressive Proguard
rules can cause it to be stripped out.
e.g., #1996
This fix switches out PriorityMapping's Map implementation to avoid reflection.
EnumMap uses reflection under the hood. Switching to a HashMap removes the
reflection call, so we don't need the Proguard rule keeping `values`
after all.
Copy file name to clipboardExpand all lines: transport/transport-runtime/src/main/java/com/google/android/datatransport/runtime/util/PriorityMapping.java
0 commit comments