Committed by
GitHub
fix missing methods on enums
Some enums in android camerax API are missing after minification. Adding a general rule to keep enum fields and APIs around.
Showing
1 changed file
with
7 additions
and
1 deletions
| 1 | -keep class com.google.mlkit.* { *; } | 1 | -keep class com.google.mlkit.* { *; } |
| 2 | -keep class com.google.android.libraries.barhopper.** { *; } | 2 | -keep class com.google.android.libraries.barhopper.** { *; } |
| 3 | --keep class com.google.photos.* { *; } | ||
| 3 | +-keep class com.google.photos.* { *; } | ||
| 4 | + | ||
| 5 | +-keepclassmembers class * extends java.lang.Enum { | ||
| 6 | + <fields>; | ||
| 7 | + public static **[] values(); | ||
| 8 | + public static ** valueOf(java.lang.String); | ||
| 9 | +} |
-
Please register or login to post a comment