[
https://issues.apache.org/jira/browse/CB-11290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah updated CB-11290:
----------------------------------
Component/s: AllPlatforms
> Platform's version should be defined in only one place
> ------------------------------------------------------
>
> Key: CB-11290
> URL: https://issues.apache.org/jira/browse/CB-11290
> Project: Apache Cordova
> Issue Type: Improvement
> Components: AllPlatforms
> 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.
> The proposed approach is to store version in {{package.json}}
> 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: [email protected]
For additional commands, e-mail: [email protected]