Merge pull request #27 from jgkim/percent

Replace `%` with a double-escaped unicode value
This commit is contained in:
Pedro Belo 2016-09-13 18:13:29 -07:00 committed by GitHub
commit 47afdaafad

View File

@ -16,8 +16,9 @@ readDotEnv()
android {
defaultConfig {
project.env.each { k, v ->
def escaped = v.replaceAll("%","\\\\u0025")
buildConfigField "String", k, "\"$v\""
resValue "string", k, "\"$v\""
resValue "string", k, "\"$escaped\""
}
}
}