简体   繁体   English

如何管理 react-native codepush 版本?

[英]How to manage react-native codepush versions?

I'm going to apply codepush to react-native.我要对 react-native 应用 codepush。

The app is currently distributed to the store.该应用程序目前已分发到商店。 I haven't applied codepush yet.我还没有申请codepush。

But I have a question.但我有一个问题。

For example, suppose the version of the app deployed in the store is v1.0.0.例如,假设商店中部署的应用版本为 v1.0.0。 And we applied codepush (staging, production) to distribute version v1.0.1 to the store.我们应用 codepush (staging, production) 将 v1.0.1 版本分发到商店。

Also, we needed a simple code modification, not a native code, so we distributed it to the codepush production environment instead of the store.另外,我们需要一个简单的代码修改,而不是原生代码,所以我们将它分发到 codepush 生产环境而不是商店。

  1. In this case, how should I manage the version?在这种情况下,我应该如何管理版本? Do I change it to v1.0.2?我是否将其更改为 v1.0.2?

  2. In the above case, the problem is that the store version is v1.0.1 and the codepush version is v1.0.2.上述情况,问题在于store版本是v1.0.1,codepush版本是v1.0.2。 Users with codepush will receive a bundler update that corresponds to v1.0.2, but users with versions earlier than v1.0.1 will not be able to receive the update.使用 codepush 的用户将收到对应于 v1.0.2 的捆绑程序更新,但版本低于 v1.0.1 的用户将无法收到更新。

  3. Then, is it good to distribute codepush and distribute it to the store as well?那么,分发codepush并分发到store好不好呢?

I didn't have this concern when I used codepush for internal testing, but I'm trying to apply it to the app distributed in the store, so I don't know what to do about version control.我在使用codepush进行内部测试时没有这个顾虑,但是我正在尝试将它应用到商店中分发的应用程序中,所以我不知道如何进行版本控制。

Is there anyone who can help me?有谁能帮助我吗?

I know this question is over a year old but I came across it and can share what we do at my company in case anyone else is wondering.我知道这个问题已经有一年多了,但我遇到了它,可以分享我们在我公司所做的事情,以防其他人想知道。 We only increase the version if we are submitting a new binary to the App Store.如果我们向 App Store 提交新的二进制文件,我们只会增加版本。 Usually that will mean there are native changes involved.通常这意味着涉及到本机更改。 If we are just pushing javascript changes (for a quick bug fix for example), we use CodePush and we don't increase the version.如果我们只是推送 javascript 更改(例如,为了快速修复错误),我们使用 CodePush 并且我们不增加版本。 Hope that provides some guidance!希望能提供一些指导!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM