7.0.5 • Published 5 years ago
@vulksoft/nativescript-hook-versioning v7.0.5
Nativescript Hook Versioning
This plugin add an hook that do the followings things:
- Take your
versionfromnativescript.config.tsand put it asversionNameinto yourAndroidManifest.xmland asCFBundleShortVersionStringinto yourInfo.plist. - Take an environment variable of your choice and put it as
versionCodeinto yourAndroidManifest.xmland asCFBundleVersioninto 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.
7.0.5
5 years ago