[Error] Update check must include a binary version that conforms to the semver standard
Seems codepush ignore semver with suffix like 1.0.0-alpha.1, 1.0.0-beta.1, 1.0.0-pre-release.1
See:
- https://semver.org/spec/v2.0.0.html#spec-item-9
- https://semver.org/spec/v2.0.0.html#spec-item-10
Steps to Reproduce
- Open
android/app/build.gradle - Set
versionName "1.0.0-beta.1" - Build an app
- Try to sync codepush deployment
- ERROR:
CodePushHttpError: 400: An update check must include a binary version that conforms to the semver standard (e.g.1.0.0). The binary version is normally inferred from the App Store/Play Store version configured with your app.
Expected Behavior
Sync should finished without an error
Actual Behavior
Promise resolve with error:
CodePushHttpError: 400: An update check must include a binary version that conforms to the semver standard (e.g. `1.0.0`). The binary version is normally inferred from the App Store/Play Store version configured with your app.
Reproducible Demo
-
Environment
- react-native-code-push version: 7.0.1
- react-native version: 0.63.4
- iOS/Android/Windows version: latest
- Does this reproduce on a debug build or release build? yes, build & release
- Does this reproduce on a simulator, or only on a physical device? yes
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
what's new?
Hi @retyui!
I've tried to reproduce this issue with react-native-code-push version: 7.0.1 and react-native version: 0.63.4. The versionName I used was "2.0.0-beta.2" and couldn't get the error that you have. I've also checked the version validation in our service and found no issues there.
If you can prepare a demo app with this issue, I would investigate this further.
@doomkit no problem, I will create a demo for you!
I also tested, issue not reproduce anymore!