Skip to content

Commit b1061a4

Browse files
committed
Prevent proguard from stripping @JavascriptInterface annotations
1 parent 06741bc commit b1061a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/xwalk.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414
-keepattributes **
1515

1616
-optimizations !code/allocation/variable
17+
18+
-keepclassmembers class * {
19+
@android.webkit.JavascriptInterface <methods>;
20+
@org.xwalk.core.JavascriptInterface <methods>;
21+
}

0 commit comments

Comments
 (0)