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

[jira] [Commented] (CB-11290) Platform's version should be defined in only one place

    [ https://issues.apache.org/jira/browse/CB-11290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15304499#comment-15304499 ] 

Steve Gill commented on CB-11290:
---------------------------------

Are you suggesting removing the version from those other places and pulling it from package.json when needed?

> 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
>            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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org