1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-29 17:38:12 -07:00

Refactoring toward mixed mode.

This commit is contained in:
Cedric Beust 2016-02-02 21:30:29 +04:00
parent 15efe61a74
commit 93415868b0
6 changed files with 17 additions and 11 deletions

View file

@ -36,8 +36,9 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
fun resDirectories(project: Project) : List<File> = sourceDirectories(project, "res")
fun sourceDirectories(project: Project) : List<File> =
sourceDirectories(project, project.projectInfo.sourceDirectory)
fun sourceDirectories(project: Project) = project.projectInfo.sourceSuffixes.flatMap {
sourceDirectories(project, it)
}
/**
* suffix is either "java" (to find source files) or "res" (to find resources)