@vulksoft/nativescript-hook-versioning
v7.0.5
Published
Handle your manifest and plist version.
Downloads
1
Readme
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.