Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Mobile Versioning
Mobile Versioning

Mobile Versioning

Damien Aicheh

|
1,336 installs
| (4) | Free
Manage your mobile application versions with Azure DevOps
Get it free

Mobile Versioning

Quick overview

The tasks available in this extension are:

  • ExtractVersionFromTag
  • UpdateiOSVersionInfoPlist
  • UpdateAndroidVersionManifest
  • UpdateAndroidVersionGradle

Check the Github repository for more informations!

Basic usage

Dynamically get the version from the Git tag:

- task: ExtractVersionFromTag@1
  inputs:
    projectFolderPath: '$(Build.SourcesDirectory)' # Optional. Default is: $(Build.SourcesDirectory)

You will then have access to 4 variables for the following tasks:

  • MAJOR
  • MINOR
  • PATCH
  • PRE_RELEASE
  • NUMBER_OF_COMMITS
  • NUMBER_OF_COMMITS_SINCE_TAG

Then depending on your need add one of these following tasks:

For iOS to update the Info.plist:

- task: UpdateiOSVersionInfoPlist@1
  inputs:
    infoPlistPath: 'your_project/Info.plist'
    bundleShortVersionString: '$(MAJOR).$(MINOR).$(PATCH)-$(PRE_RELEASE)' # Optional. Default is: $(MAJOR).$(MINOR).$(PATCH)
    bundleVersion: '$(NUMBER_OF_COMMITS)' # Optional. Default is: $(NUMBER_OF_COMMITS)

For Android:

If you need to update the AndroidManifest.xml:

- task: UpdateAndroidVersionManifest@1
  inputs:
    androidManifestPath: 'your_project/AndroidManifest.xml'
    versionName: '$(MAJOR).$(MINOR).$(PATCH)-$(PRE_RELEASE)' # Optional. Default is: $(MAJOR).$(MINOR).$(PATCH)
    versionCode: '$(NUMBER_OF_COMMITS)' # Optional. Default is: $(NUMBER_OF_COMMITS)

If you need to update the build.gradle inside the app folder:

- task: UpdateAndroidVersionGradle@1
  inputs:
    buildGradlePath: 'your_project/app/build.gradle'
    versionName: '$(MAJOR).$(MINOR).$(PATCH)-$(PRE_RELEASE)' # Optional. Default is: $(MAJOR).$(MINOR).$(PATCH)
    versionCode: '$(NUMBER_OF_COMMITS)' # Optional. Default is: $(NUMBER_OF_COMMITS)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft