
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
capacitor-set-version
Advanced tools
Write version number and build number for Android and iOS on ionic/capacitor projects
Use with npx without install:
npx capacitor-set-version [DIR] -v <value> -b <value> [--json]
install as a development dependency:
npm i -D capacitor-set-version
or install globally:
npm i -g capacitor-set-version
Calling capacitor-set-version
will set your Android and iOS app versions and build number to the values passed as flags.
For Android, build number means the versionCode
option and in iOS it will be CFBundleVersion
.
Flags bellow are used to change the default behavior.
USAGE
$ capacitor-set-version [DIR] -v <value> -b <value> [--json]
ARGUMENTS
DIR Capacitor project root directory
OPTIONS
-b, --build=10 App build number (Integer)
-v, --version=x.x.x App version
--json Print errors and result as JSON
-h, --help Show help
If you need to update the version in only one platform, you can use the commands "set:ios" or "set:android", accordingly.
# Set android version only
capacitor-set-version set:android -v 1.1.1 -b 100 ./my-app
# Set ios version only
capacitor-set-version set:ios -v 1.1.1 -b 100 ./my-app
# Set version to 1.2.3 and build number to 10 on current folder.
capacitor-set-version -v 1.2.3 -b 10
# Set version of project on folder ./my-app
capacitor-set-version -v 1.2.3 -b 10 ./my-app
# Set android only version and build number
capacitor-set-version set:android -v 1.2.3-rc1 -b 1546 ./my-app
# Set iOS version only
capacitor-set-version set:ios -v 1.2.3 -b 10 ./my-app
A lot of changes were made from version 1.x.x, with some features being removed. Bellow is a list of all braking changes:
If you need any of these features back, open up an issue relating your use case.
FAQs
Write version number and build number for Android and iOS on ionic/capacitor projects
The npm package capacitor-set-version receives a total of 5,527 weekly downloads. As such, capacitor-set-version popularity was classified as popular.
We found that capacitor-set-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.