本文主要是介绍ReactNative重写的OSChina的Git@OSC客户端,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
http://git.oschina.net/rplees/react-native-gitosc
使用ReactNative仿造的Git@OSC! (感谢 xiekw2010)
更多截图
最近适配了Android
更多Android截图
扫描下载Android(如下载不了可以打开 发布连接 下载)
Getting Started
Requirements 详细环境搭建请参考
使用ReactNative仿造的Git@OSC Android的功能
- 推荐/热门/最近更新 项目浏览
- 发现 项目浏览.
- 用户页面(动态/项目/Star/Watch).
- 我的资料/设置/摇一摇/留言/分享.
- 项目的详情/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
-
edit xcode project
OSCGit
's scheme torelease
mode -
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
- 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 lscode-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_OSCGitcode-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.
这篇关于ReactNative重写的OSChina的Git@OSC客户端的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!