npm i --save @vulksoft/nativescript-hook-versioning
- Version: 7.0.5
- GitHub:
- NPM: https://www.npmjs.com/package/%40vulksoft%2Fnativescript-hook-versioning
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
Nativescript Hook Versioning
This plugin add an hook that do the followings things:
- Take your
version
fromnativescript.config.ts
and put it asversionName
into yourAndroidManifest.xml
and asCFBundleShortVersionString
into yourInfo.plist
. - Take an environment variable of your choice and put it as
versionCode
into yourAndroidManifest.xml
and asCFBundleVersion
into yourInfo.plist
. That allow you to use an environment variable from your CICD and auto increment your version code.
Installation
ns plugin add nativescript-hook-versioning
Usage
You can add the following configuration into your nativescript.config.ts
nativescriptHookVersioning: {
versionName: true,
versionCode: {
enabled: true,
content: 'BUNDLE_VERSION_CODE', // This can contains '+ANY_NUMBER' if you need to increment your versionCode.
},
},
to configure it to your likings.