如何正确版本(ise / ize)Android应用程序? [英] How to version(ise/ize) Android app properly?

查看:135
本文介绍了如何正确版本(ise / ize)Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款Android应用程序,并且已将其放在Playstore上进行beta测试。所以我可以在不同的国家正式测试我的应用程序,因为我有海外的朋友。所以我的问题是,因为我的应用程序正在进行beta测试,所以我在我的应用程序中发现了一些错误,我正在逐个修复它们并上传应用程序以进行更多测试。这是我的首款官方Android应用程序,几天前我刚刚打开了我的android应用程序开发人员帐户。所以我不太了解Android的应用程序版本控制。



我知道..版本格式。所以现在,我的应用程序的主版本版本是 1 。我已经修补了2个bug并发布在Playstore上,所以我的朋友可以测试它并发送给我反馈。为此,我必须在gradle文件中将 versionCode 1 更改为 2 。因为playstore不让我上传补丁apk。现在我已经在我的应用中修补了更多的错误,如果我去上传到playstore,我需要在我的gradle文件中从 2更改 versionCode 3 。我知道playstore会在描述中显示 versionName ,但我不知道自己是否做得对。



让我的应用程序当前的 versionName 1.0.2 ,因为我已经修补了几个bug。但是我的 versionCode 3 。所以在将来我会得到10个以上的错误,在修复每个错误之后,我的 versionCode 将会是 13 versionName 将会是 1.0.10 。之后,如果我发布次要版本,它将 1.1.0 versionCode = 14

之后,我修复了一些bug并发布了主要版本,所以我的应用程序的 versionName 将会像 2.0.0 with versionCode = 25



所以我是否正确或者我需要改变/学习一些东西?我已经搜索了版本控制,并找到了一些关于创建version.properties和all的很棒的教程。但是当我将它上传到playstore时,它一直说我将 versionCode 1 2 改为别的。另外,我的意思是增加。



任何人都可以告诉我该怎么办?我做对还是错?

解决方案

在版本控制过程中可以看到两件事情:


  1. 版本号

  2. 版本名称

现在您可以考虑版本代码作为你的年龄,当你庆祝你的生日时,这个代码就会增加,也就是说,当你为Play商店做一个新的构建或者你通过邮件或驱动器发送应用程序时,版本代码将被增加。其中一个原因是,在Play商店中,它有助于Google服务器区分旧版本和当前版本,并且在测试中您可以基于此版本代码在crashlytics中过滤崩溃。



但是当我们谈论版本名称时,它就像你的名字,人们可能会称你为chhotu,chintu等,当你年轻时,他们称你为病毒,当你十几岁时,他们称你为先生。 Joshi在你工作的时候,但它并没有像你的年龄那样有所作为。

简而言之,版本代码在每次构建后都会更改进行测试,但版本名称是您的选择。通常,当您进行重大错误修复或UI更改时,版本名称会发生​​更改。对于小修补程序,您不会在测试版中更改版本名称。但是当它完全释放时,您可以在每次发布后更改版本名称的最后一位数字。


I am working on an Android app and I have put it on playstore for beta testing. So I can officially test my app in different countries as I have friends overseas. So my question is that as My app is in beta testing, I have discovered some bugs in my app and I am fixing them one by one and uploading app for more tests. This is my firs official Android app and I have just opened my android app developer account couple days ago. So I am not so familiar with how android's app versioning works.

I know about .. version format. So right now, my app's major Version release is 1. I have patched 2 bugs in it and posted on playstore so my friends can test it and send me feedback. To de this, I had to change versionCode in gradle file from 1 to 2. Because playstore was not letting me upload patched apk. Now I have patched few more bugs in my app and if I go and upload to playstore, I will need to change versionCode in my gradle file from 2 to 3. I know that playstore will display versionName in description but I don't know if I am doing right or not.

Lets say my app's current versionName is 1.0.2 as I have patched couple bugs in it. But my versionCode is 3. So in future I get 10 more bugs, one after fixing each than my versionCode will be 13 and versionName will be 1.0.10. And after that if I release minor version it will be 1.1.0 with versionCode = 14.

After that I fix some more bugs and release major version so my app's versionName will be something like 2.0.0 with versionCode = 25.

So am I doing it right or I need to change/learn something for it? I have searched about versioning and found some great tutorials about creating version.properties and all. But when I upload it to playstore, it keep saying me to change my versionCode from 1 or 2 to something else. And by something else I mean to increment.

Can anyone tell me what to do? Am I doing right or wrong?

解决方案

There are 2 things which are seen during versioning:

  1. Version Code
  2. Version Name

Now you can consider version code as your age, which is incremented whenever you celebrate your birthday, that is, version code is to be incremented, whenever you make a new build for Play store or you are sending the app via mail or drive. One reason for this is, in play store, it helps the google servers to differentiate between old and current release and in testing point of view you can filter the crashes in crashlytics based on this version code.

But when we talk about version name, its like your name, people might call you chhotu, chintu, etc. when you are young, they call you Viral when you are teen, they call you mr. Joshi when you are working, but it doesnt make a difference as its your age that exactly defines you.

In short, version code is to be changed after every build you make for testing, but version name is your choice. In general version name is changed when you make major bug fixes or UI changes. For small fixes you dont change version name in beta version. But when it is released completely, you can change the last digit of version name too after every release.

这篇关于如何正确版本(ise / ize)Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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