Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9730] Android: Support multiple JS files per module

GitHub Issuen/a
TypeSub-task
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-08-16T10:54:28.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sSprint 2012-16 Core, Release 3.0.0
ComponentsAndroid
Labelsqe-port
ReporterBill Dawson
AssigneeBill Dawson
Created2012-06-22T14:07:06.000+0000
Updated2016-05-16T17:42:24.000+0000

Description

See super task for requirements.

Attachments

FileDateSize
assets.zip2012-08-06T15:09:48.000+00001554
timob9730.zip2012-08-06T15:48:58.000+00003127017

Comments

  1. Bill Dawson 2012-08-06

    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 project

    run ant to build the module.

    *PASS*:

    The module has built correctly

    The module's build/generated/java/com/foo/bar/AssetCryptImpl.java file contains a function named initAssets which puts these hash keys in a hash named assets:

    #* com.foo.bar.js #* test1.js #* subdir/test2.js Once the module build passes testing, install it in /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:
       [INFO] foo.foo:
       [INFO] bar
       [INFO] foo.dorp:
       [INFO] dorp
       [INFO] mod.test:
       [INFO] hellz yes
       [INFO] woo :)
       [INFO] Fold Goggold Jeff Goldgate Jeff Jeffgold Foldgold Blumgold Cool Jeffjeff Gatecool Game Coolcold Blum Gateblum Coolgold Goldjeff Game Gamegame Gate Oldgold Jeff Goldblast Jeff Gotgamesgold. Cool cool cool game.
       [INFO] woo.woo:
       [INFO] woo :)
       [INFO] jeff.gamegold:
       [INFO] Fold Goggold Jeff Goldgate Jeff Jeffgold Foldgold Blumgold Cool Jeffjeff Gatecool Game Coolcold Blum Gateblum Coolgold Goldjeff Game Gamegame Gate Oldgold Jeff Goldblast Jeff Gotgamesgold. Cool cool cool game.
       
    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
  2. Bill Dawson 2012-08-06

    Pull request ready https://github.com/appcelerator/titanium_mobile/pull/2684
  3. Shyam Bhadauria 2012-11-20

    Working as expected. Tested in following environment: Titanium SDK:3.0.0.v20121113170203 Titanium  Studio:3.0.0.201211131839

JSON Source