We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9311964 commit fd81f47Copy full SHA for fd81f47
sample/AndroidStringObfuscator.jar
-90 Bytes
sample/build.gradle
@@ -61,9 +61,11 @@ android.applicationVariants.all{ variant ->
61
]
62
}
63
def stringsFileObfus = file("string_obfuscation/strings.xml")
64
- stringsFile.write(stringsFileObfus.getText('UTF-8'))
65
- stringsFileObfus.delete()
66
- } else logger.error("strings.xml file couldn't be found: " + path)
+ if (stringsFileObfus.isFile()) {
+ stringsFile.write(stringsFileObfus.getText('UTF-8'))
+ stringsFileObfus.delete()
67
+ } else logger.error("string_obfuscation/strings.xml not found")
68
+ } else logger.error("values.xml file couldn't be found: " + path)
69
70
71
0 commit comments