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

Issue 2812133003: Android: Add pseudo module for Android Studio (Closed)

Created:
3 years, 8 months ago by Peter Wen
Modified:
3 years, 7 months ago
Reviewers:
sakal-chromium, agrieve
CC:
chromium-reviews, mikecase+watch_chromium.org, nyquist+watch_chromium.org, jbudorick+watch_chromium.org, wnwen+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Add module "_all" for Android Studio Adding all sources to a "_all" pseudo module fixes Studio's code analysis functions (imports, refactoring). In order to have things build properly in gradle, the "_all" module has all sources excluded (gradle applies the filters, studio does not). Also fix "--all" targets to include tests. Make it easier to make sweeping java refactors in Android Studio. BUG=620034 Review-Url: https://codereview.chromium.org/2812133003 Cr-Commit-Position: refs/heads/master@{#465700} Committed: https://chromium.googlesource.com/chromium/src/+/03427bcc41560b36b5c595eda92e35f563a6303e

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix per review #

Total comments: 2

Patch Set 3 : Update docs and switch to sorted #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -58 lines) Patch
M build/android/gradle/android.jinja View 1 2 1 chunk +7 lines, -1 line 2 comments Download
M build/android/gradle/generate_gradle.py View 1 2 11 chunks +81 lines, -34 lines 2 comments Download
M docs/android_studio.md View 1 2 3 chunks +26 lines, -23 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
Peter Wen
Will wait for a couple other fixes to build and AndroidManifests to land before this ...
3 years, 8 months ago (2017-04-12 18:50:41 UTC) #2
agrieve
Not sure "pseudo module" is the best term here. Maybe an "all module" https://codereview.chromium.org/2812133003/diff/1/build/android/gradle/generate_gradle.py File ...
3 years, 8 months ago (2017-04-12 19:36:29 UTC) #3
Peter Wen
Will add docs next week, just wanted to send this out to get your input ...
3 years, 8 months ago (2017-04-13 17:23:17 UTC) #4
agrieve
On 2017/04/13 17:23:17, Peter Wen wrote: > Will add docs next week, just wanted to ...
3 years, 8 months ago (2017-04-13 17:48:11 UTC) #5
agrieve
lgtm. Agree not having the flag is better. https://codereview.chromium.org/2812133003/diff/20001/build/android/gradle/generate_gradle.py File build/android/gradle/generate_gradle.py (right): https://codereview.chromium.org/2812133003/diff/20001/build/android/gradle/generate_gradle.py#newcode555 build/android/gradle/generate_gradle.py:555: java_dirs ...
3 years, 8 months ago (2017-04-13 19:26:12 UTC) #7
agrieve
On 2017/04/13 19:26:12, agrieve wrote: > lgtm. Agree not having the flag is better. > ...
3 years, 8 months ago (2017-04-13 19:26:26 UTC) #8
Peter Wen
Added docs, sending to CQ https://codereview.chromium.org/2812133003/diff/20001/build/android/gradle/generate_gradle.py File build/android/gradle/generate_gradle.py (right): https://codereview.chromium.org/2812133003/diff/20001/build/android/gradle/generate_gradle.py#newcode555 build/android/gradle/generate_gradle.py:555: java_dirs = list(generator.processed_java_dirs) On ...
3 years, 8 months ago (2017-04-19 18:15:33 UTC) #9
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/2812133003/40001
3 years, 8 months ago (2017-04-19 18:16:22 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/03427bcc41560b36b5c595eda92e35f563a6303e
3 years, 8 months ago (2017-04-19 19:22:48 UTC) #17
sakal-chromium
https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/generate_gradle.py File build/android/gradle/generate_gradle.py (right): https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/generate_gradle.py#newcode702 build/android/gradle/generate_gradle.py:702: assert not args.use_gradle_process_resources, ( Why did the meaning of ...
3 years, 7 months ago (2017-05-04 09:11:00 UTC) #18
sakal-chromium
https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/android.jinja File build/android/gradle/android.jinja (right): https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/android.jinja#newcode22 build/android/gradle/android.jinja:22: {% if variables.jniLibs is defined %} Should be jni_libs ...
3 years, 7 months ago (2017-05-04 09:37:39 UTC) #20
Peter Wen
3 years, 7 months ago (2017-05-04 10:19:58 UTC) #21
Message was sent while issue was closed.
Thanks for finding the bugs!

https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/an...
File build/android/gradle/android.jinja (right):

https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/an...
build/android/gradle/android.jinja:22: {% if variables.jniLibs is defined %}
On 2017/05/04 09:37:39, sakal-chromium wrote:
> Should be jni_libs not jniLibs.

+1 will fix in follow-up CL.

https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/ge...
File build/android/gradle/generate_gradle.py (right):

https://codereview.chromium.org/2812133003/diff/40001/build/android/gradle/ge...
build/android/gradle/generate_gradle.py:702: assert not
args.use_gradle_process_resources, (
On 2017/05/04 09:11:00, sakal-chromium wrote:
> Why did the meaning of this check change? Now it asserts that
> use_gradle_process_resouces is not set when using split_projects. I think this
> is a bug?

Yes, you are correct, it's a bug. I'll fix it in a follow-up CL.

Powered by Google App Engine
This is Rietveld 408576698