-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
49 lines (32 loc) · 1.07 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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);