Initial React Native App
1
| $ npx react-native init codepushdemo && cd codepushdemo
|
Install code push
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| $ npm install -g code-push-cli $ npm install -g appcenter-cli
$ code-push register
$ code-push app add codepushdemo-ios ios react-native $ code-push app add codepushdemo-android android react-native
$ yarn add appcenter appcenter-analytics appcenter-crashes --save-exact
$ cd ios && pod install && cd ..
|
1 2 3 4 5
| **Note:**
link 完之 IOS 會自動使用 Pod
所以在 local 端 Xcode 要開啟 `XXXXX.xcworkspace` 才能正常開發
|
IOS
releasing-updates
Git
code-push
官方只支援 github
bitbucket
和 microsoft devops
三種版控
這次使用 bitbucket
做 Demo
要先在 bitbucket 建立一個新的 repo
參考資料來源
Get started with ‘CodePush’ (React-Native)
IOS Setup
Android Setup