Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6550] Android: Use the "ti:/" prefix for all platform Javascript files

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-12-12T17:41:57.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-49, Release 1.8.0.1, Release 2.0.0
ComponentsAndroid
Labelsbranch-v8, verified-1.8.0.1
ReporterMarshall Culpepper
AssigneeJosh Roesslein
Created2011-12-09T14:12:46.000+0000
Updated2012-01-11T15:30:25.000+0000

Description

This would fix two issues, namely: * We currently require() all platform level Javascript using a top level file name, which potentially conflicts with user code * We need a unique identifier for TiStudio to filter our platform stack frames with

Comments

  1. Marshall Culpepper 2011-12-12

    I tested this by require()ing a module called "module" that conflicts with our internal module.js: app.js:
       var module = require("module");
       // Should be true
       Ti.API.debug("isMyModule = " + module.isMyModule);
       
    module.js:
       exports.isMyModule = true;
       
    Before the fix, this would fail. Now it works.
  2. Dustin Hyde 2011-12-19

    Verified as Fixed in 1.8.0.1. SDK: 1.8.0.1.RC3 Android Runtimes: V8/Rhino Studio: 1.0.7.201112152014 Devices Tested: Android Emulator 2.2, Xoom 3.2.1, iPhone Simulator 5.0
  3. Wilson Luu 2012-01-11

    Closing bug. Already verified fix on 1.8.0.1

JSON Source