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

Issue 2147743002: Fixing WebView ProGuard config for annotations (Closed)

Created:
4 years, 5 months ago by smaier
Modified:
4 years, 5 months ago
Reviewers:
agrieve, Torne
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing WebView ProGuard config for annotations WebView used to not -keep its annotations. Thus, when trying to do anything useful with ProGuard, it appeared that the annotations were not being obeyed, since ProGuard had already stripped them out. Note - since we still have the -keepnames class *** { *; }, this effectively prevents any real optimizations from being run. This change brings the .dex size down 7356 B, and removes 12 types, 5 fields, and 57 strings. However, these all seem inconsequential, as this is the method/class diff of this change: org.chromium.base.Log - void d(java.lang.String,java.lang.String,java.lang.Object) - void v(java.lang.String,java.lang.String) - void d(java.lang.String,java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object) - java.lang.String formatLogWithStack(java.lang.String,java.lang.Object[]) - void d(java.lang.String,java.lang.String) - void v(java.lang.String,java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object) - void <init>() - void d(java.lang.String,java.lang.String,java.lang.Object,java.lang.Object) - java.lang.String getCallOrigin() - void debug(java.lang.String,java.lang.String,java.lang.Object[]) - void verbose(java.lang.String,java.lang.String,java.lang.Object[]) BUG=541543, 583143, 624827, 627139 Committed: https://crrev.com/6eff9fcd9bce74c436c3ce33355f1b7acbcc3b34 Cr-Commit-Position: refs/heads/master@{#405491}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Also keeping RemovableInRelease #

Patch Set 3 : assuming no side effects for @RemovableInRelease #

Patch Set 4 : Fixing WebView ProGuard config for annotations #

Total comments: 4

Patch Set 5 : Addressing Torne's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -5 lines) Patch
M android_webview/apk/java/proguard.flags View 1 2 3 4 2 chunks +17 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
smaier
4 years, 5 months ago (2016-07-12 21:39:23 UTC) #2
agrieve
lgtm https://codereview.chromium.org/2147743002/diff/1/android_webview/apk/java/proguard.flags File android_webview/apk/java/proguard.flags (right): https://codereview.chromium.org/2147743002/diff/1/android_webview/apk/java/proguard.flags#newcode11 android_webview/apk/java/proguard.flags:11: -keep @interface **.AccessedBy* nit: Can you add a ...
4 years, 5 months ago (2016-07-13 13:42:29 UTC) #10
Torne
Why does keeping all names prevent any real optimisations from being run? What exactly are ...
4 years, 5 months ago (2016-07-13 16:54:25 UTC) #12
smaier
On 2016/07/13 16:54:25, Torne wrote: > Why does keeping all names prevent any real optimisations ...
4 years, 5 months ago (2016-07-13 22:21:15 UTC) #13
smaier
https://codereview.chromium.org/2147743002/diff/60001/android_webview/apk/java/proguard.flags File android_webview/apk/java/proguard.flags (right): https://codereview.chromium.org/2147743002/diff/60001/android_webview/apk/java/proguard.flags#newcode14 android_webview/apk/java/proguard.flags:14: -keep @interface **.AccessedBy* On 2016/07/13 16:54:25, Torne wrote: > ...
4 years, 5 months ago (2016-07-13 22:21:23 UTC) #14
Torne
On 2016/07/13 22:21:15, smaier wrote: > On 2016/07/13 16:54:25, Torne wrote: > > Why does ...
4 years, 5 months ago (2016-07-14 10:20:47 UTC) #15
smaier
On 2016/07/14 10:20:47, Torne wrote: > On 2016/07/13 22:21:15, smaier wrote: > > On 2016/07/13 ...
4 years, 5 months ago (2016-07-14 13:48:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147743002/80001
4 years, 5 months ago (2016-07-14 13:52:53 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-14 14:36:37 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 14:36:39 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/6eff9fcd9bce74c436c3ce33355f1b7acbcc3b34 Cr-Commit-Position: refs/heads/master@{#405491}
4 years, 5 months ago (2016-07-14 14:39:33 UTC) #25
sgurun-gerrit only
On 2016/07/14 14:39:33, commit-bot: I haz the power wrote: > Patchset 5 (id:??) landed as ...
4 years, 5 months ago (2016-07-14 17:26:18 UTC) #26
sgurun-gerrit only
4 years, 5 months ago (2016-07-14 17:26:19 UTC) #27
Message was sent while issue was closed.
On 2016/07/14 14:39:33, commit-bot: I haz the power wrote:
> Patchset 5 (id:??) landed as
> https://crrev.com/6eff9fcd9bce74c436c3ce33355f1b7acbcc3b34
> Cr-Commit-Position: refs/heads/master@{#405491}

I am late to the party, but fully agreed with Torne's comments here. We had
quite a bit of issues debugging GMSCore obfuscations. I don't want WebView
developers to have the same pain.

Powered by Google App Engine
This is Rietveld 408576698