mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Use the suffix.
This commit is contained in:
parent
5027a92087
commit
15efe61a74
1 changed files with 2 additions and 2 deletions
|
@ -56,12 +56,12 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
|
||||||
|
|
||||||
// // The ordering of files is: 1) build type 2) product flavor 3) default
|
// // The ordering of files is: 1) build type 2) product flavor 3) default
|
||||||
buildType.let {
|
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}")
|
log(3, "Adding source for build type ${it.name}: ${dir.path}")
|
||||||
result.add(dir)
|
result.add(dir)
|
||||||
}
|
}
|
||||||
productFlavor.let {
|
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}")
|
log(3, "Adding source for product flavor ${it.name}: ${dir.path}")
|
||||||
result.add(dir)
|
result.add(dir)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue