1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Use the suffix.

This commit is contained in:
Cedric Beust 2016-02-02 21:20:05 +04:00
parent 5027a92087
commit 15efe61a74

View file

@ -56,12 +56,12 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
// // The ordering of files is: 1) build type 2) product flavor 3) default
buildType.let {
val dir = File(KFiles.joinDir("src", it.name, project.projectInfo.sourceDirectory))
val dir = File(KFiles.joinDir("src", it.name, suffix))
log(3, "Adding source for build type ${it.name}: ${dir.path}")
result.add(dir)
}
productFlavor.let {
val dir = File(KFiles.joinDir("src", it.name, project.projectInfo.sourceDirectory))
val dir = File(KFiles.joinDir("src", it.name, suffix))
log(3, "Adding source for product flavor ${it.name}: ${dir.path}")
result.add(dir)
}