mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-29 17:38:12 -07:00
Fix BuildConfig directory bug.
This commit is contained in:
parent
db90b596d2
commit
f718dd6c94
2 changed files with 7 additions and 4 deletions
|
@ -171,7 +171,7 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
|
|||
val result = KFiles.makeDir(KFiles.generatedSourceDir(project, this, "buildConfig"))
|
||||
// Make sure the generatedSourceDirectory doesn't contain the project.directory since
|
||||
// that directory will be added when trying to find recursively all the sources in it
|
||||
generatedSourceDirectory = File(result.relativeTo(File(project.directory)).absolutePath)
|
||||
generatedSourceDirectory = result.relativeTo(File(project.directory))
|
||||
val outputGeneratedSourceDirectory = File(result, pkg.replace('.', File.separatorChar))
|
||||
val outputDir = File(outputGeneratedSourceDirectory, "BuildConfig." + contributor.buildConfigSuffix)
|
||||
KFiles.saveFile(outputDir, code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue