alternatex / belt

Interoperability library for script inclusion within titanium desktop sdk >= 1.2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Belt

Interoperability library for script inclusion within titanium desktop sdk >= 1.2.0

Usage Example

FTP-Client

<script type="text/javascript" src="lib/belt.js"></script>
<script type="text/javascript">
	// fetch required
	Belt('ftp', {
		classNamespace: '\\util\\', 
		classPath: 'ftp.php',
		instantiate: false
	});
			 
	// setup connection credentials	
	var ftpOptions = {instanceArgs: {
		host: 'ftp.host.tld',
		user:'user',
		pass:'pass'
	}};
			
	// create php-obj js-ref through belt
	var ftp = Belt("ftp", ftpOptions);

	// open connection
	ftp.open();
		
	// transfer
	ftp.upload("/path/to/local/file", "/path/to/remote/file");
	ftp.download("/path/to/remote/file", "/path/to/local/file1");
			
	// close connection
	ftp.close();			
</script>

Source

latest tgz

Known Issues

Version 0.0.2:

  • restricted referencing (see v.0.0.3 kroll re-run)
  • not thread-safe

Roadmap

Version 0.0.3

  • kroll direct fnc call optimization - w/o turn-around inclusion by step - callback object transformation seems to work now - go "native" > as it's far from optimal right now

Further Reading: Titanium Desktop

1.2.0 RC 1

1.2.0 RC 2

1.2.0 RC 3

1.2.0 RC 4

Release Notes

About

Interoperability library for script inclusion within titanium desktop sdk >= 1.2.0

License:MIT License


Languages

Language:JavaScript 67.8%Language:PHP 32.2%