mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Expose a method for plug-ins.
This commit is contained in:
parent
74e65a1ef5
commit
75a1d4916f
1 changed files with 3 additions and 1 deletions
|
@ -44,10 +44,12 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
|
||||||
return result.toList()
|
return result.toList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun resDirectories(project: Project) : List<File> = sourceDirectories(project, "res")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suffix is either "java" (to find source files) or "res" (to find resources)
|
* suffix is either "java" (to find source files) or "res" (to find resources)
|
||||||
*/
|
*/
|
||||||
private fun sourceDirectories(project: Project, suffix: String) : List<File> {
|
fun sourceDirectories(project: Project, suffix: String) : List<File> {
|
||||||
val result = arrayListOf<File>()
|
val result = arrayListOf<File>()
|
||||||
val sourceDirectories = project.sourceDirectories.map { File(it) }
|
val sourceDirectories = project.sourceDirectories.map { File(it) }
|
||||||
if (isDefault) {
|
if (isDefault) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue