maskarade / gradle-android-ribbonizer-plugin

Modifies launcher icons on debug build
https://bintray.com/gfx/maven/ribbonizer-plugin
MIT License
355 stars 38 forks source link

Initial Release #1

Closed gfx closed 9 years ago

gfx commented 10 years ago

This is a plugin version of https://github.com/gfx/gradle-android-utils

def stringLiteral(String s) {
    if (s == null) {
        return "null"
    } else {
        def encoded = Base64.encodeBase64(s.getBytes())
        return "new String(android.util.Base64.decode(new byte[]{${encoded.toList().join(",")}}, android.util.Base64.DEFAULT)) /* ${s} */"
    }
}