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

Variant was not honoring the project directory.

This commit is contained in:
Cedric Beust 2015-11-23 17:15:17 -08:00
parent 873f8fc0ae
commit 5a5ff5854a

View file

@ -79,7 +79,8 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
* If either the Project or the current variant has a build config defined, generate BuildConfig.java * If either the Project or the current variant has a build config defined, generate BuildConfig.java
*/ */
fun maybeGenerateBuildConfig(project: Project, context: KobaltContext) { fun maybeGenerateBuildConfig(project: Project, context: KobaltContext) {
fun generated(project: Project) = KFiles.joinDir(project.buildDirectory, "generated", "source") fun generated(project: Project) = KFiles.joinDir(project.directory, project.buildDirectory, "generated",
"source")
if (project.buildConfig != null || context.variant.hasBuildConfig) { if (project.buildConfig != null || context.variant.hasBuildConfig) {
val buildConfigs = arrayListOf<BuildConfig>() val buildConfigs = arrayListOf<BuildConfig>()