How to Update a flutter app on already published native android using java app in play console

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

How to Update a flutter app on already published native android using java app in play console

问题

我在Google Play商店发布了一个原生应用,包名为例如(com.hamzamuazzam.foo),我想要更新我的应用,现在它是用Flutter制作的,并且我已经在代码中进行了所有必要的更改。

新的Flutter应用使用与之前相同的包名(com.hamzamuazzam.foo),而该包名是已经在Google Play商店中发布的旧原生应用的包名。

现在,我主要的问题是,我是否可以在不更改Google Play商店中的包名的情况下,更新我的新Flutter应用,而这个包名与之前的原生应用相同,

Google Play控制台是否允许我将新的Flutter应用以相同的包名更新到已有的原生应用上?

英文:

I have published a native app with package name e.g (com.hamzamuazzam.foo) in Google Playstore and I want to update my app that is now made in flutter , also have made all the necessary changes in my code.

new flutter app made with same package name (com.hamzamuazzam.foo) as old native app that is already published in google playstore.

Now, my main question is that can I update my new flutter App with Native app without changing the Package name in google play store ,

will Google play console allow me to update flutter app with same package name over the same native app?

答案1

得分: 15

可以,您可以更新您的应用程序。一般来说,更新只需要遵循三条规则:

  1. 包名称必须完全相同。
  2. versionCode 必须大于先前发布的应用程序的 versionCode
  3. 应用程序必须使用与之前相同的签名密钥进行签名。

除此之外,无论您是使用 Kotlin/Java、Flutter、Xamarin、React Native、Cordova 还是任何其他技术来创建您的 APK 或 Android 应用捆绑包,都没有关系。

英文:

Yes, you can update your app. Generally speaking, only three rules apply for updates:

  1. The package name must be identical.
  2. The versionCode must be greater than the versionCode of the previously released app.
  3. The app must be signed with the same signing key as before.

Besides that, it doesn't matter if you create your APK or Android App Bundle with Kotlin/Java, Flutter, Xamarin, React Native, Cordova or any other technology.

答案2

得分: 3

@Alex的回答很完美,但我想用以下内容详细说明一下(针对Flutter场景):

  1. 是的,包名必须相同,这可以在Android(Flutter版本)的AndroidManifest.xml文件中进行验证。

  2. 当我们谈论versionCodeversionName时,这些信息是从Flutter的pubspec.yaml文件中获取的,其中包含version属性。这个属性的形式为0.3.2+3,其中0.3.2对应于versionName,而3(加号后面的数字)对应于versionCode。是的,versionCode必须大于先前发布的应用的versionCode

最后,用于签署Flutter版本的keystore-password-alias必须与用于签署Android原生版本的相同。

考虑到所有这些,您将能够顺利进行更新。

英文:

@Alex's answer is perfect, but I'd like to detail the info with the following (for Flutter scenario):

  1. Yes, the package name must be identical, and this can be verified within Android's (Flutter version) AndroidManifest.xml file.

  2. When we're talking about the versionCode and versionName, this info is obtained from Flutter's pubspec.yaml file with version attribute. This attribute has the form of 0.3.2+3 where 0.3.2 corresponds to versionName and 3 (the number after + sign) to versionCode. And yes, the versionCode must be greater than the versionCode of the previously released app

And finally, the keystore-password-alias used to sign Android Flutter's version must be the same used to sign the Android's native release.

Taking all of this into consideration will allow you to do the update smoothly.

huangapple
  • 本文由 发表于 2020年9月22日 16:13:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/64005603.html
匿名

发表评论

匿名网友

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

确定