Open
Bug 1418507
Opened 7 years ago
Updated 2 years ago
Include more directories in Android Studio's file search
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Firefox Build System
Android Studio and Gradle Integration
Tracking
(Not tracked)
NEW
People
(Reporter: JanH, Unassigned)
References
(Blocks 2 open bugs)
Details
Ctrl+Shift+N is a quick way of opening a file in Android Studio, but at the moment its search only returns files inside the mobile and toolkit directories.
When working on native code, it would be nice if those files would be available as well to avoid having to manually find them somewhere within the mozilla-central directory structure.
At the very least this would mean the files under /widget/android, but other parts of Gecko (except for /browser I guess) would be interesting as well.
Ideally we'd be able to detect artifact mode and only include those additional directories when artifact mode is not enabled, so people working on the front-end only wouldn't be bothered by all the additional native code files turning up in the search results.
Comment 1•7 years ago
|
||
Sketch of how I think this might work:
- add Gradle project mobile/android/geckoview/native_code
- add :native_code project in /settings.gradle conditionally, only if COMPILE_ENVIRONMENT
- add C++ directories to :native_code project, like omnijar
- don't depend on :native_code project directly
- wire up |mach build binaries| and possibly some additional file copying like existing `buildOmnijars` task
- but only when we're building "local" and "withGeckoBinaries"
Comment 2•7 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #1)
> Sketch of how I think this might work:
>
> - add Gradle project mobile/android/geckoview/native_code
> - add :native_code project in /settings.gradle conditionally, only if
> COMPILE_ENVIRONMENT
> - add C++ directories to :native_code project, like omnijar
> - don't depend on :native_code project directly
> - wire up |mach build binaries| and possibly some additional file copying
> like existing `buildOmnijars` task
> - but only when we're building "local" and "withGeckoBinaries"
Oh! That last depends on Bug 1411654, which makes this approach sensible.
Updated•5 years ago
|
Product: Firefox for Android → Firefox Build System
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•