Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lisong/code-push-demo-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.59.5
Choose a base ref
...
head repository: lisong/code-push-demo-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 4, 2019

  1. add readme

    lisong committed May 4, 2019
    Copy the full SHA
    028e6d2 View commit details
Showing with 35 additions and 0 deletions.
  1. +35 −0 README.md
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# base on

fork from https://github.com/Microsoft/react-native-code-push examples

# iOS eg.

```shell
$ git clone git@github.com:lisong/code-push-demo-app.git
$ cd code-push-demo-app
$ npm install
$ open ios/CodePushDemoApp.xcodeproj
```

# android eg.

```shell
$ git clone git@github.com:lisong/code-push-demo-app.git
$ cd code-push-demo-app
$ npm install
$ cd android
$ ./gradlew assembleRelease
$ cd app/build/outputs/apk #install app-release.apk into your phone
```

# codepush 热更新

```shell
$ code-push login http://api.code-push.com #登录code-push-server
$ code-push app add CodePushReactNativeDemo-ios ios react-native #iOS版
$ code-push app add CodePushReactNativeDemo-android android react-native #android版
$ cd code-push-demo-app
$ npm install
$ code-push release-react CodePushReactNativeDemo-ios ios -d Production #发布到code-push-server ios
$ code-push release-react CodePushReactNativeDemo-android android -d Production #发布code-push-server android
```