{ "id": "63605", "key": "TIMOB-2973", "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": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:35.000+0000", "created": "2011-04-15T03:33:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.5.2", "release-1.6.0", "reported-1.5.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T02:00:35.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}

cf http://developer.appcelerator.com/question/103121

\n

If you have an \"android\" section in tiapp.xml that looks like\nthis:

\n
\n\n    <android xmlns:android=\"http://schemas.android.com/apk/res/android\">\n        <manifest android:versionCode=\"2\" android:versionName=\"2\"/>\n    </android>\n
\n

... then those custom attributes that you put for\nandroid:versionCode and\nandroid:versionName will be ignored. If, however, you\nalso put in a custom child element to for the \"manifest\" element,\nit will work. Such as this:

\n
\n <android xmlns:android=\"http://schemas.android.com/apk/res/android\">\n        <manifest android:versionCode=\"2\" android:versionName=\"2\">\n            <uses-sdk android:minSdkVersion=\"4\" />\n        </manifest>\n    </android>\n
\n

So to test this failcase and its resolution, use the first\nexample above -- just create a manifest entry with those\nandroid:versionCode and\nandroid:versionName attributes, setting them both to\n\"2\". Then build your app. After it's done launching, open the\nbuild/android/AndroidManifest.xml file (which is generated during\nthe build process), and if you look at the \"manifest\" element in\nthere you'll see that the versionCode and versionName are still set\nto 1 in the failing version. In the fixed version, they should\nsuccessfully get set to 2.

{html}", "attachment": [], "flagged": false, "summary": "Android: attributes put on \"manifest\" element in tiapp.xml are ignored unless child elements also included", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "129784", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [8df1f283c78cf0bf98357f408acf0fdca5f18cea])\n[#2973 state:fixed-in-qa] Make sure custom\nattributes on manifest element in tiapp.xml get processed \nhttps://github.com/appcelerator/titanium_mobile/commit/8df1f283c78c...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:33:58.000+0000", "updated": "2011-04-15T03:33:58.000+0000" }, { "id": "129785", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [704b34573dab4150d60d63f6ae7f80f86b17db61])\n[#2973 state:fixed-in-qa] Make sure custom\nattributes on manifest element in tiapp.xml get processed \nhttps://github.com/appcelerator/titanium_mobile/commit/704b34573dab...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:33:58.000+0000", "updated": "2011-04-15T03:33:58.000+0000" }, { "id": "129786", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [891214956cc03c205dc1bf60db81836c0505eee7])\n[#2973 state:fixed-in-qa] be sure custom\nattributes on manifest element in tiapp.xml get processed \nhttps://github.com/appcelerator/titanium_mobile/commit/891214956cc0...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:33:58.000+0000", "updated": "2011-04-15T03:33:58.000+0000" }, { "id": "129787", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

verified emulator 2.2

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:33:59.000+0000", "updated": "2011-04-15T03:33:59.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }