mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -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
|
||||
*/
|
||||
fun maybeGenerateBuildConfig(project: Project, context: KobaltContext) {
|
||||
fun generated(project: Project) = KFiles.joinDir(project.directory, project.buildDirectory, "generated",
|
||||
"source")
|
||||
fun generated(project: Project) = KFiles.joinDir(AndroidFiles.generated(project), "source")
|
||||
|
||||
if (project.buildConfig != null || context.variant.hasBuildConfig) {
|
||||
val buildConfigs = arrayListOf<BuildConfig>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue