Skip to content

Instantly share code, notes, and snippets.

@FarazPatankar
Created April 30, 2020 00:55
Show Gist options
  • Save FarazPatankar/ccddd23bc553db426c6c21d9caff2616 to your computer and use it in GitHub Desktop.
Save FarazPatankar/ccddd23bc553db426c6c21d9caff2616 to your computer and use it in GitHub Desktop.
Gradle config for React Native
...
android {
...
defaultConfig { ... }
signingConfigs {
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}
buildTypes {
release {
...
signingConfig signingConfigs.release
}
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment