Update README.md (#751)

* Update README.md

When I fail to supply a CODEPUSH_KEY variable for debug, the build fails. This pull fixes the example code. I also added a comment letting developers know to expect errors from CodePush in debug mode. (This behavior is surprising, but I believe is by design.)

* Tweak comment
This commit is contained in:
Tim Scott
2017-03-10 20:32:09 -06:00
committed by Richard Hua
parent 124d05721a
commit 4aee947294

View File

@@ -256,7 +256,8 @@ To set this up, perform the following steps:
buildTypes {
debug {
...
// CodePush updates should not be tested in Debug mode
// Note: CodePush updates should not be tested in Debug mode as they are overriden by the RN packager. However, because CodePush checks for updates in all modes, we must supply a key.
buildConfigField "String", "CODEPUSH_KEY", '""'
...
}