Skip to content

Commit

Permalink
Added proguard rule to keep native interface stubs on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Oct 21, 2023
1 parent 72199a4 commit b3ed4d7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3233,6 +3233,7 @@ public void usesClassMethod(String cls, String method) {
+ "-keepclassmembers public class "+xclass("android.support.v4.app.NotificationCompat")+"$Builder {\n"
+ " public "+xclass("android.support.v4.app.NotificationCompat")+"$Builder setChannelId(java.lang.String);\n"
+ "}\n\n"
+ "-keep class **Stub { *; }\n\n" // Because there have been cases where release builds were stripping out native interfaces
+ facebookProguard
+ " " + request.getArg("android.proguardKeep", "") + "\n"
+ googlePlayObfuscation
Expand Down

0 comments on commit b3ed4d7

Please sign in to comment.