mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
Automate test (#704)
* test automation * accept PR comments and update the script. * upgrade the auto script * update the script comment. * tackle all comments.
This commit is contained in:
@@ -11,12 +11,6 @@ import {
|
||||
|
||||
import CodePush from "react-native-code-push";
|
||||
|
||||
/**
|
||||
* Configured with a MANUAL check frequency for easy testing. For production apps, it is recommended to configure a
|
||||
* different check frequency, such as ON_APP_START, for a 'hands-off' approach where CodePush.sync() does not
|
||||
* need to be explicitly called. All options of CodePush.sync() are also available in this decorator.
|
||||
*/
|
||||
@CodePush({ checkFrequency: CodePush.CheckFrequency.MANUAL })
|
||||
class CodePushDemoApp extends Component {
|
||||
constructor() {
|
||||
super();
|
||||
@@ -156,4 +150,13 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
AppRegistry.registerComponent("CodePushDemoApp", () => CodePushDemoApp);
|
||||
/**
|
||||
* Configured with a MANUAL check frequency for easy testing. For production apps, it is recommended to configure a
|
||||
* different check frequency, such as ON_APP_START, for a 'hands-off' approach where CodePush.sync() does not
|
||||
* need to be explicitly called. All options of CodePush.sync() are also available in this decorator.
|
||||
*/
|
||||
let codePushOptions = { checkFrequency: CodePush.CheckFrequency.MANUAL };
|
||||
|
||||
CodePushDemoApp = CodePush(codePushOptions)(CodePushDemoApp);
|
||||
|
||||
AppRegistry.registerComponent("CodePushDemoApp", () => CodePushDemoApp);
|
||||
Reference in New Issue
Block a user