This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ + (void)initialize
13
13
NSString *deploymentKey = [infoDictionary objectForKey: @" CodePushDeploymentKey" ];
14
14
NSString *serverUrl = [infoDictionary objectForKey: @" CodePushServerUrl" ];
15
15
if (!serverUrl) {
16
- serverUrl = @" http ://localhost:3000 /" ;
16
+ serverUrl = @" https ://codepush.azurewebsites.net /" ;
17
17
}
18
18
NSString *rootComponent = [infoDictionary objectForKey: @" CFBundleName" ];
19
19
@@ -82,4 +82,4 @@ + (NSDictionary *) getConfiguration
82
82
return configuration;
83
83
}
84
84
85
- @end
85
+ @end
Original file line number Diff line number Diff line change 22
22
<string >1 </string >
23
23
<key >LSRequiresIPhoneOS </key >
24
24
<true />
25
+ <key >NSAppTransportSecurity </key >
26
+ <dict >
27
+ <key >NSAllowsArbitraryLoads </key >
28
+ <true />
29
+ </dict >
25
30
<key >UILaunchStoryboardName </key >
26
31
<string >LaunchScreen </string >
27
32
<key >UIRequiredDeviceCapabilities </key >
40
45
<string ></string >
41
46
<key >CodePushDeploymentKey </key >
42
47
<string >deployment-key-here </string >
43
- <key >CodePushServerUrl </key >
44
- <string >server-url-here </string >
45
48
</dict >
46
49
</plist >
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ var Button = require("react-native-button");
18
18
var CodePush = require ( 'react-native-code-push' ) ;
19
19
20
20
var CodePushDemoApp = React . createClass ( {
21
+
22
+ getInitialState : function ( ) {
23
+ return { } ;
24
+ } ,
21
25
componentDidMount : function ( ) {
22
26
this . checkUpdate ( ) ;
23
27
} ,
@@ -32,9 +36,10 @@ var CodePushDemoApp = React.createClass({
32
36
} ,
33
37
handlePress : function ( ) {
34
38
this . state . update . download ( ) . done ( ( localPackage ) => {
35
- localPackage . apply ( 1000 ) . done ( ) ;
39
+ localPackage . apply ( ) . done ( ) ;
36
40
} ) ;
37
41
} ,
42
+
38
43
render : function ( ) {
39
44
var updateView ;
40
45
if ( this . state . update ) {
@@ -50,14 +55,7 @@ var CodePushDemoApp = React.createClass({
50
55
return (
51
56
< View style = { styles . container } >
52
57
< Text style = { styles . welcome } >
53
- Welcome to React Native!
54
- </ Text >
55
- < Text style = { styles . instructions } >
56
- To get started, edit index.ios.js
57
- </ Text >
58
- < Text style = { styles . instructions } >
59
- Press Cmd+R to reload,{ '\n' }
60
- Cmd+D or shake for dev menu
58
+ Welcome to Code Push!
61
59
</ Text >
62
60
{ updateView }
63
61
</ View >
You can’t perform that action at this time.
0 commit comments