mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
BuildConfig generation fixes.
This commit is contained in:
parent
31395cea91
commit
d4a4e26f14
3 changed files with 30 additions and 12 deletions
|
@ -30,13 +30,8 @@ class JavaBuildConfig : BaseBuildConfig() {
|
|||
"false"
|
||||
}))
|
||||
|
||||
addAll(generateFieldsFromContributors(project, context))
|
||||
addAll(generateCommonPart(project, context, buildConfigs))
|
||||
|
||||
buildConfigs.forEach {
|
||||
it.fields.forEach { field ->
|
||||
add(generate(field.type, field.name, field.value))
|
||||
}
|
||||
}
|
||||
add("}")
|
||||
add("")
|
||||
}
|
||||
|
|
|
@ -31,13 +31,8 @@ class KotlinBuildConfig : BaseBuildConfig() {
|
|||
"false"
|
||||
}))
|
||||
|
||||
addAll(generateFieldsFromContributors(project, context))
|
||||
addAll(generateCommonPart(project, context, buildConfigs))
|
||||
|
||||
buildConfigs.forEach {
|
||||
it.fields.forEach { field ->
|
||||
add(generate(field.type, field.name, field.value))
|
||||
}
|
||||
}
|
||||
add(" }")
|
||||
add("}")
|
||||
add("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue