mirror of
https://github.com/status-im/react-native-config.git
synced 2025-02-23 20:38:10 +00:00
Merge pull request #27 from jgkim/percent
Replace `%` with a double-escaped unicode value
This commit is contained in:
commit
47afdaafad
@ -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\""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user