fix: Use correct path to fix invalid file paths
This commit is contained in:
parent
d5551923fc
commit
043ebbb6d4
1 changed files with 3 additions and 3 deletions
|
|
@ -359,15 +359,15 @@ val addResourcesPatch = resourcePatch(
|
|||
}
|
||||
|
||||
getOrPut(resourceFileName) {
|
||||
val targetFile = this@finalize["res/$value/$resourceFileName.xml"].also {
|
||||
this@finalize["res/$value/$resourceFileName.xml"].also {
|
||||
it.parentFile?.mkdirs()
|
||||
|
||||
if (it.createNewFile()) {
|
||||
it.writeText("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n</resources>")
|
||||
}
|
||||
}
|
||||
|
||||
document(targetFile.path).let { document ->
|
||||
|
||||
document("res/$value/$resourceFileName.xml").let { document ->
|
||||
|
||||
// Save the target node here as well
|
||||
// in order to avoid having to call document.getNode("resources")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue