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

Revert "Refactor."

This reverts commit e5d03956f9.
This commit is contained in:
Cedric Beust 2015-11-24 20:59:28 -08:00
parent 2b26bc14c6
commit 37a0f3101a
2 changed files with 391 additions and 1 deletions

View file

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