electrode-io / electrode-ota-server

Electrode Over The Air Server for hot deployment of React Native and Cordova mobile apps
Other
204 stars 40 forks source link

targetBinaryVersion supports semver #139

Closed scrajesh closed 4 years ago

scrajesh commented 4 years ago
  1. Semver support for --targetBinaryVersion option while code-push release Ref: target-binary-version parameter
  2. /updateCheck will check the incoming appVersion with the above target-version
  3. this check reflects the value of the prop isAvailable
scrajesh commented 4 years ago

please add this test scenario upload pkg = ^1.0.0 upload pkg = ^2.0.0 updateCheck pkg 1.0.2

also, please check with mariadb

Added the above test scenario.

Verified with MariaDB to comply the same. i.e. as per above scenario the package with target ^1.0.0 should be returned.

scrajesh commented 4 years ago

please add this test scenario upload pkg = ^1.0.0 upload pkg = ^2.0.0 updateCheck pkg 1.0.2 also, please check with mariadb

Added the above test scenario.

Verified with MariaDB to comply the same. i.e. as per above scenario the package with target ^1.0.0 should be returned.

More MariaDB unit tests are added to test all possible semver ranges. https://github.com/electrode-io/electrode-ota-server/pull/139/files#diff-793371ab800a9844ce9e83a3c592f284