Skip to content

Commit

Permalink
Add proguard definitions to prevent stripping of methods
Browse files Browse the repository at this point in the history
Newly added WebviewChromium methods getHandler and findFocus
were being stripped by proguard. Explicitly keep them in .jar.

Review URL: https://codereview.chromium.org/1765333002

Cr-Commit-Position: refs/heads/master@{#379922}
  • Loading branch information
sgurun authored and Commit bot committed Mar 8, 2016
1 parent d88c7b4 commit 4e0e652
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion android_webview/apk/java/proguard.flags
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@
public static boolean dumpWithoutCrashing(...);
}

#TODO(hush): remove after N release. crbug.com/543272, crbug.com/584789
#TODO(hush): remove after N release. crbug.com/543272, crbug.com/584789.
#TODO(hush): Also remove getHandler and findFocus when removing others here
# and add @Override to these methods.
-keep class com.android.webview.chromium.WebViewChromium {
public void onActivityResult(int,int,android.content.Intent);
public boolean onDragEvent(android.view.DragEvent);
public android.os.Handler getHandler(android.os.Handler);
public android.view.View findFocus(android.view.View);
}

#TODO(hush): remove after N release. crbug.com/546762
Expand Down

0 comments on commit 4e0e652

Please sign in to comment.