You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Marcin Szczepanski (JIRA)" <ji...@apache.org> on 2014/03/03 01:05:21 UTC

[jira] [Commented] (CB-5590) Asymetry in cordova build updating platform versions (Android/iOS)

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

Marcin Szczepanski commented on CB-5590:
----------------------------------------

Might not be the right place to comment on this, but seemed the closest issue to what I'm after.

I notice that in ios_parser.js there's a comment:

// TODO: add a way to update infoPlist['CFBundleVersion'].

I believe CFBundleVersion should be set to the "versionCode" attribute that is used for Android as it's the equivalent - ie. the build number or similar.

Is there an existing issue for this that I can't find?

> Asymetry in cordova build updating platform versions (Android/iOS)
> ------------------------------------------------------------------
>
>                 Key: CB-5590
>                 URL: https://issues.apache.org/jira/browse/CB-5590
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.1.0
>         Environment: OSX
>            Reporter: Abel Muiño
>            Assignee: Andrew Grieve
>         Attachments: ios_parser.js.patch
>
>
> The version attribute from config.xml updates fields with different semantic in Android vs iOS.
> Both platforms have 2 different version numbers. One acts as the "public" version number (published on the markets, etc) and the other acts as a "private" build number (changing with each development iteration)
> The current behavior is:
> * Android: updates the {{android:versionName}} ( [A string value that represents the release version of the application code, as it should be shown to users|http://developer.android.com/tools/publishing/versioning.html] )
> * iOS: updates the {{CFBundleVersion}} instead: ( [represents an iteration (released or unreleased) of the bundle and can contain a mix of characters and numbers, as in 12E123|https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid/TP40012582-CH28-SW18])
> So, android updates the visible version, but iOS updates the private one.
> This should be synced… I think it makes sense to have the {{config.xml version}} be the public one.
> This means update the iOS tooling to fill the {{CFBundleShortVersionString}} instead.
> That way, {{CFBundleVersion}} and {{android:versionCode}} remain "private versions", maybe using the build number from a continous integration server…



--
This message was sent by Atlassian JIRA
(v6.2#6252)