Available on Visual Studio Marketplace
The tasks available in this extension are:
- AndroidVersionExtract
Provided are powershell core and a TS script.
Task to extract app versionName and versionCode from the AndroidManifest.xml file at build time.
Extract app versionName and versionCode at build time:
- task: android-manifest-extract-version-name-code@1
inputs:
pathToAndroidManifest: ...
After task execution following variables will be available for the next tasks:
- VERSION_NAME
- VERSION_CODE
For the AndroidVersionExtract
:
PowerShell: $env:INPUT_pathToAndroidManifest="..\Properties\AndroidManifest.xml"
PowerShell: tsc task.ts; node task.js