mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Variant was not honoring the project directory.
This commit is contained in:
parent
873f8fc0ae
commit
5a5ff5854a
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,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(project.buildDirectory, "generated", "source")
|
||||
fun generated(project: Project) = KFiles.joinDir(project.directory, project.buildDirectory, "generated",
|
||||
"source")
|
||||
|
||||
if (project.buildConfig != null || context.variant.hasBuildConfig) {
|
||||
val buildConfigs = arrayListOf<BuildConfig>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue