Project: titanium
Issue TIMOB-20245: Hyperloop: Should not compile platform-specific folders for other platforms
If you download the example app linked form the body of http://labs.appcelerator.com/project/55f74a9f421c44837717716b/Hyperloop-Module and run it for iOS straight away ({{appc new --import --no-services && appc ti build -p ios}} the Hyperloop compile will fails with: {code} [INFO] Alloy compiler completed successfully [WARN] Hyperloop is currently available in Beta and should not be used for production applications. [INFO] Starting Hyperloop assembly [INFO] [Hyperloop] Building CocoaPods dependencies [WARN] The iOS framework "javax.crypto.KeyGenerator" could not be found. Are you trying to use "JavaScriptCore" or "JBChartView" instead? (android/alloy/controllers/touchid.js) [WARN] The iOS framework "javax.crypto.Cipher" could not be found. Are you trying to use "JavaScriptCore" or "JBChartView" instead? (android/alloy/controllers/touchid.js) /Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/walk.js:15 if (false === override) fn(n); ^ JSParseError: Hyperloop.defineClass cannot define multiple classes with the same name "ChartDelegate" (/Users/bhushankumar/Downloads/hyperloop-examples (1)/Resources/iphone/subclasses/chartdelegate.js:1:20) at /Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/lib/generate/custom.js:585:11 at walk (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/walk.js:15:29) at Object.skip (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/types.js:293:3) at walk (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/walk.js:17:16) at Object.exports.VariableDeclaration (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/types.js:191:7) at walk (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/walk.js:17:16) at Object.skip (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/types.js:293:3) at walk (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/walk.js:17:16) at Object.exports.Program.exports.BlockStatement (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/types.js:25:5) at walk (/Users/bhushankumar/Downloads/hyperloop-examples (1)/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/walk-ast/lib/walk.js:17:16) {code} h2. Cause Hyperloop should not compile JavaScript files in {{Resources}} that are in platform-specific folders for other platforms then the one you build for.
Story points: 5