Rework kotlin class detection in AGP3
See original GitHub issueAdd 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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Data classes
To ensure consistency and meaningful behavior of the generated code, data classes have to fulfill the following requirements: The primary ...
Read more >kezong/fat-aar-android: A gradle plugin that merge ...
A gradle plugin that merge dependencies into the final aar file works with AGP 3.+ - GitHub - kezong/fat-aar-android: A gradle plugin that...
Read more >How to detect values changed in Data class Kotlin?
In such situation, how to detect when Age or name is changed? data class Person(var Name: String, var Age: Int).
Read more >Deep Dive Into Kotlin Data Classes for Android
In this Kotlin data classes tutorial, you'll learn when and how to use data ... You need to update the class to use...
Read more >Kotlin style guide
All source files must be encoded as UTF-8. Naming. If a source file contains only a single top-level class, the file name should...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s one: https://github.com/spekframework/spek/issues/256#issuecomment-343136918. I don’t think it’s an IDE-specific patch, the
JavaArtifact#additionalSourcesDir
is probably used somehow in AGP3.Released in
1.0.20
.