diff --git a/History.md b/History.md index 593fe35d8f..2e7225b36a 100644 --- a/History.md +++ b/History.md @@ -207,9 +207,9 @@ message for more details. * Allow adding local Cordova plugins with `file://` URIs. #4229 -* Automatically set default values for `'android-versionCode'` and - `'ios-CFBundleVersion'` options of Cordova project. (The feature is helpful to - use with tooling such as TestFlight.) #4048 +* Allow specifying a `buildNumber` in `App.info`, which is used to set the + `android-versionCode` and `ios-CFBundleVersion` in the `config.xml` of the + Cordova project. #4048 ### Other bug fixes and improvements diff --git a/tools/cordova/builder.js b/tools/cordova/builder.js index 9958c92677..3f2e036627 100644 --- a/tools/cordova/builder.js +++ b/tools/cordova/builder.js @@ -88,11 +88,10 @@ export class CordovaBuilder { } initalizeDefaults() { - const defaultBuildNumber = (Date.now() % 1000000).toString(); this.metadata = { id: 'com.id' + this.projectContext.appIdentifier, version: '0.0.1', - buildNumber: defaultBuildNumber, + buildNumber: undefined, name: this.cordovaProject.appName, description: 'New Meteor Mobile App', author: 'A Meteor Developer',