Status Update
Comments
vi...@google.com <vi...@google.com> #2
tn...@google.com <tn...@google.com>
xa...@google.com <xa...@google.com> #3
We currently use an older mechanism to import Java project (main/test in the same IntelliJ module using IJ's main/test sourcesets), but this does not work for new source sets. IJ is now creating a separate module per source sets and we need to move toward this in order to support this.
However this cannot happen in 3.6 as we are too close to beta, so it's going to have to wait until 3.7.
xa...@google.com <xa...@google.com> #4
xa...@google.com <xa...@google.com> #5
ai...@gmail.com <ai...@gmail.com> #6
It's extremely useful feature for multi-module projects to share test-related utilities, now we have to copy-paste module-specitic test utilities, stubs, fakes etc. Extract it to own test module is also an option, but requires much more boilerplate and not free for configuration time.
ro...@gmail.com <ro...@gmail.com> #7
sm...@google.com <sm...@google.com> #8
uc...@google.com <uc...@google.com>
se...@gmail.com <se...@gmail.com> #9
xa...@google.com <xa...@google.com> #10
ro...@miquido.com <ro...@miquido.com> #11
xa...@google.com <xa...@google.com> #12
we are making progress toward this yes.
se...@gmail.com <se...@gmail.com> #13
Well, AGP 7.0 will surely be exciting.
l....@gmail.com <l....@gmail.com> #14
Can you share some more details here? "Blocking Release -> AGP-7.0 Beta" looks either like a mistake or something related to planning not known to the general public. Should we expect this feature in ~3 years (at least) from now, when AS 7 will be released?
xa...@google.com <xa...@google.com> #15
AGP 7.0 is the version after 4.2. We'll announce more about it when the first canary lands (once 4.2 moves into beta).
lo...@gmail.com <lo...@gmail.com> #16
Is that decoupling of AGP and Android Studio releases? Anyway, staying tuned, looking forward the blog post.
tr...@gmail.com <tr...@gmail.com> #17
given that this was blocked by migrating to the newer way gradle and intellij interact. and that if we look at 6.8
& 7.0
. a paradigm shift in versioning to follow that of the tool that AGP directly integrates/coexists with seems like a fairly safe bet. Though given the nature of any intelligent and integrated tool chain I can't imagine that AGP will be any less coupled to the the IDE version unless they have reinvented the communication medium of AGP and Studio to be more dynamic. Not entirely impossible given recent changes in the core idea platform being able to configure and reload plugins without a restart. (given the plugins are implemented to support it?)
Maybe a future where [android studio](skinned intellij IDEA with a smarter plugin system) dynamically adjusts to the project's configuration is a reality without undue maintenance burden on both teams.
eu...@gmail.com <eu...@gmail.com> #18
Was it already announced or documented publicly?
xa...@google.com <xa...@google.com> #19
It's not yet supported.
sm...@google.com <sm...@google.com> #20
Thanks for the bug report, this should be working on newer versions of the chipmunk canaries. Please let us know if this is not the case.
tr...@gmail.com <tr...@gmail.com> #21
Just confirmed. it is behaving well in chipmunk beta 1. Including when the project is still on AGP 7.1.0
Thanks all
Description
Version of Gradle: 5.6
Studio Build:
Android Studio 3.6 Canary 6
Build #AI-192.5587.17.36.5787298, built on August 7, 2019
Runtime version: 1.8.0_202-release-1483-b49-5587405 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
Registry: testDiscovery.enabled=true, ide.mac.new.color.picker=true, search.everywhere.structure=true, terminal.buffer.max.lines.count=, idea.true.smooth.scrolling.interpolation=true, ide.new.welcome.screen.force=true, search.everywhere.settings=true, ide.mac.allowDarkWindowDecorations=true, debugger.watches.in.variables=false, projectView.choose.directory.on.compacted.middle.packages=true, show.affected.tests.in.changelists=true, terminal.persistent.tabs=false, terminal.distraction.free=true, cidr.max.intellisense.file.length=1000000
Non-Bundled Plugins: com.zxy.idea.plugin.external-plugin-support
Steps to Reproduce:
1. create a new android project
2. add a new java library module
3. configure the java library module with `apply plugin: 'java-test-fixtures'`
4. add some dependencies to the `testFixturesApi` configuration, ie: testFixturesApi("junit:junit:4.12")
5. sync project with studio
6. attempt to write source inside the testFixtures src set
7. dependencies added to testFixturesApi are not available for code completion or indexed (imports and usages in red)