This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| project.ext.envConfigFiles = [ | |
| dev: ".env.development", | |
| stag: ".env.staging", | |
| prod: ".env.production" | |
| ] | |
| apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ENV=development | |
| BASE_URL=https://dev.yourcool.app/api/v1 | |
| APP_DISPLAY_NAME = "Yourcool App Dev" | |
| API_KEY=som3r4ndomK3y | |
| SOME_3RDPARTY_API_KEY=s0m3r4nd0mK3y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android { | |
| // other snippet | |
| flavorDimensions "default" | |
| productFlavors { | |
| prod { | |
| resValue "string", "build_config_package", "com.your.coolapp" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| <string name="app_name">@string/APP_DISPLAY_NAME</string> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts" : { | |
| "android-prod": "react-native run-android --variant=prodDebug --appId=com.your.coolapp", | |
| "android-stag": "react-native run-android --variant=stagDebug --appId=com.your.coolapp.stag", | |
| "android-dev": "react-native run-android --variant=devDebug --appId=com.your.coolapp.dev", | |
| } |
OlderNewer