refactor(twitter/dynamic-color): remove formatting in XML (#680)
This commit is contained in:
parent
1ca9619278
commit
03c007b4cc
|
@ -33,14 +33,8 @@ class DynamicColorPatch : ResourcePatch() {
|
||||||
val colorsXml = it.resolve("colors.xml")
|
val colorsXml = it.resolve("colors.xml")
|
||||||
|
|
||||||
if(!colorsXml.exists()) {
|
if(!colorsXml.exists()) {
|
||||||
FileWriter(
|
FileWriter(colorsXml).use {
|
||||||
colorsXml,
|
it.write("<?xml version=\"1.0\" encoding=\"utf-8\"?><resources></resources>")
|
||||||
).use {
|
|
||||||
it.write(
|
|
||||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
|
|
||||||
"<resources>\n" +
|
|
||||||
"</resources>".trimIndent()
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue