You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
React Native module for deploying script updates using the Code Push service.
5
+
6
+
Installation
7
+
---
8
+
9
+
```
10
+
npm install --save react-native-code-push
11
+
```
12
+
13
+
After installing the React Native Code Push plugin, open your project in Xcode. Open `node_modules/react-native-code-push` in Finder, and drag the `CodePush.xcodeproj` into the Libraries folder of Xcode.
14
+
15
+
In Xcode, click on your project, and select the "Build Phases" tab of your project configuration. Drag libCodePush.a from `Libraries/CodePush.xcodeproj/Products` into the "Link Binary With Libraries" secton of your project's "Build Phases" configuration.
16
+
17
+
Finally, edit your project's `AppDelegate.m`. Find the following code:
This change allows Code Push to load the updated app location after an update has been applied.
5
30
6
31
Running the Example
7
32
---
8
33
9
-
* Make sure you have https://github.com/Microsoft/hybrid-mobile-deploy cloned beside the react-native project in a folder called `website`. This is hacky, and will be cleaned up as soon as React Native's packager supports symlinks.
10
-
* Start the CodePush server with `gulp serve`, after installing the prerequisites described in the [project readme](https://github.com/Microsoft/hybrid-mobile-deploy/blob/master/README.md)
34
+
* Clone this repository
11
35
* From the root of this project, run `npm install`
12
36
*`cd` into `Examples/CodePushDemoApp`
13
37
* From this demo app folder, run `npm install`
14
-
* Open `Info.plist` and fill in the values for CodePushDeploymentKey and CodePushServerUrl
38
+
* Open `Info.plist` and fill in the value for CodePushDeploymentKey
15
39
* Run `npm start` to launch the packager
16
40
* Open `CodePushDemoApp.xcodeproj` in Xcode
17
41
* Launch the project
@@ -22,4 +46,4 @@ Running Tests
22
46
* Open `CodePushDemoApp.xcodeproj` in Xcode
23
47
* Navigate to the test explorer (small grey diamond near top left)
24
48
* Click on the 'play' button next to CodePushDemoAppTests
25
-
* After the tests are completed, green ticks should appear next to the test cases to indicate success
49
+
* After the tests are completed, green ticks should appear next to the test cases to indicate success
0 commit comments