mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-13 09:25:36 +08:00
Update android part when using rnpm
Hey, So recent PR added params to be used with `rnpm` - that means we no longer generate an empty `new CodePush`, but ask user for development token instead as well. I am thinking we might either remove that comment or mention `if you are using RNPM < 1.6` What you think?
This commit is contained in:
@@ -276,7 +276,6 @@ public class MainActivity extends ReactActivity {
|
||||
// have it, you can run "code-push deployment ls <appName> -k" to retrieve your key.
|
||||
return Arrays.<ReactPackage>asList(
|
||||
new MainReactPackage(),
|
||||
// new CodePush() <-- remove this generated line if you used RNPM for plugin installation.
|
||||
new CodePush("deployment-key-here", this, BuildConfig.DEBUG)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user