ctlabvn / codepush-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS eg.

$ cd CodePushDemoApp
$ yarn
$ open ios/CodePushDemoApp.xcodeproj

android eg.

$ cd CodePushDemoApp
$ yarn
$ cd android
$ ./gradlew assembleRelease
$ cd app/build/outputs/apk #install app-release.apk into your phone

bundling

$ react-native bundle --platform ios --entry-file index.js --bundle-output ./dist/main.jsbundle --dev false
# bundle with split modules
$ yarn bundle # bundle core system
$ yarn bundle -m ModuleA # bundle ModuleA
$ yarn bundle -m Module --output dist/main.jsbundle # combine core system and module ModuleA into dist/main.jsbundle

codepush-cli

$ code-push login http://notebook.agiletech.vn #code-push-server
$ code-push app add SuperApp ios react-native  #iOS
$ code-push release SuperApp ./dist 1.0.0 -d Staging

About


Languages

Language:JavaScript 58.2%Language:HTML 38.8%Language:Objective-C 1.3%Language:Java 0.8%Language:Python 0.5%Language:Kotlin 0.2%Language:Shell 0.1%Language:Batchfile 0.1%