You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2016/05/18 11:02:13 UTC

[jira] [Created] (CB-11290) Platform should have single source for its version

Vladimir Kotikov created CB-11290:
-------------------------------------

             Summary: Platform should have single source for its version
                 Key: CB-11290
                 URL: https://issues.apache.org/jira/browse/CB-11290
             Project: Apache Cordova
          Issue Type: Improvement
            Reporter: Vladimir Kotikov


Currently every platform has a multiple places where the version is kept and should be updated on every version bump. E.g. for android platform these places are:

- {{package.json}}
- {{VERSION}} plain-text file at the root of the platform's package
- {{version}} executable script in {{bin/templates/cordova/version}} (copied to {{cordova/version}} after platform is added to the project)
- {{CORDOVA_VERSION}} variable in {{framework/src/org/apache/cordova/CordovaWebView.java}}

This variety of version sources is becoming too hard to maintain and may lead to various errors in released packages.

References:
- [coho {{updateRepoVersion}} method|https://github.com/apache/cordova-coho/blob/08fef1cd2cbf213038c1bc6c636472d30b91ac18/src/platform-release.js#L117]
- [instructions on how to update platform's versionbefore release|https://github.com/apache/cordova-coho/blob/9eae0b924c382fe18530a31a785feeeb27bfe1ff/docs/platforms-release-process.md#prepare-release]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org