mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-29 17:38:12 -07:00
More test resource fixes.
This commit is contained in:
parent
345dd8440c
commit
c7a094040d
4 changed files with 32 additions and 11 deletions
|
@ -48,7 +48,7 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
|
|||
}
|
||||
|
||||
}
|
||||
return result.toList()
|
||||
return result.filter { ! KFiles.isResource(it.path) }.toList()
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
|
|||
*/
|
||||
fun resourceDirectories(project: Project, sourceSet: SourceSet = SourceSet.MAIN)
|
||||
= sourceDirectories(project, "resources", variantFirst = false, sourceSet = sourceSet)
|
||||
.filter { it.path.contains("resources") || it.path.contains("res") }
|
||||
.filter { KFiles.isResource(it.path) }
|
||||
|
||||
/**
|
||||
* suffix is either "java" (to find source files) or "resources" (to find resources).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue