ReactNative重寫的OSChina的Git@OSC客戶端

大灰狼的小綿羊哥哥發表於2017-03-20

http://git.oschina.net/rplees/react-native-gitosc

使用ReactNative仿造的Git@OSC! (感謝 xiekw2010)

...
...
...
...

更多截圖

最近適配了Android

...
...
...
...

更多Android截圖

掃描下載Android(如下載不了可以開啟 釋出連線 下載)
Android

Getting Started

Requirements 詳細環境搭建請參考

使用ReactNative仿造的Git@OSC Android的功能

  1. 推薦/熱門/最近更新 專案瀏覽
  2. 發現 專案瀏覽.
  3. 使用者頁面(動態/專案/Star/Watch).
  4. 我的資料/設定/搖一搖/留言/分享.
  5. 專案的詳情/Star/Watch/ 程式碼/README/issues及提交issue

How to build this

Install JS env

npm install

if error about 'EACCS' try

sudo chown -R $(whoami) "$HOME/.npm"

iOS

open the project in ios dir cd ios

pod install

Release mode

  1. edit xcode project OSCGit's scheme to release mode

  2. bundle the JS resources, in project root dir (如果第一次執行沒生存index.ios.jsbundle,再執行一次)

 react-native bundle --entry-file index.ios.js --bundle-output ./ios/bundle/index.ios.jsbundle --platform ios --assets-dest ./ios/bundle --dev false --sourcemap-output ./ios/bundle/source.map --verbose
  1. xcode run!

Debug mode

Edit xcode project OSCGit edit scheme to debug mode

Xcode run!

Android

Device

- sh ./build_android.sh

Emulator

- Just run the project

Debug mode

- react-native run-android

code-push熱更新(可選)

安裝

```bash
cnpm install -g code-push-cli --verbose
code-push register (會彈出網頁,按照步驟安裝)
code-push access-key ls

code-push app add RN_OSCGit
code-push deployment ls RN_OSCGit
code-push release-react RN_OSCGit ios --entryFile ./ios/bundle/index.ios.jsbundle

#android 
code-push app add RN_OSCGit_android
code-push deployment ls RN_OSCGit_android
code-push release-react RN_OSCGit_android android
```

Check app status

code-push deployment ls RN_OSCGit

code-push deployment ls RN_OSCGit_android

Publish update

code-push release-react RN_OSCGit ios --entryFile ./ios/bundle/index.ios.jsbundle
code-push release-react RN_OSCGit_android android

Let's talk about it(So far only Chinese supported)

一次RN跨平臺開發之旅

License

GPL. Copyright (c) rplees.


相關文章