note about casting configs in gradle

fix #112
This commit is contained in:
Pedro Belo 2017-12-04 15:27:06 -08:00
parent 5a3f72ae1c
commit eb15b7ca71
1 changed files with 6 additions and 1 deletions

View File

@ -53,8 +53,13 @@ And use them to configure libraries in `AndroidManifest.xml` and others:
android:value="@string/GOOGLE_MAPS_API_KEY" />
```
**Variables stored in `.env` are published with your code, so DO NOT put anything sensitive there like your app `signingConfigs`.**
All variables are strings, so you may need to cast them. For instance, in Gradle:
```
versionCode project.env.get("VERSION_CODE").toInteger()
```
Once again, remember variables stored in `.env` are published with your code, so **DO NOT put anything sensitive there like your app `signingConfigs`.**
### iOS