Yet another Github client written with react-native.
JavaScript
1,702
8 commits
updated Apr 13, 2017
Yet another Github client written in react-native.
rm -rf node_modules
npm install
if error about 'EACCS' try
sudo chown -R $(whoami) "$HOME/.npm"
run the project in ios dir
(注意 如果要contribute cocoapods 建议使用0.35.0版本!)
in iOS dir
pod install
###接入流程
const codePush = require('react-native-code-push');
codePush.sync({
updateDialog: true,
installMode: codePush.InstallMode.IMMEDIATE,
deploymentKey: dpkey,
});
NSURL *jsCodeLocation;
#ifdef DEBUG
jsCodeLocation = [NSURL URLWithString:@"http://30.10.111.158:8081/index.ios.bundle?platform=ios&dev=true"];
jsCodeLocation = [NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]];
#else
jsCodeLocation = [CodePush bundleURL];
#endif
打包需要更新的资源注意在打包的目标地址先建立对应的目录比如这里的~/Desktop/release,要现在Desktop建立好。
打包到桌面本地资源(包括图片): react-native bundle --platform ios --entry-file index.ios.js --bundle-output ./ios/main.jsbundle --dev false
查看更新状态: code-push deployment ls GitFeed-iOS
发布更新: code-push release GitFeed-iOS ~/Desktop/release 1.0.0 -d Production
Yet another Github client written with react-native.
JavaScript
1,702
8 commits
updated Apr 13, 2017
Yet another Github client written in react-native.
rm -rf node_modules
npm install
if error about 'EACCS' try
sudo chown -R $(whoami) "$HOME/.npm"
run the project in ios dir
(注意 如果要contribute cocoapods 建议使用0.35.0版本!)
in iOS dir
pod install
###接入流程
const codePush = require('react-native-code-push');
codePush.sync({
updateDialog: true,
installMode: codePush.InstallMode.IMMEDIATE,
deploymentKey: dpkey,
});
NSURL *jsCodeLocation;
#ifdef DEBUG
jsCodeLocation = [NSURL URLWithString:@"http://30.10.111.158:8081/index.ios.bundle?platform=ios&dev=true"];
jsCodeLocation = [NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]];
#else
jsCodeLocation = [CodePush bundleURL];
#endif
打包需要更新的资源注意在打包的目标地址先建立对应的目录比如这里的~/Desktop/release,要现在Desktop建立好。
打包到桌面本地资源(包括图片): react-native bundle --platform ios --entry-file index.ios.js --bundle-output ./ios/main.jsbundle --dev false
查看更新状态: code-push deployment ls GitFeed-iOS
发布更新: code-push release GitFeed-iOS ~/Desktop/release 1.0.0 -d Production