react-native/local-cli/templates/HelloWorld/android/app
Vojtech Novak cd4545f812 configurable devEnabled in React.gradle
Summary:
This PR adds support for configurable devEnabled option when building an android app. This is currently hardcoded.

The reason for making this configurable is this: I have an app that uses code-push and 3 buildConfigs. I want to have a debugging version which has `devEnabled = true`, then a staging version which has `devEnabled = false` (this version of the app is used internally for testing and should behave just like a release version of the app, and when the tests succeed the changes are promoted into the release version to the users out there, using code-push). The last version is a standard release version with `devEnabled = false`.

Currently, `devEnabled` is hardwired like this: `!targetName.toLowerCase().contains("release")` so by default my `staging` buildConfig will have `devEnabled = true` but I'd like it to be false.

With this PR it'd be possible to configure this as follows, while not breaking the current behavior.
`'devDisabledIn${productFlavor}${buildType}'`
`'devDisabledIn${buildType
Closes https://github.com/facebook/react-native/pull/11438

Differential Revision: D4630513

Pulled By: hramos

fbshipit-source-id: b6817cf4c144fc948f76785e9cb5f93a13a6a6a2
2017-04-05 12:50:31 -07:00
..
src/main @allow-large-files [i18n] remove unused generated strings.xml files on master 2017-03-29 21:02:38 -07:00
BUCK Apply auto-formatter for BUCK files in fbandroid. 2017-02-27 14:04:56 -08:00
build.gradle configurable devEnabled in React.gradle 2017-04-05 12:50:31 -07:00
proguard-rules.pro Add TextLayoutBuilder proguard rule 2017-03-15 17:46:15 -07:00