[TIMOB-9730] Android: Support multiple JS files per module
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-16T10:54:28.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Sprint 2012-16 Core, Release 3.0.0 |
Components | Android |
Labels | qe-port |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2012-06-22T14:07:06.000+0000 |
Updated | 2016-05-16T17:42:24.000+0000 |
Description
See super task for requirements.
Attachments
File | Date | Size |
---|---|---|
assets.zip | 2012-08-06T15:09:48.000+0000 | 1554 |
timob9730.zip | 2012-08-06T15:48:58.000+0000 | 3127017 |
TESTING
---- *IMPORTANT* - Complete these steps on all three *desktop* platforms!Module build
Create a new module project for Android with the id
com.foo.bar
- only the ID matters. This module MUST be created with 2.2.0 SDK being tested with.Download the attached
assets.zip
unzip
assets.zip
in the directory of the new module projectrun ant to build the module.
*PASS*:The module has built correctly
The module's
#* com.foo.bar.js #* test1.js #* subdir/test2.js Once the module build passes testing, install it inbuild/generated/java/com/foo/bar/AssetCryptImpl.java
file contains a function namedinitAssets
which puts these hash keys in a hash namedassets
:/Library/Application Support/Titanium
in the usual way.Project (2.2.0 branch that you are testing)
*IMPORTANT*: Run this test project with both V8 and Rhino!Download the attached
timob9730.zip
and unzip it.Import the resulting directory into TiStudio
Run project
*PASS:* The console output from the app will include the following:This looks redundant but tests ALL of the following features: * Relative pathing outside modules * Relative pathing inside modules * Absolute pathing outside modules * Absolute pathing inside modules * Loading module resource before module * Loading module as
module.id/module.id
Pull request ready https://github.com/appcelerator/titanium_mobile/pull/2684
Working as expected. Tested in following environment: Titanium SDK:3.0.0.v20121113170203 Titanium Studio:3.0.0.201211131839