-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework kotlin class detection in AGP3 #29
Comments
I'm hesitant towards the idea to extend the scope of this plugin to IDE-specific patches, since I'm assuming that a similar workaround would have to be made for IDEA and Studio 2.x versions as well (judging from the linked source). Could you link some of the issues caused by copying Kotlin output to |
Here's one: spekframework/spek#256 (comment). I don't think it's an IDE-specific patch, the |
Thanks! I'll investigate a little. |
Another point of concern in applying a patch like this inside the JUnit 5 plugin is the requirement to depend on a local installation of Android Studio. This would be a problem when it comes to our Travis CI builds, since we wouldn't have access to a |
Do you really need the full installation? Is there a way to just pull in AGP3 dependencies? |
I was just going off the way you reach into the IDE's plugin dependencies to obtain the Meanwhile, it seems that the Kotlin integration into the IDE has been improved quite a bit in the most recent releases, so that they are detected properly even from the |
Released in |
Add the kotlin output directory to the classpath Instead of copying kotlin classes to
intermediates
folder. Was able to do it in Spek's AS plugin by using an API provided by AS3 (see https://github.com/raniejade/spek-idea-plugin/blob/master/plugin-studio3.0/src/main/kotlin/org/jetbrains/spek/studio/SpekAndroidParameterPatcher.kt). Probably the same API is available in AGP3. Some users are reporting issues caused by the copy during dexing, removing the copy tasks fixes the issue.The text was updated successfully, but these errors were encountered: