Skip to content

Instantly share code, notes, and snippets.

@danielgallegovico
Created November 7, 2017 13:36
Show Gist options
  • Save danielgallegovico/44208ec8dccc9ef9cfdfa4526e366e2d to your computer and use it in GitHub Desktop.
Save danielgallegovico/44208ec8dccc9ef9cfdfa4526e366e2d to your computer and use it in GitHub Desktop.
Kotlin source folder support
android {
...
// Add Kotlin folders inside flavor/build type specific folders as source files
sourceSets.all {
java.srcDirs += "src/${name}/kotlin"
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment