{ "id": "60947", "key": "TIMOB-315", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:52:41.000+0000", "created": "2011-04-15T02:27:08.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:52:41.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
The AndroidManifest.xml generator doesn't use the version from\ntiapp.xml for the string version. There currently doesn't exist a\nway to specify the integer version required by Android for the\nmarket in tiapp.xml.
The workaround is to use a custom android manifest for now.
i'm moving this to 1.5 so we can close this out but i think this\nis fixed?
We don't currently have a way for the developer to provide\nincrement or set the versionCode. versionName should be what ever\nstring they enter. Currently the only way to handle this is with a\ncustom manifest file. Since we don't have project level settings\nyet.
\nandroid:versionCode=\"1\" android:versionName=\"1\"
#1594 accomplishes this for Titanium 1.5.\nAttributes put on the <android><manifest> element in\ntiapp.xml are carried over to the AndroidManifest.xml. So you could\nhave, for example, the following in tiapp.xml:
\n\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ti:app xmlns:ti=\"http://ti.appcelerator.org\">\n\n...\n<android xmlns:android=\"http://schemas.android.com/apk/res/android\">\n<manifest android:versionCode=\"5\" android:versionName=\"5\">\n<supports-screens \n android:smallScreens=\"false\"\n android:normalScreens=\"true\"\n android:largeScreens=\"true\"\n android:anyDensity=\"false\"\n/>\n<uses-sdk android:minSdkVersion=\"7\" />\n</manifest>\n</android>\n...\n</ti:app>
\n
\nThose android:versionXXX attributes will then find they're way\non to the <manifest> in AndroidManifest.xml. (In this\nexample, supports-screens and uses-sdk will also get set.)