You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm curious about your project structure. Why are there folders named "kotlin" instead of "java"? Like app/src/main/kotlin/com.xx. I can't create a project like this using AS.
First of all thanks @oOJohn6Oo for your question. I added as a new issue just to give it more visibility to other people that are interesting in this answer.
Definitely, Android Studio by default it creates new classes under "java" directory following the same path with .java files. But because I using .kt files there is no reason to still keeping naming the same directory with java. Of course, there are no best practices or convention on that. It's just a personal criteria for aligning naming. For me is like you have a box with "apples" but you put tag as "pears".
Hopefully, the AS gonna support this in the future like Kotlin DSL but for the moment you need to do it manually by adding on the gradle:
Of course, if you create a common gradle for the features, kotlin-library, android-library you don't need to add them on each new module, just apply the plugin by:
I'm curious about your project structure. Why are there folders named "kotlin" instead of "java"? Like
app/src/main/kotlin/com.xx
. I can't create a project like this using AS.Originally posted by @oOJohn6Oo in #20 (comment)
The text was updated successfully, but these errors were encountered: