Skip to content

Commit 2135c1b

Browse files
committed
[Fix] Fix crash due to Enum.values() being renamed/removed by ProGuard.
1 parent 92936b4 commit 2135c1b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/proguard-rules.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
-keep class me.zhanghai.android.files.provider.common.ByteString { *; }
3232
-keep class me.zhanghai.android.files.provider.linux.syscall.** { *; }
3333
-keepnames class * extends java.lang.Exception
34+
# For Class.getEnumConstants()
35+
-keepclassmembers enum * {
36+
public static **[] values();
37+
}
3438
-keepnames class me.zhanghai.android.files.** implements android.os.Parcelable
3539

3640
# Apache Commons Compress

0 commit comments

Comments
 (0)