You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2016/09/12 17:34:20 UTC

[jira] [Commented] (CB-9465) Can't use "DNS Soa Serial number format" as Android versionCode

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

Joe Bowser commented on CB-9465:
--------------------------------

Reviewed the issue, testing the fix now.

>  Can't use "DNS Soa Serial number format" as Android versionCode 
> -----------------------------------------------------------------
>
>                 Key: CB-9465
>                 URL: https://issues.apache.org/jira/browse/CB-9465
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Android
>            Reporter: Pierre-Alexis de Solminihac
>            Priority: Minor
>
> If you use the DNS Soa Serial number format format (ie. YYYYmmddss) as your Android versionCode it will be too big for an integer value, as the platforms/android/build.gradle script suffixes it with a "0".
> For example, today's versionCode could be 2015080601.
> The build script will suffix it with a "0", and cast it as an integer. So it becomes 20,150,806,010 but its too high for and integer, whose max value is 2,147,483,647.
> Then the build script fails.
> Worst part : it used to work, so I can't upgrade my apps on Google Play !



--
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