[AC-1410] Module is not creating "create" methods for Proxies
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-06-14T01:23:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | Module |
Reporter | Will Helling |
Assignee | Mauro Parra-Miranda |
Created | 2014-06-11T15:20:03.000+0000 |
Updated | 2016-03-08T07:37:50.000+0000 |
Description
I'm trying to add new subclasses of KrollProxy to a module as follows:
@Kroll.proxy(creatableInModule=TestmoduleModule.class)
public class GeronimoProxy extends KrollProxy {
public GeronimoProxy () {
super();
}
@Override
public void handleCreationDict(KrollDict options) {
super.handleCreationDict(options);
}
}
However, adding a single javascript call in the example app.js file:
var geronimo = testmodule.createGeronimo();
fails with a runtime error of "Uncaught TypeError: Object # has no method 'createGeronimo'
If I remove the javascript call the rest of the example runs fine, including the createExample() call.
I'm "ant"ing and then "titanium.py run"ing the module to test this functionality.
Attachments
Hello, this is unsupported in 3.2.x. In order to create this, you will need to use Ti Studio. Please check this docs: http://docs.appcelerator.com/titanium/3.0/#!/guide/Creating_a_New_Titanium_Module The CLI will support the Modules creation starting with 3.3.0, right now still in testing, not public release yet. Best, Mauro