{ "id": "63006", "key": "TIMOB-2374", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-06T10:06:18.000+0000", "created": "2011-04-15T03:18:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature", "release-1.7.0", "tooling" ], "versions": [], "issuelinks": [ { "id": "10231", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64767", "key": "TIMOB-3698", "fields": { "summary": "Confirm TIMOB-2374", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-06T10:06:18.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}
Some modules may want to ship resources to be merged into\n/res
we should take care of that during\ninstall/build.
We are moving this to 1.5.1. If you run into the issue with a\ncustom module or you publish a custom module. You will need to have\nthe user of the module merge any Android resources into their\nplatform/android/res/... folders and files as necessary for the\nmodule to perform.
(from [42d21873eda3eb8076b61c38ce69d4d5bb4de53b])\nCopy platform/ folder contents from app modules into build/android,\nfor any modules that are used in an app. [#2374]\n\nhttps://github.com/appcelerator/titanium_mobile/commit/42d21873eda3...
(from [3a52eae800b9fdf07c6ae9031910464566dcf9d4])\nWhen building module, put platform/ folder (if any) in the zip, but\nnot in the jar (was doing the latter accidentally earlier).\n[#2374] \nhttps://github.com/appcelerator/titanium_mobile/commit/3a52eae800b9...
Also this commit:
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/c8bb9ef1ba38...
For QE:
\nCreate a new application.
\nIn the app's tiapp.xml, add this to the\n<modules>
section:
\n <module platform=\"android\" version=\"0.1\">ti.franzi</module>
\n
Copy the attached zip file (it's a test module) into the\nproject's root folder.
\nMake this the project's app.js:
\n\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({ \n title:'Test',\n backgroundColor:'#000',\n exitOnClose: true,\n fullscreen: false\n});\nwin.add(Ti.UI.createImageView({\n image: Ti.App.Android.R.drawable.fj,\n width:200, height:267\n}));\nwin.open();
\n
\nRun the app in Android. (No need to test iOS, because there are\nno uses of the platform/ folder in iOS projects and modules.)
\nWhen the app opens, you should see a photograph on the\nscreen.
\nExplanation
\nThe zip file you installed is an Android Titanium module. When\nit gets expanded into the modules/
folder in your\nproject (which occurs automatically when the project is built),\nyou'll see it has a\nplatform/android/res/drawable/fj.png
file in it. That\npng file is the photo you see when you run the app.
So the photo file is not one of your project's\nResources/
files, but rather comes from the external,\ninstalled (\"third-party\", if you want) module. If the photo\nsuccessfully displays, it proves that the module's\nplatform/
folder and its sub-contents were\nsuccessfully merged into build/android
when your app\nwas built, which is the purpose of this ticket.
I don't know if it matters (I don't think it does) but\nLighthouse stripped dots out of the filename for that zip file\nattached here. the filename should be ti.franzi-android-0.1.zip.\nBut I'm pretty sure it doesn't matter what the filename is. Just\nplop it in your project's root folder.