Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1920)

Unified Diff: android_webview/apk/java/proguard.flags

Issue 2250963004: Use keepclassmembers for android.webkit.JavascriptInterface in proguard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/android/base_proguard_config.flags » ('j') | base/android/base_proguard_config.flags » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/apk/java/proguard.flags
diff --git a/android_webview/apk/java/proguard.flags b/android_webview/apk/java/proguard.flags
index c94cca6949170eb92d63f2a1cc980610f42cbeb0..9ca6ceb5ee8239f4aef80f202a21d728ea0a0e03 100644
--- a/android_webview/apk/java/proguard.flags
+++ b/android_webview/apk/java/proguard.flags
@@ -77,6 +77,11 @@
public int getDisabledActionModeMenuItems();
}
+# Keeps for method level annotations.
+-keepclasseswithmembers class * {
+ @android.webkit.JavascriptInterface <methods>;
+}
+
# Ignore notes and warnings about the support library, which uses reflection and
# may reference classes no longer in the SDK.
-dontnote android.support.**
« no previous file with comments | « no previous file | base/android/base_proguard_config.flags » ('j') | base/android/base_proguard_config.flags » ('J')

Powered by Google App Engine
This is Rietveld 408576698