Hyperloop and standard CommonJS project

69 views Asked by At

I tried to use Hyperloop in a non-Alloy project and apparently it doesn't work (please, correct me if I'm wrong). Is there any technical reason why a traditional CommonJS project can't make use of Hyperloop?

1

There are 1 answers

3
miga On

A classic project created with ti create and then imported with appc new --import to get hyperloop compiles fine.

var Activity = require('android.app.Activity');
var Context = require("android.content.Context");
var activity = new Activity(Titanium.App.Android.getTopActivity());

var win = Ti.UI.createWindow({
    backgroundColor: '#fff'
});

win.open();

nothing special but it is a hyperloop project running in an classic environment without any problem