Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Why sources are still in "java" folder? #164

Closed
Rokanank opened this issue Feb 6, 2018 · 3 comments
Closed

Why sources are still in "java" folder? #164

Rokanank opened this issue Feb 6, 2018 · 3 comments

Comments

@Rokanank
Copy link

Rokanank commented Feb 6, 2018

It may be not so important, but why path to sources still contains java
android-ktx/src/main/java/androidx/

shouldn't it be kotlin?
android-ktx/src/main/kotlin/androidx/

@JakeWharton
Copy link
Contributor

It doesn't really matter as the Kotlin plugin compiles from both by default. 'java' is chosen because AS recognizes it by default. We could configure the build such that it recognizes 'kotlin', but I'd rather minimize customizations we make instead.

If you want to see the 'kotlin' folder used, send an issue or PR to the Kotlin Gradle plugin to register the 'kotlin' folder as a source set with the 'android' plugin.

@Rokanank
Copy link
Author

Rokanank commented Feb 6, 2018

Thanks, for answer!
I'll try to explore more about kotlin plugin

@joshfriend
Copy link

If you use the "Android" view in the Android Studio navigator panel, it shows "Java" as the folder name, even if you call it "kotlin" in your filesystem

asdf

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants