Skip to content

Commit

Permalink
Add proguard for enum
Browse files Browse the repository at this point in the history
Summary: SmartLoginOption uses Enum and we need to avoid over-optimization for Enum

Reviewed By: Oliverccccct

Differential Revision: D21938985

fbshipit-source-id: f7aadee3b019d60b5748ff0933a65bd98bd81cdc
  • Loading branch information
KylinChang authored and facebook-github-bot committed Jun 8, 2020
1 parent 052c714 commit 75aa0bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions facebook-core/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
# public *;
#}

-keepclassmembers,allowoptimization enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keepclassmembers class * implements java.io.Serializable {
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
Expand Down

0 comments on commit 75aa0bf

Please sign in to comment.