Skip to content

sttts/ti-exit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ti-exit module
==============

Quit the Ti app on iOS and Android, especially suited for CI test runs from the command line.

BUILDING YOUR MODULE
--------------------

Simply run `titanium build --platform <name of platform> --build-type production --dir /path/to/module`.

INSTALL TI-EXIT
---------------

Mac OS X
--------
Copy the distribution zip file into the `~/Library/Application Support/Titanium` folder

Linux
-----
Copy the distribution zip file into the `~/.titanium` folder

Windows
-------
Copy the distribution zip file into the `C:\ProgramData\Titanium` folder


REGISTER TI-EXIT
----------------

Register your module with your application by editing `tiapp.xml` and adding your module.
Example:

<modules>
	<module version="1.0.0">com.sttts.exit</module>
</modules>

When you run your project, the compiler will combine your module along with its dependencies
and assets into the application.


USING TI-EXIT IN CODE
-------------------------

To use your module in code, you will need to require it.

For example,

	var ti_exit = require('com.sttts.exit');
	ti_exit.exit(1);