Auto increment version code in Android app

后端 未结 15 1036
忘掉有多难
忘掉有多难 2020-12-07 08:22

is there a way to auto-increment the version code each time you build an Android application in Eclipse?

According to http://developer.android.com/guide/publishing/v

15条回答
  •  悲哀的现实
    2020-12-07 08:26

    So, I see it like this:

    Depending on article that you present, use ant for this tasks (targets?).

    1. parse Manifest (parse XML)
    2. get old version form manifest and increase it/get version from repo
    3. store new version in manifest
    4. build android app.

    But im my case I usually fill this field by value based on Tag's revision when I deploy or distribute application.

提交回复
热议问题