Skip to content

Request: Don't add build version numbers if they don't exist in config.xml #38

@FBNitro

Description

@FBNitro

Would be nice to have a flag or individual options to not add the build number for specific operating systems to config.xml. For example, I currently don't use the android-versionCode, or osx-CFBundleVersion, I only use the ios-CFBundleVersion. I want android to use the version to construct the versionCode, instead of specifying it myself.

When I run the CLI, the android and osx versions are added in, but I don't want them added.

My original widget line:
<widget id="myapp" ios-CFBundleVersion="100" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

CLI call:
cordova-set-version -v 1.0.2 -b 102

Resulting widget line:
<widget id="myapp" ios-CFBundleVersion="102" version="1.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" android-versionCode="102" osx-CFBundleVersion="102">

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions