Unity 3D:什么是Android Bundle版本和版本代码,它们之间有何关系? [英] Unity 3D: What is the Android Bundle Version and Version Code and how do they relate?

查看:155
本文介绍了Unity 3D:什么是Android Bundle版本和版本代码,它们之间有何关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

a)Android捆绑软件版本和版本代码表示什么?

b)捆绑软件版本和版本代码有什么区别?

i)假设我有一个捆绑版本的 0.137 ,该版本代码与之有何关系?版本代码可以是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?

ii)当我接下来发布捆绑版本 1.0 时会发生什么?我可以仅将版本代码称为 10 吗?

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

c)它们如何关联?编号捆绑版本的正确方法是什么?

似乎没有资料可以解释搜索的不同之处.到目前为止,我一直很随意地为捆绑软件编号,但是我想弄清楚如何正确执行此操作.

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.

这些名称似乎特定于 Unity ,但我不确定我是否理解甚至从该页面开始,参数是什么...

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在两个指定版本的地方:版本名称(清单中的 android:versionName )和版本代码( android:versionCode ).它们不必进行重复处理,但实际上通常是这样.在您发布更新时,Google Market使用版本代码(而非名称)来确保更新晚于当前发布的软件包.

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.

取决于版本名称和版本代码的方式由您决定.您可以使用顺序版本代码,也可以使用 major * 10000 + minor * 100 + build 公式-这就是Google对他们的应用的处理方式,因此4.10.3版的代码应为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.

这篇关于Unity 3D:什么是Android Bundle版本和版本代码,它们之间有何关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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