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

Issue 2610823002: Fixing package-boundary violation with srjar_deps (Closed)

Created:
3 years, 11 months ago by mbonadei
Modified:
3 years, 11 months ago
Reviewers:
kjellander_webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fixing package-boundary violation with srjar_deps Without the usage of the srcjar_deps attribute we were not able to include .java files from other packages without violating the package boundary contraint. As an example, in this CL the target "libjingle_peerconnection_java" was directly including .java files from another packages in its "java_files" attribute. Using srcjar_deps we are able to declare the dependency of the target avoiding to create hidden dependencies in the codebase. This is not fixing the webrtc:6356 bug directly but it is a first step to include ThreadUtils classes in libjingle_peerconnection_client_java.jar again. It seems also to be related to the chromium:648244 bug. This can be solved if we can find a way to perform srcjar generation in the android_library target without changing the semantic of the target. BUG=webrtc:6356 Review-Url: https://codereview.webrtc.org/2610823002 Cr-Commit-Position: refs/heads/master@{#15914} Committed: https://chromium.googlesource.com/external/webrtc/+/10a76592a78762187bfaf3547b7e9986454062ab

Patch Set 1 #

Total comments: 26

Patch Set 2 : Addressing comments #

Total comments: 2

Patch Set 3 : Addressing some formatting comments #

Patch Set 4 : Moving generate_srcjar script to webrtc/build #

Patch Set 5 : Including .gni android configs only if is_android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -6 lines) Patch
A webrtc/build/generate_srcjar.py View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M webrtc/build/webrtc.gni View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/BUILD.gn View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M webrtc/sdk/android/BUILD.gn View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
mbonadei
This is the proof of concept. It seems to work, we are now able to ...
3 years, 11 months ago (2017-01-04 10:58:01 UTC) #2
kjellander_webrtc
Can you provide some small examples on how you verify this is working? e.g. running ...
3 years, 11 months ago (2017-01-04 14:25:21 UTC) #3
mbonadei
This is the manual test done after a 'ninja -C out/android': jar tvf out/android/lib.java/webrtc/sdk/android/libjingle_peerconnection_java.jar | ...
3 years, 11 months ago (2017-01-04 15:19:06 UTC) #4
mbonadei
On 2017/01/04 15:19:06, mbonadei wrote: > This is the manual test done after a 'ninja ...
3 years, 11 months ago (2017-01-04 15:27:21 UTC) #5
mbonadei
Here is the full comparison. Before (with the old include which is violating the package ...
3 years, 11 months ago (2017-01-04 16:09:29 UTC) #6
kjellander_webrtc
Nice work! lgtm with nit addressed. Please also try to format the CL title and ...
3 years, 11 months ago (2017-01-04 20:03:45 UTC) #7
kjellander_webrtc
On 2017/01/04 20:03:45, kjellander_webrtc wrote: > Nice work! > lgtm with nit addressed. > > ...
3 years, 11 months ago (2017-01-04 20:04:12 UTC) #8
mbonadei
https://codereview.webrtc.org/2610823002/diff/20001/webrtc/generate_srcjar.py File webrtc/generate_srcjar.py (right): https://codereview.webrtc.org/2610823002/diff/20001/webrtc/generate_srcjar.py#newcode30 webrtc/generate_srcjar.py:30: """Given a path to a .java source file it ...
3 years, 11 months ago (2017-01-05 08:17:52 UTC) #10
kjellander_webrtc
On 2017/01/05 08:17:52, mbonadei wrote: > https://codereview.webrtc.org/2610823002/diff/20001/webrtc/generate_srcjar.py > File webrtc/generate_srcjar.py (right): > > https://codereview.webrtc.org/2610823002/diff/20001/webrtc/generate_srcjar.py#newcode30 > ...
3 years, 11 months ago (2017-01-05 08:40:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2610823002/80001
3 years, 11 months ago (2017-01-05 10:51:06 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/external/webrtc/+/10a76592a78762187bfaf3547b7e9986454062ab
3 years, 11 months ago (2017-01-05 12:04:00 UTC) #17
mbonadei
3 years, 11 months ago (2017-01-05 12:24:21 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.webrtc.org/2617533005/ by mbonadei@webrtc.org.

The reason for reverting is: This CL is breaking a chromium.webrtc.fyi:
https://build.chromium.org/p/chromium.webrtc.fyi/builders/Android%20Builder/b...

I am trying to reproduce the issue on my local machine and I will try to re-land
the CL later..

Powered by Google App Engine
This is Rietveld 408576698