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

Issue 2540773003: [Cronet] Add proguard files for different Cronet packaging (Closed)

Created:
4 years ago by kapishnikov
Modified:
4 years ago
Reviewers:
pauljensen, mef
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cronet] Add proguard files for different Cronet packaging 1. Created three proguard files: 1.1. cronet_impl_common_proguard.cfg - for apps that depend on cronet_impl_common_java.jar 1.2. cronet_impl_platform_proguard.cfg - for apps that depend on cronet_impl_platform_java.jar 1.3. cronet_impl_native_proguard.cfg - for apps that depend on cronet_impl_native_java.jar 2. Enabled proguarding of cronet_sample_apk even for debug builds. 3. Changed cronet_sample_apk & cronet_perf_test_apk to test with proguard configs that we ship. BUG=665446 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Committed: https://crrev.com/cfb46293103925f18c3931a44044ee1a0776345c Cr-Commit-Position: refs/heads/master@{#435633}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use $target_gen_dir to merge proguard configs instead of $_package_dir #

Patch Set 3 : Changed proguard file names for better association with the corresponding jars #

Total comments: 4

Patch Set 4 : Addressed comments #

Total comments: 2

Patch Set 5 : Moved the definition of _package_dir var to its original location #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -54 lines) Patch
M components/cronet/android/BUILD.gn View 1 2 3 4 9 chunks +21 lines, -17 lines 0 comments Download
A components/cronet/android/cronet_impl_common_proguard.cfg View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A + components/cronet/android/cronet_impl_native_proguard.cfg View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
A components/cronet/android/cronet_impl_platform_proguard.cfg View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
D components/cronet/android/proguard.cfg View 1 chunk +0 lines, -30 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
kapishnikov
4 years ago (2016-11-29 23:09:30 UTC) #3
kapishnikov
On 2016/11/29 23:09:30, kapishnikov wrote: Currently, GN is failing when run first time. I have ...
4 years ago (2016-11-29 23:14:47 UTC) #4
kapishnikov
Filed a bug with a potential fix: https://bugs.chromium.org/p/chromium/issues/detail?id=669961
4 years ago (2016-11-30 17:54:29 UTC) #5
mef
Could you add to the description the list of proguard files that app needs to ...
4 years ago (2016-11-30 18:21:04 UTC) #6
kapishnikov
I added to the description: 1.1. proguard_common.cfg - for apps that depend on cronet_impl_common_java.jar 1.2. ...
4 years ago (2016-11-30 21:22:04 UTC) #7
kapishnikov
As Misha suggested, changed the proguard file names to better match the associated jar names.
4 years ago (2016-11-30 21:59:10 UTC) #9
mef
lgtm with nits. https://codereview.chromium.org/2540773003/diff/40001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2540773003/diff/40001/components/cronet/android/BUILD.gn#newcode1053 components/cronet/android/BUILD.gn:1053: rebase_path("//components/cronet/android/cronet_impl_native_proguard.cfg", nit: Should this file be ...
4 years ago (2016-11-30 22:13:45 UTC) #10
kapishnikov
https://codereview.chromium.org/2540773003/diff/40001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2540773003/diff/40001/components/cronet/android/BUILD.gn#newcode1053 components/cronet/android/BUILD.gn:1053: rebase_path("//components/cronet/android/cronet_impl_native_proguard.cfg", On 2016/11/30 22:13:45, mef wrote: > nit: Should ...
4 years ago (2016-11-30 22:34:01 UTC) #11
mef
lgtm https://codereview.chromium.org/2540773003/diff/60001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2540773003/diff/60001/components/cronet/android/BUILD.gn#newcode20 components/cronet/android/BUILD.gn:20: _package_dir = "$root_out_dir/cronet" FWIW this could go back ...
4 years ago (2016-11-30 22:42:34 UTC) #12
kapishnikov
https://codereview.chromium.org/2540773003/diff/60001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2540773003/diff/60001/components/cronet/android/BUILD.gn#newcode20 components/cronet/android/BUILD.gn:20: _package_dir = "$root_out_dir/cronet" On 2016/11/30 22:42:33, mef wrote: > ...
4 years ago (2016-11-30 22:49:29 UTC) #13
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/2540773003/80001
4 years ago (2016-12-01 16:23:45 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-01 17:22:10 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-01 17:24:06 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cfb46293103925f18c3931a44044ee1a0776345c
Cr-Commit-Position: refs/heads/master@{#435633}

Powered by Google App Engine
This is Rietveld 408576698