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

Refactor.

This commit is contained in:
Cedric Beust 2015-11-24 21:00:15 -08:00
parent 37a0f3101a
commit c90aca0c7d

View file

@ -86,8 +86,7 @@ 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.directory, project.buildDirectory, "generated", fun generated(project: Project) = KFiles.joinDir(AndroidFiles.generated(project), "source")
"source")
if (project.buildConfig != null || context.variant.hasBuildConfig) { if (project.buildConfig != null || context.variant.hasBuildConfig) {
val buildConfigs = arrayListOf<BuildConfig>() val buildConfigs = arrayListOf<BuildConfig>()