mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Refactor.
This commit is contained in:
parent
37a0f3101a
commit
c90aca0c7d
1 changed files with 1 additions and 2 deletions
|
@ -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>()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue