Skip to content

CodePush service is hot update services which adapter react-native-code-push and cordova-plugin-code-push -Hot update

License

jakkireddy/code-push-server

 
 

Repository files navigation

CodePush Server source

NPM

NPM Version Node.js Version Linux Status Windows Status Coverage Status Dependency Status Known Vulnerabilities Licenses

CodePush Server is a CodePush progam server! microsoft CodePush cloud is slow in China, we can use this to build our's. I use qiniu to store the files, because it's simple and quick! Or you can use [local/s3/oss/tencentcloud] storage, just modify config.js file, it's simple configure.

Support Storage mode

  • local storage bundle file in local machine
  • qiniu storage bundle file in qiniu
  • s3 storage bundle file in aws
  • oss storage bundle file in aliyun
  • tencentcloud storage bundle file in tencentcloud

qq Exchange Group

-QQ Group: 628921445 -QQ Group: 535491067

Correctly use code-push hot update

-Apple App allows hot updates [Apple's developer agreement] (https://developer.apple.com/programs/ios/information/iOS_Program_Information_4_3_15.pdf), in order to not affect the user experience, it is required to use silent updates. Google Play cannot use silent updates. You must pop the box to inform users that the App has an update. The android market in China must adopt a silent update (if the pop-up box prompts, the app will be rejected by "Please upload the latest version of the binary application package"). -react-native Bundle packages are different for different platforms. When using code-push-server, different applications must be created to distinguish them (eg. CodePushDemo-ios and CodePushDemo-android) -react-native-code-push only updates the resource files, not java and Objective C, so when npm upgrades the dependent package version, if the localized implementation used by the dependent package, you must change the application version number (ios modify Info CFBundleShortVersionString in .plist, android modify the versionName in build.gradle), and then recompile the app and publish it to the app store. -It is recommended to use the code-push release-react command to release the application, which combines the package and release commands (eg. Code-push release-react CodePushDemo-ios ios -d Production) -Every time you submit a new version to the App Store, you should also release an initial version to code-push-server based on the submitted version. (Because every time a version is released to code-push-server later, code-puse-server will be compared with the initial version to generate a patch version)

shell login

$ code-push login http://api.code-push.com #登录

访问:http://www.code-push.com

client eg.

ReactNative CodePushDemo

Cordova CodePushDemo

HOW TO INSTALL code-push-server

DEFAULT ACCOUNT AND PASSWORD

  • account: admin
  • password: 123456

HOW TO USE

ISSUES

code-push-server normal solution

An unknown error occurred

modify password

UPDATE TIME LINE

  • targetBinaryVersion support
    • *
    • 1.2.3
    • 1.2/1.2.*
    • 1.2.3 - 1.2.7
    • >=1.2.3 <1.2.7
    • ~1.2.3
    • ^1.2.3

Advance Feature

use google diff-match-patch calculate text file diff patch

  • support iOS and Android
  • use "react-native-code-push": "git+https://[email protected]/lisong/react-native-code-push.git" instead "react-native-code-push": "x.x.x" in package.json
  • change apps.is_use_diff_text to 1 in mysql codepush database

License

MIT License read

About

CodePush service is hot update services which adapter react-native-code-push and cordova-plugin-code-push -Hot update

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.5%
  • TSQL 4.6%
  • HTML 3.7%
  • Other 1.2%