什么是Android软件包版本和版本code和它们如何关联? [英] What is the Android Bundle Version and Version Code and how do they relate?

查看:222
本文介绍了什么是Android软件包版本和版本code和它们如何关联?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

A)是什么了Android软件包版本和版本code表示?

B)的软件包版本和版本code的区别是什么?

我)假设我有一个软件包版本 0.137 ,如何版本code涉及到这一点?可以版本code仅仅是137?

i) Suppose I have a bundle version of 0.137, how does the version code relate to this? Can the version code just be 137?

二)什么时候发行软件包版本 1.0 接下来会发生什么?可我只是调用版本code 10

ii) What happens when I release bundle version 1.0 next? Can I just call the version code 10?

C)如何?它们与?什么是正确的方式进行编号的包版本?

N.B。似乎没有要解释的差异,寻找一个来源。我一直很随意编号我捆到现在,但我想弄清楚如何做到这一点的权利。

N.B. There does not seem to be a source that explains the difference, in search. I have been very haphazardly numbering my bundles till now, but I'd like to figure out how to do this right.

这些名称似乎是具体到团结,但我不知道我的理解什么样的参数是约什从该网页...

These designations appear to be specific to Unity, but I am not sure if I understand what the parameters are about even from that page...

推荐答案

有没有捆绑版。这是在iOS / Mac的任期。内置Android应用程序被称为包。

There's no "bundle version". That's an iOS/Mac term. Built Android apps are called packages.

Android有两个地方指定版本:版本名称(安卓VERSIONNAME 在清单)和版本code(机器人:版本code )。他们没有被corellated,但在实践中,他们通常是这样。谷歌市场使用版本code(未命名),当你发布的更新,以确保您的更新后比目前公布的软件包。

Android has two places where a version is specified: version name (android:versionName in manifest) and version code (android:versionCode). They don't have to be corellated, but in practice they usually are. Google Market uses version code (not name) when you publish an update to make sure your update is later than the package currently published.

版本名称是最终用户看到。有一个关于它的格式没有任何限制;这是一个免费的文本字符串,但应用程序的绝大多数坚持1.2或1.2.3模式。

The version name is what the end users see. There's no limitation on its format; it's a free-text string, although the vast majority of apps stick to 1.2 or 1.2.3 patterns.

这就是你corellate版本的名称和版本code是由你。你可以去与串行版本codeS,也可以使用主要* 10000 +次要* 100 +打造配方 - 这就是谷歌确实与他们的应用程序,从而使诉4.10.3将有code 41003。

The way you corellate version name and version code is up to you. You can go with sequential version codes, or you can use a major*10000 + minor*100 + build formula - that's what Google does with their apps, so that v. 4.10.3 would have code 41003.

这篇关于什么是Android软件包版本和版本code和它们如何关联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆