Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1410] Module is not creating "create" methods for Proxies

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-06-14T01:23:03.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
LabelsModule
ReporterWill Helling
AssigneeMauro Parra-Miranda
Created2014-06-11T15:20:03.000+0000
Updated2016-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

FileDateSize
testmodule.zip2014-06-11T15:20:03.000+00002336697

Comments

  1. Mauro Parra-Miranda 2014-06-14

    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

JSON Source