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:
parent
15efe61a74
commit
93415868b0
6 changed files with 17 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue