Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtApp for android: How to auto-increment version using ant's build.xml ?

QtApp for android: How to auto-increment version using ant's build.xml ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 570 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nelson_Piquet
    wrote on last edited by Nelson_Piquet
    #1

    In my QtApp which builds fine for android, I need to auto-increment the versionCode of my app with every build using ant as described in below example.
    http://stackoverflow.com/questions/1431315/build-numbers-major-minor-revision

    I am doing the build command line using the following command:
    androiddeployqt --sign mykey.keystore myAlias --storepass myPassword --output android --verbose --input android-libMyQtApp.so-deployment-settings.json

    How can introduce my own build.xml into my QtApp & do process described in link above ?

    1 Reply Last reply
    0
    • benlauB Offline
      benlauB Offline
      benlau
      Qt Champions 2016
      wrote on last edited by
      #2

      I would just use this script to increase the versionCode in AndroidManifest.xml directly.

      Usage:
      https://github.com/benlau/qtci#5-binincrease-android-version-code

      Script:
      https://github.com/benlau/qtci/blob/master/bin/increase-android-version-code

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved