Titanium applications are javascripts applications(*). Application access to the native features of the platform (ie. direct file access) is provided through Titanium API.
The question is: What would be the best path to make fantom support to appcelerator platform ?
Since we have javascript compiler, logically we should reuse that part of existing functionality. But what would be approach to the appecelerator's extended API ?
It is important that we have this branching of functionality in that hipotetical solution:
javascript
appcelerator common js API
appcelerator desktop
linux
macosx
windows
appcelerator mobile
iphone
ipad
android
blackberry
(*) On desktop version you can mix javascript code with ruby, python, php, but I take this irrelevant to our talk
andyWed 18 May 2011
Hey hernad - the easiest thing to do is just create a new pod that uses native methods to hook into the Titanium platform hooks - and expose nice Fantom APIs for them.
That way you leverage Fantom "as-is" - the only issue would be packing the JavaScript up - which is pretty straightforward - the JavaScript for each pod is stored as single file called <pod>.js in the root of the pod zip file - see docLang::JavaScript for more info.
hernad Wed 18 May 2011
Appcelerator Titanium is opensource platform with similar goals like Adobe AIR.
Titanium applications are javascripts applications(*). Application access to the native features of the platform (ie. direct file access) is provided through Titanium API.
The question is: What would be the best path to make fantom support to appcelerator platform ?
Since we have javascript compiler, logically we should reuse that part of existing functionality. But what would be approach to the appecelerator's extended API ?
It is important that we have this branching of functionality in that hipotetical solution:
(*) On desktop version you can mix javascript code with ruby, python, php, but I take this irrelevant to our talk
andy Wed 18 May 2011
Hey hernad - the easiest thing to do is just create a new pod that uses native methods to hook into the Titanium platform hooks - and expose nice Fantom APIs for them.
That way you leverage Fantom "as-is" - the only issue would be packing the JavaScript up - which is pretty straightforward - the JavaScript for each pod is stored as single file called
<pod>.js
in the root of the pod zip file - see docLang::JavaScript for more info.