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

Issue 512953002: Use proguard.cfg in cronet sample apk. (Closed)

Created:
6 years, 3 months ago by mef
Modified:
6 years, 3 months ago
Reviewers:
Charles, mmenke, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use proguard.cfg in release build of Cronet Sample apk. Update proguard.cfg to reflect that @UsedByReflection was moved to base/. Add --release option to cr_cronet.py tool. Notes: - Chromium debug build does not apply proguard at all. - Chromium instrumentation test does not allow custom proguard config (but it uses proguard config from instrumented app, which is nice). BUG=390267 Committed: https://crrev.com/24b4b89d638187b95fde8fa3f629cc5d533b64fe Cr-Commit-Position: refs/heads/master@{#294671}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments, move UsedByReflection to org.chromium.base. #

Total comments: 4

Patch Set 3 : Introduce cronet_sample_proguard_apk to apply proguard.cfg to. #

Patch Set 4 : Updated CronetSampleTest to use proguard. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -199 lines) Patch
M components/cronet.gypi View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M components/cronet/android/proguard.cfg View 1 1 chunk +3 lines, -3 lines 0 comments Download
A components/cronet/android/sample/javatests/proguard.cfg View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A + components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/CronetSampleTest.java View 1 2 3 3 chunks +19 lines, -36 lines 0 comments Download
D components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/CronetSampleTestBase.java View 1 2 3 1 chunk +0 lines, -150 lines 0 comments Download
M components/cronet/tools/cr_cronet.py View 1 2 1 chunk +16 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
mef
mef@chromium.org changed reviewers: + clm@google.com, mmenke@chromium.org, xunjieli@chromium.org
6 years, 3 months ago (2014-08-27 22:18:22 UTC) #1
mef
Hi, please take a look and comment, as I'm admittedly confused by proguard in general ...
6 years, 3 months ago (2014-08-27 22:22:28 UTC) #2
xunjieli
Sorry I might have missed the conversation. Why do we need to use proguard for ...
6 years, 3 months ago (2014-08-28 15:35:04 UTC) #3
mef
On 2014/08/28 15:35:04, xunjieli1 wrote: > Sorry I might have missed the conversation. Why do ...
6 years, 3 months ago (2014-08-28 15:39:35 UTC) #4
mmenke
https://codereview.chromium.org/512953002/diff/1/components/cronet/android/sample/javatests/proguard.cfg File components/cronet/android/sample/javatests/proguard.cfg (right): https://codereview.chromium.org/512953002/diff/1/components/cronet/android/sample/javatests/proguard.cfg#newcode7 components/cronet/android/sample/javatests/proguard.cfg:7: -keep class org.chromium.base.library_loader.LibraryLoaderHelper { Hrm...These are the ones you ...
6 years, 3 months ago (2014-08-28 17:26:36 UTC) #5
mef
Thanks, PTAL. https://codereview.chromium.org/512953002/diff/1/components/cronet/android/sample/javatests/proguard.cfg File components/cronet/android/sample/javatests/proguard.cfg (right): https://codereview.chromium.org/512953002/diff/1/components/cronet/android/sample/javatests/proguard.cfg#newcode7 components/cronet/android/sample/javatests/proguard.cfg:7: -keep class org.chromium.base.library_loader.LibraryLoaderHelper { On 2014/08/28 17:26:36, ...
6 years, 3 months ago (2014-08-31 21:34:39 UTC) #6
mmenke
LGTM
6 years, 3 months ago (2014-09-02 15:04:30 UTC) #7
Charles
https://codereview.chromium.org/512953002/diff/20001/components/cronet/android/sample/javatests/proguard.cfg File components/cronet/android/sample/javatests/proguard.cfg (right): https://codereview.chromium.org/512953002/diff/20001/components/cronet/android/sample/javatests/proguard.cfg#newcode9 components/cronet/android/sample/javatests/proguard.cfg:9: -keep class org.chromium.base.CommandLine { If you're keeping all these ...
6 years, 3 months ago (2014-09-02 16:52:19 UTC) #8
xunjieli
Sorry one more question. https://codereview.chromium.org/512953002/diff/20001/components/cronet/android/sample/javatests/proguard.cfg File components/cronet/android/sample/javatests/proguard.cfg (right): https://codereview.chromium.org/512953002/diff/20001/components/cronet/android/sample/javatests/proguard.cfg#newcode4 components/cronet/android/sample/javatests/proguard.cfg:4: -keep class org.chromium.base.library_loader.LibraryLoaderHelper { It ...
6 years, 3 months ago (2014-09-02 16:53:17 UTC) #9
mef
Now that CronetTest is separated from CronetSample I've updated CronetSample to use Proguard in release. ...
6 years, 3 months ago (2014-09-12 20:49:24 UTC) #10
mef
6 years, 3 months ago (2014-09-12 20:49:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/512953002/60001
6 years, 3 months ago (2014-09-12 20:56:39 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001) as f5d38942512c370ddd7b14d84a51e1faeb8820cd
6 years, 3 months ago (2014-09-12 21:58:05 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 22:03:16 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/24b4b89d638187b95fde8fa3f629cc5d533b64fe
Cr-Commit-Position: refs/heads/master@{#294671}

Powered by Google App Engine
This is Rietveld 408576698