{"action":"created","issue":{"url":"https://api.github.com/repos/ucla/ohmageX/issues/800","labels_url":"https://api.github.com/repos/ucla/ohmageX/issues/800/labels{/name}","comments_url":"https://api.github.com/repos/ucla/ohmageX/issues/800/comments","events_url":"https://api.github.com/repos/ucla/ohmageX/issues/800/events","html_url":"https://github.com/ucla/ohmageX/issues/800","id":112659297,"number":800,"title":"android versioncode not unique enough","user":{"login":"stevenolen","id":808870,"avatar_url":"https://avatars.githubusercontent.com/u/808870?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenolen","html_url":"https://github.com/stevenolen","followers_url":"https://api.github.com/users/stevenolen/followers","following_url":"https://api.github.com/users/stevenolen/following{/other_user}","gists_url":"https://api.github.com/users/stevenolen/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenolen/subscriptions","organizations_url":"https://api.github.com/users/stevenolen/orgs","repos_url":"https://api.github.com/users/stevenolen/repos","events_url":"https://api.github.com/users/stevenolen/events{/privacy}","received_events_url":"https://api.github.com/users/stevenolen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T19:14:47Z","updated_at":"2015-10-21T19:39:33Z","closed_at":null,"body":"The android version code currently gets generated as a non-decimal format of the `version` field found in `config.xml` (ie for 3.0.3 it's `30003`).  If you try to upload two different 3.0.3 builds to the store though, the store will reject because the version code is not higher than the last uploaded.\r\n\r\nWith the native app in the past, we've actually used one generated based on the day: `15102101` where the code reads `YYMMDDxx` and xx is incremented as needed to ensure the ability to upload multiple apps from the same build day.  It would nice to follow a similar structure (and just use `01` always) to facilitate easier store deploys.  \r\n\r\nYou can modify this field in the cordova `config.xml` file in the top level `<widget>` tag by specifying as: `android-versionCode=\"15102101\"`"},"comment":{"url":"https://api.github.com/repos/ucla/ohmageX/issues/comments/150003568","html_url":"https://github.com/ucla/ohmageX/issues/800#issuecomment-150003568","issue_url":"https://api.github.com/repos/ucla/ohmageX/issues/800","id":150003568,"user":{"login":"wrenr","id":865444,"avatar_url":"https://avatars.githubusercontent.com/u/865444?v=3","gravatar_id":"","url":"https://api.github.com/users/wrenr","html_url":"https://github.com/wrenr","followers_url":"https://api.github.com/users/wrenr/followers","following_url":"https://api.github.com/users/wrenr/following{/other_user}","gists_url":"https://api.github.com/users/wrenr/gists{/gist_id}","starred_url":"https://api.github.com/users/wrenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrenr/subscriptions","organizations_url":"https://api.github.com/users/wrenr/orgs","repos_url":"https://api.github.com/users/wrenr/repos","events_url":"https://api.github.com/users/wrenr/events{/privacy}","received_events_url":"https://api.github.com/users/wrenr/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T19:39:33Z","updated_at":"2015-10-21T19:39:33Z","body":"how many digits can be in the android version code?"}}