持续交付与React Native

huangapple go评论56阅读模式
英文:

Continous delivery with react-native

问题

我在一家公司工作,他们使用React Native开发自己的内部Android应用程序。目前我们没有太多的设备,但在未来我们将拥有许多设备,每次我们想要在设备上更新应用程序时,都需要将设备连接到计算机并通过USB构建。

有没有一种方法可以通过在某个地方发布更新并强制所有设备自动下载新的更新来实现持续交付和部署?

我尝试过使用https://appcenter.ms/和CodePush应用程序,但需要与Play商店关联。我不想将我们的应用程序上传到Play商店,而是想使用本地服务器或类似的方式。

英文:

I am working in a company that developes its own internal android app using react native. We currently do not have too much devices but in the feature we will have many devices, and each time we want to update the app in devices, we need to connect the devices to computer and build via usb.

Is there a way to do some kind of continous delivery and deployment in all devices automatically by publishing somewhere the release and forcing all devices to download the new update?

I have tried app https://appcenter.ms/ and codepush but needs to be linked to play store. I do not want to upload our app to playstore, instead want to use a local server or something like that

答案1

得分: 0

是的。如果您不想将应用程序发布到Play商店并希望强制更新,您需要开发一个简单的API,该API将返回版本号。同时,在您的应用程序中创建一个VERSION_NUMBER。每当您更新应用程序时,都要更改API和应用程序中的版本号。在第一个屏幕上调用您的API,并检查版本号是否更改,然后将用户重定向到应用程序链接,用户可以在那里下载应用程序。

您可以将您的APK文件保存在自己的服务器上或者其他地方,以便您觉得方便的地方。

英文:

yes. if you don't want to publish the application to plays tore and want t a force update . you need to develop a simple API what well return the version number . also create a VERION_NUMBER in your APP Every time your update the application change version number in the api and in your application. and on the first screen call your API and check if the version number is change the redirect user to application link where user can download the application .

you can keep your apk in your own server or somewhere else which one is easy for you

huangapple
  • 本文由 发表于 2023年6月19日 07:46:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76502916.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定