Skip to content

Commit fd81f47

Browse files
committed
...
1 parent 9311964 commit fd81f47

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

sample/AndroidStringObfuscator.jar

-90 Bytes
Binary file not shown.

sample/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ android.applicationVariants.all{ variant ->
6161
]
6262
}
6363
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)
64+
if (stringsFileObfus.isFile()) {
65+
stringsFile.write(stringsFileObfus.getText('UTF-8'))
66+
stringsFileObfus.delete()
67+
} else logger.error("string_obfuscation/strings.xml not found")
68+
} else logger.error("values.xml file couldn't be found: " + path)
6769
}
6870
}
6971

0 commit comments

Comments
 (0)