@maccesar/titools 2.2.3 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -27
- package/lib/commands/update.js +80 -101
- package/package.json +1 -1
- package/skills/alloy-guides/SKILL.md +31 -31
- package/skills/alloy-guides/references/CONCEPTS.md +3 -3
- package/skills/alloy-guides/references/CONTROLLERS.md +1 -1
- package/skills/alloy-guides/references/MODELS.md +6 -6
- package/skills/alloy-guides/references/VIEWS_WITHOUT_CONTROLLERS.md +1 -1
- package/skills/alloy-guides/references/VIEWS_XML.md +1 -1
- package/skills/alloy-guides/references/WIDGETS.md +1 -1
- package/skills/alloy-howtos/SKILL.md +27 -27
- package/skills/alloy-howtos/references/best_practices.md +9 -9
- package/skills/alloy-howtos/references/cli_reference.md +14 -14
- package/skills/alloy-howtos/references/config_files.md +16 -16
- package/skills/alloy-howtos/references/custom_tags.md +16 -16
- package/skills/alloy-howtos/references/debugging_troubleshooting.md +11 -15
- package/skills/alloy-howtos/references/samples.md +19 -19
- package/skills/purgetss/SKILL.md +11 -1
- package/skills/purgetss/references/animation-system.md +1 -1
- package/skills/purgetss/references/cli-commands.md +3 -3
- package/skills/purgetss/references/customization-deep-dive.md +1 -1
- package/skills/purgetss/references/dynamic-component-creation.md +1 -1
- package/skills/purgetss/references/icon-fonts.md +4 -0
- package/skills/purgetss/references/installation-setup.md +8 -1
- package/skills/purgetss/references/migration-guide.md +4 -0
- package/skills/purgetss/references/tikit-components.md +193 -204
- package/skills/purgetss/references/ui-ux-design.md +1 -1
- package/skills/ti-expert/SKILL.md +78 -118
- package/skills/ti-expert/references/alloy-builtins.md +18 -18
- package/skills/ti-expert/references/alloy-structure.md +21 -21
- package/skills/ti-expert/references/anti-patterns.md +15 -15
- package/skills/ti-expert/references/cli-expert.md +15 -15
- package/skills/ti-expert/references/code-conventions.md +38 -38
- package/skills/ti-expert/references/contracts.md +8 -8
- package/skills/ti-expert/references/controller-patterns.md +14 -14
- package/skills/ti-expert/references/error-handling.md +11 -11
- package/skills/ti-expert/references/examples.md +12 -12
- package/skills/ti-expert/references/migration-patterns.md +24 -24
- package/skills/ti-expert/references/patterns.md +10 -10
- package/skills/ti-expert/references/performance-listview.md +16 -16
- package/skills/ti-expert/references/performance-optimization.md +41 -41
- package/skills/ti-expert/references/security-device.md +22 -22
- package/skills/ti-expert/references/security-fundamentals.md +19 -19
- package/skills/ti-expert/references/state-management.md +33 -33
- package/skills/ti-expert/references/testing-e2e-ci.md +25 -25
- package/skills/ti-expert/references/testing-unit.md +24 -24
- package/skills/ti-expert/references/theming.md +15 -15
- package/skills/ti-guides/SKILL.md +58 -60
- package/skills/ti-guides/references/advanced-data-and-images.md +33 -33
- package/skills/ti-guides/references/android-manifest.md +15 -15
- package/skills/ti-guides/references/app-distribution.md +70 -166
- package/skills/ti-guides/references/application-frameworks.md +96 -114
- package/skills/ti-guides/references/cli-reference.md +294 -294
- package/skills/ti-guides/references/coding-best-practices.md +42 -33
- package/skills/ti-guides/references/commonjs-advanced.md +57 -51
- package/skills/ti-guides/references/hello-world.md +36 -36
- package/skills/ti-guides/references/hyperloop-native-access.md +66 -66
- package/skills/ti-guides/references/javascript-primer.md +83 -101
- package/skills/ti-guides/references/reserved-words.md +9 -9
- package/skills/ti-guides/references/resources.md +75 -83
- package/skills/ti-guides/references/style-and-conventions.md +35 -28
- package/skills/ti-guides/references/tiapp-config.md +110 -74
- package/skills/ti-howtos/SKILL.md +88 -92
- package/skills/ti-howtos/references/android-platform-deep-dives.md +104 -104
- package/skills/ti-howtos/references/automation-fastlane-appium.md +39 -39
- package/skills/ti-howtos/references/buffer-codec-streams.md +60 -60
- package/skills/ti-howtos/references/cross-platform-development.md +115 -136
- package/skills/ti-howtos/references/debugging-profiling.md +167 -181
- package/skills/ti-howtos/references/extending-titanium.md +121 -121
- package/skills/ti-howtos/references/google-maps-v2.md +84 -82
- package/skills/ti-howtos/references/ios-map-kit.md +65 -60
- package/skills/ti-howtos/references/ios-platform-deep-dives.md +123 -123
- package/skills/ti-howtos/references/local-data-sources.md +79 -78
- package/skills/ti-howtos/references/location-and-maps.md +116 -120
- package/skills/ti-howtos/references/media-apis.md +87 -86
- package/skills/ti-howtos/references/notification-services.md +250 -260
- package/skills/ti-howtos/references/remote-data-sources.md +98 -93
- package/skills/ti-howtos/references/tutorials.md +226 -216
- package/skills/ti-howtos/references/using-modules.md +73 -102
- package/skills/ti-howtos/references/web-content-integration.md +101 -103
- package/skills/ti-howtos/references/webpack-build-pipeline.md +52 -44
- package/skills/ti-ui/SKILL.md +85 -85
- package/skills/ti-ui/references/accessibility-deep-dive.md +57 -57
- package/skills/ti-ui/references/animation-and-matrices.md +79 -79
- package/skills/ti-ui/references/application-structures.md +96 -99
- package/skills/ti-ui/references/custom-fonts-styling.md +99 -99
- package/skills/ti-ui/references/event-handling.md +58 -58
- package/skills/ti-ui/references/gestures.md +62 -64
- package/skills/ti-ui/references/icons-and-splash-screens.md +88 -88
- package/skills/ti-ui/references/layouts-and-positioning.md +87 -97
- package/skills/ti-ui/references/listviews-and-performance.md +107 -107
- package/skills/ti-ui/references/orientation.md +87 -88
- package/skills/ti-ui/references/platform-ui-android.md +87 -81
- package/skills/ti-ui/references/platform-ui-ios.md +63 -61
- package/skills/ti-ui/references/scrolling-views.md +29 -29
- package/skills/ti-ui/references/tableviews.md +56 -56
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# tiapp.xml and timodule.xml
|
|
1
|
+
# tiapp.xml and timodule.xml configuration
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Reference for Titanium app configuration files. `tiapp.xml` is the main config file for Titanium apps. `timodule.xml` is for custom modules.
|
|
4
4
|
|
|
5
|
-
## tiapp.xml
|
|
5
|
+
## tiapp.xml structure
|
|
6
6
|
|
|
7
7
|
```xml
|
|
8
8
|
<ti:app xmlns:ti="http://ti.tidev.io">
|
|
@@ -39,39 +39,43 @@ Complete reference for Titanium app configuration files. `tiapp.xml` is the main
|
|
|
39
39
|
</ti:app>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
tiapp.xml properties are encrypted when building for production.
|
|
43
43
|
|
|
44
44
|
---
|
|
45
45
|
|
|
46
|
-
## Top-
|
|
46
|
+
## Top-level elements
|
|
47
47
|
|
|
48
|
-
### Required
|
|
48
|
+
### Required elements
|
|
49
49
|
|
|
50
50
|
#### `<guid>`
|
|
51
|
-
|
|
51
|
+
|
|
52
|
+
Required. Unique ID generated by the CLI. Do not modify unless you know why.
|
|
52
53
|
|
|
53
54
|
#### `<id>`
|
|
54
|
-
**Required.** Application ID.
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
Required. Application ID.
|
|
57
|
+
|
|
58
|
+
- Android: package ID following Java package naming standards
|
|
59
|
+
- iOS: must match Bundle ID from Apple Developer Portal
|
|
58
60
|
|
|
59
61
|
```xml
|
|
60
62
|
<id>com.mycompany.fakeblock</id>
|
|
61
63
|
```
|
|
62
64
|
|
|
63
65
|
#### `<name>`
|
|
64
|
-
|
|
66
|
+
|
|
67
|
+
Required. Application name shown under the icon on device.
|
|
65
68
|
|
|
66
69
|
```xml
|
|
67
70
|
<name>Fakeblock</name>
|
|
68
71
|
```
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
Android warning: if the name starts with a digit, prefix the activity name with an underscore (for example, `_2Foo`).
|
|
71
74
|
|
|
72
|
-
### Optional
|
|
75
|
+
### Optional elements
|
|
73
76
|
|
|
74
77
|
#### `<defaultLang>`
|
|
78
|
+
|
|
75
79
|
Sets the default language for Android i18n `strings.xml`. Android defaults to `en`. If you only use a single non-English i18n file, set this to that language.
|
|
76
80
|
|
|
77
81
|
```xml
|
|
@@ -79,9 +83,11 @@ Sets the default language for Android i18n `strings.xml`. Android defaults to `e
|
|
|
79
83
|
```
|
|
80
84
|
|
|
81
85
|
#### `<copyright>`
|
|
86
|
+
|
|
82
87
|
Application copyright.
|
|
83
88
|
|
|
84
89
|
#### `<description>`
|
|
90
|
+
|
|
85
91
|
Application description.
|
|
86
92
|
|
|
87
93
|
```xml
|
|
@@ -89,29 +95,33 @@ Application description.
|
|
|
89
95
|
```
|
|
90
96
|
|
|
91
97
|
#### `<fullscreen>`
|
|
92
|
-
|
|
98
|
+
|
|
99
|
+
Start the app in fullscreen (hides the status bar).
|
|
93
100
|
|
|
94
101
|
```xml
|
|
95
102
|
<fullscreen>false</fullscreen> <!-- default -->
|
|
96
103
|
```
|
|
97
104
|
|
|
98
105
|
#### `<icon>`
|
|
99
|
-
|
|
106
|
+
|
|
107
|
+
Icon filename relative to `Resources/` or a platform-specific folder.
|
|
100
108
|
|
|
101
109
|
```xml
|
|
102
110
|
<icon>appicon.png</icon>
|
|
103
111
|
```
|
|
104
112
|
|
|
105
113
|
#### `<navbar-hidden>`
|
|
106
|
-
|
|
114
|
+
|
|
115
|
+
Hide the navigation bar.
|
|
107
116
|
|
|
108
117
|
```xml
|
|
109
118
|
<navbar-hidden>false</navbar-hidden> <!-- default -->
|
|
110
119
|
```
|
|
111
120
|
|
|
112
|
-
|
|
121
|
+
Android: removes the top action/title bar.
|
|
113
122
|
|
|
114
123
|
#### `<publisher>`
|
|
124
|
+
|
|
115
125
|
Application publisher.
|
|
116
126
|
|
|
117
127
|
```xml
|
|
@@ -119,13 +129,15 @@ Application publisher.
|
|
|
119
129
|
```
|
|
120
130
|
|
|
121
131
|
#### `<statusbar-hidden>`
|
|
122
|
-
|
|
132
|
+
|
|
133
|
+
Android only. Hide the status bar.
|
|
123
134
|
|
|
124
135
|
```xml
|
|
125
136
|
<statusbar-hidden>false</statusbar-hidden> <!-- default -->
|
|
126
137
|
```
|
|
127
138
|
|
|
128
139
|
#### `<url>`
|
|
140
|
+
|
|
129
141
|
Application URL.
|
|
130
142
|
|
|
131
143
|
```xml
|
|
@@ -133,15 +145,17 @@ Application URL.
|
|
|
133
145
|
```
|
|
134
146
|
|
|
135
147
|
#### `<version>`
|
|
148
|
+
|
|
136
149
|
Application version.
|
|
137
150
|
|
|
138
151
|
```xml
|
|
139
152
|
<version>3.1.4</version>
|
|
140
153
|
```
|
|
141
154
|
|
|
142
|
-
|
|
155
|
+
iOS: truncated to 3 dot-separated numbers (for example, `2.1.0.1` becomes `2.1.0`).
|
|
143
156
|
|
|
144
157
|
#### `<sdk-version>`
|
|
158
|
+
|
|
145
159
|
Titanium SDK to build against.
|
|
146
160
|
|
|
147
161
|
```xml
|
|
@@ -149,6 +163,7 @@ Titanium SDK to build against.
|
|
|
149
163
|
```
|
|
150
164
|
|
|
151
165
|
#### `<deployment-targets>`
|
|
166
|
+
|
|
152
167
|
IDE deployment menu options.
|
|
153
168
|
|
|
154
169
|
```xml
|
|
@@ -160,6 +175,7 @@ IDE deployment menu options.
|
|
|
160
175
|
```
|
|
161
176
|
|
|
162
177
|
#### `<modules>`
|
|
178
|
+
|
|
163
179
|
Include Titanium modules.
|
|
164
180
|
|
|
165
181
|
```xml
|
|
@@ -172,13 +188,14 @@ Include Titanium modules.
|
|
|
172
188
|
</modules>
|
|
173
189
|
```
|
|
174
190
|
|
|
175
|
-
|
|
191
|
+
Attributes:
|
|
176
192
|
- `platform`: `android`, `commonjs`, `iphone`
|
|
177
|
-
- `version`:
|
|
193
|
+
- `version`: specific module version
|
|
178
194
|
- `deploy-type`: `development`, `test`, `production` (comma-separated)
|
|
179
195
|
|
|
180
196
|
#### `<plugins>`
|
|
181
|
-
|
|
197
|
+
|
|
198
|
+
Include plugins (in the `plugins/` folder).
|
|
182
199
|
|
|
183
200
|
```xml
|
|
184
201
|
<plugins>
|
|
@@ -188,7 +205,7 @@ Include plugins (in `plugins/` folder).
|
|
|
188
205
|
|
|
189
206
|
---
|
|
190
207
|
|
|
191
|
-
## Application
|
|
208
|
+
## Application properties
|
|
192
209
|
|
|
193
210
|
Custom properties accessible via `Titanium.App.Properties`. Read-only in production.
|
|
194
211
|
|
|
@@ -196,65 +213,71 @@ Custom properties accessible via `Titanium.App.Properties`. Read-only in product
|
|
|
196
213
|
<property name="name" type="type">value</property>
|
|
197
214
|
```
|
|
198
215
|
|
|
199
|
-
|
|
216
|
+
Types: `string`, `bool`, `int`, `double`
|
|
200
217
|
|
|
201
|
-
### Special
|
|
218
|
+
### Special properties
|
|
202
219
|
|
|
203
220
|
#### `ti.ui.defaultunit`
|
|
221
|
+
|
|
204
222
|
Default unit for sizes/positions.
|
|
205
223
|
|
|
206
224
|
```xml
|
|
207
225
|
<property name="ti.ui.defaultunit">system</property>
|
|
208
226
|
```
|
|
209
227
|
|
|
210
|
-
|
|
228
|
+
Values: `system`, `cm`, `dip`/`dp`, `in`, `mm`, `px`
|
|
211
229
|
|
|
212
230
|
#### `run-on-main-thread`
|
|
213
|
-
|
|
231
|
+
|
|
232
|
+
Since 5.1.0. Run all JavaScript on the main thread instead of a secondary thread. Disabled by default in existing projects, enabled in new projects. Enabled automatically in SDK 7.0.0+.
|
|
214
233
|
|
|
215
234
|
```xml
|
|
216
235
|
<property name="run-on-main-thread" type="bool">true</property>
|
|
217
236
|
```
|
|
218
237
|
|
|
219
238
|
#### `allow-custom-keyboards`
|
|
220
|
-
|
|
239
|
+
|
|
240
|
+
Since 6.1.0. Allow or disallow custom iOS 8+ keyboard extensions. Custom keyboards are allowed by default. Set to `false` to disallow them.
|
|
221
241
|
|
|
222
242
|
```xml
|
|
223
243
|
<property name="allow-custom-keyboards" type="bool">false</property>
|
|
224
244
|
```
|
|
225
245
|
|
|
226
246
|
#### `appc-sourcecode-encryption-policy`
|
|
247
|
+
|
|
227
248
|
Encryption policy for app assets.
|
|
228
249
|
|
|
229
250
|
```xml
|
|
230
251
|
<property name="appc-sourcecode-encryption-policy">remote</property>
|
|
231
252
|
```
|
|
232
253
|
|
|
233
|
-
|
|
234
|
-
- `embed`:
|
|
235
|
-
- `remote`:
|
|
254
|
+
Values:
|
|
255
|
+
- `embed`: key embedded in binary (padded/obfuscated)
|
|
256
|
+
- `remote`: key stored remotely (requires internet, default)
|
|
236
257
|
|
|
237
258
|
#### `appc-security-jailbreak-detect`
|
|
259
|
+
|
|
238
260
|
Prevent running on jailbroken/rooted devices.
|
|
239
261
|
|
|
240
262
|
```xml
|
|
241
263
|
<property name="appc-security-jailbreak-detect">true</property>
|
|
242
264
|
```
|
|
243
265
|
|
|
244
|
-
|
|
266
|
+
Requires `appc-sourcecode-encryption-policy` set to `remote`.
|
|
245
267
|
|
|
246
268
|
#### `appc-security-debugger-detect`
|
|
269
|
+
|
|
247
270
|
Prevent debugger connections.
|
|
248
271
|
|
|
249
272
|
```xml
|
|
250
273
|
<property name="appc-security-debugger-detect">true</property>
|
|
251
274
|
```
|
|
252
275
|
|
|
253
|
-
|
|
276
|
+
Requires `appc-sourcecode-encryption-policy` set to `remote`.
|
|
254
277
|
|
|
255
278
|
---
|
|
256
279
|
|
|
257
|
-
## Android
|
|
280
|
+
## Android section
|
|
258
281
|
|
|
259
282
|
```xml
|
|
260
283
|
<android xmlns:android="http://schemas.android.com/apk/res/android">
|
|
@@ -278,17 +301,19 @@ Prevent debugger connections.
|
|
|
278
301
|
### Elements
|
|
279
302
|
|
|
280
303
|
#### `<abi>`
|
|
304
|
+
|
|
281
305
|
Target ABI architecture (V8 runtime only).
|
|
282
306
|
|
|
283
307
|
```xml
|
|
284
308
|
<abi>all</abi> <!-- default -->
|
|
285
309
|
```
|
|
286
310
|
|
|
287
|
-
|
|
311
|
+
Values: `all`, `arm64-v8a`, `armeabi-v7a`, `x86`, `x86_64`
|
|
288
312
|
|
|
289
|
-
Targeting specific
|
|
313
|
+
Targeting specific ABIs reduces APK size but also reduces device compatibility.
|
|
290
314
|
|
|
291
315
|
#### `<activities>`
|
|
316
|
+
|
|
292
317
|
Custom JavaScript-based Android activities.
|
|
293
318
|
|
|
294
319
|
```xml
|
|
@@ -300,6 +325,7 @@ Custom JavaScript-based Android activities.
|
|
|
300
325
|
```
|
|
301
326
|
|
|
302
327
|
#### `<services>`
|
|
328
|
+
|
|
303
329
|
Custom JavaScript-based Android services (background processes).
|
|
304
330
|
|
|
305
331
|
```xml
|
|
@@ -309,9 +335,10 @@ Custom JavaScript-based Android services (background processes).
|
|
|
309
335
|
```
|
|
310
336
|
|
|
311
337
|
#### `<manifest>`
|
|
312
|
-
Ad-hoc [AndroidManifest.xml](http://developer.android.com/guide/topics/manifest/manifest-intro.html) elements.
|
|
313
338
|
|
|
314
|
-
|
|
339
|
+
Ad-hoc AndroidManifest.xml elements.
|
|
340
|
+
|
|
341
|
+
Set target/minimum SDK:
|
|
315
342
|
```xml
|
|
316
343
|
<android xmlns:android="http://schemas.android.com/apk/res/android">
|
|
317
344
|
<manifest>
|
|
@@ -321,7 +348,7 @@ Ad-hoc [AndroidManifest.xml](http://developer.android.com/guide/topics/manifest/
|
|
|
321
348
|
</android>
|
|
322
349
|
```
|
|
323
350
|
|
|
324
|
-
|
|
351
|
+
Screen density support:
|
|
325
352
|
```xml
|
|
326
353
|
<manifest>
|
|
327
354
|
<supports-screens
|
|
@@ -333,32 +360,32 @@ Ad-hoc [AndroidManifest.xml](http://developer.android.com/guide/topics/manifest/
|
|
|
333
360
|
</manifest>
|
|
334
361
|
```
|
|
335
362
|
|
|
336
|
-
|
|
363
|
+
Do not set `android:anyDensity="false"`.
|
|
337
364
|
|
|
338
|
-
|
|
365
|
+
Enable debugging:
|
|
339
366
|
```xml
|
|
340
367
|
<manifest>
|
|
341
368
|
<application android:debuggable="true" />
|
|
342
369
|
</manifest>
|
|
343
370
|
```
|
|
344
371
|
|
|
345
|
-
|
|
372
|
+
Install location:
|
|
346
373
|
```xml
|
|
347
374
|
<manifest android:installLocation="preferExternal">
|
|
348
375
|
<uses-sdk android:minSdkVersion="7" />
|
|
349
376
|
</manifest>
|
|
350
377
|
```
|
|
351
378
|
|
|
352
|
-
|
|
379
|
+
Values: `preferExternal`, `auto`, `internalOnly`
|
|
353
380
|
|
|
354
|
-
|
|
381
|
+
Request large heap:
|
|
355
382
|
```xml
|
|
356
383
|
<manifest>
|
|
357
384
|
<application android:largeHeap="true"/>
|
|
358
385
|
</manifest>
|
|
359
386
|
```
|
|
360
387
|
|
|
361
|
-
### Android-
|
|
388
|
+
### Android-specific properties
|
|
362
389
|
|
|
363
390
|
| Property | Type | Default | Description |
|
|
364
391
|
| -------------------------------------- | ------ | ------- | ------------------------------------------ |
|
|
@@ -375,7 +402,7 @@ Ad-hoc [AndroidManifest.xml](http://developer.android.com/guide/topics/manifest/
|
|
|
375
402
|
|
|
376
403
|
---
|
|
377
404
|
|
|
378
|
-
## iOS
|
|
405
|
+
## iOS section
|
|
379
406
|
|
|
380
407
|
```xml
|
|
381
408
|
<ti:app>
|
|
@@ -406,14 +433,16 @@ Ad-hoc [AndroidManifest.xml](http://developer.android.com/guide/topics/manifest/
|
|
|
406
433
|
### Elements
|
|
407
434
|
|
|
408
435
|
#### `<team-id>`
|
|
409
|
-
|
|
436
|
+
|
|
437
|
+
Since 5.0.0. Required for app extensions (share, watch, Siri).
|
|
410
438
|
|
|
411
439
|
```xml
|
|
412
440
|
<team-id>YOUR_TEAM_ID</team-id>
|
|
413
441
|
```
|
|
414
442
|
|
|
415
443
|
#### `<entitlements>`
|
|
416
|
-
|
|
444
|
+
|
|
445
|
+
Since 6.1.0. Target entitlements (merged with internal entitlements).
|
|
417
446
|
|
|
418
447
|
```xml
|
|
419
448
|
<entitlements>
|
|
@@ -427,7 +456,8 @@ Ad-hoc [AndroidManifest.xml](http://developer.android.com/guide/topics/manifest/
|
|
|
427
456
|
```
|
|
428
457
|
|
|
429
458
|
#### `<extensions>`
|
|
430
|
-
|
|
459
|
+
|
|
460
|
+
Since 5.0.0. iOS extensions.
|
|
431
461
|
|
|
432
462
|
```xml
|
|
433
463
|
<extensions>
|
|
@@ -444,6 +474,7 @@ Ad-hoc [AndroidManifest.xml](http://developer.android.com/guide/topics/manifest/
|
|
|
444
474
|
```
|
|
445
475
|
|
|
446
476
|
#### `<min-ios-ver>`
|
|
477
|
+
|
|
447
478
|
Minimum iOS version.
|
|
448
479
|
|
|
449
480
|
```xml
|
|
@@ -451,6 +482,7 @@ Minimum iOS version.
|
|
|
451
482
|
```
|
|
452
483
|
|
|
453
484
|
#### `<min-sdk-ver>`
|
|
485
|
+
|
|
454
486
|
Minimum Xcode version.
|
|
455
487
|
|
|
456
488
|
```xml
|
|
@@ -458,9 +490,10 @@ Minimum Xcode version.
|
|
|
458
490
|
```
|
|
459
491
|
|
|
460
492
|
#### `<plist>`
|
|
493
|
+
|
|
461
494
|
Settings for generated `Info.plist`. Uses key/value pairs.
|
|
462
495
|
|
|
463
|
-
|
|
496
|
+
Orientations:
|
|
464
497
|
```xml
|
|
465
498
|
<plist>
|
|
466
499
|
<dict>
|
|
@@ -479,7 +512,7 @@ Settings for generated `Info.plist`. Uses key/value pairs.
|
|
|
479
512
|
</plist>
|
|
480
513
|
```
|
|
481
514
|
|
|
482
|
-
|
|
515
|
+
Background modes:
|
|
483
516
|
```xml
|
|
484
517
|
<plist>
|
|
485
518
|
<dict>
|
|
@@ -497,7 +530,7 @@ Settings for generated `Info.plist`. Uses key/value pairs.
|
|
|
497
530
|
</plist>
|
|
498
531
|
```
|
|
499
532
|
|
|
500
|
-
|
|
533
|
+
Device capabilities:
|
|
501
534
|
```xml
|
|
502
535
|
<plist>
|
|
503
536
|
<dict>
|
|
@@ -529,17 +562,17 @@ Settings for generated `Info.plist`. Uses key/value pairs.
|
|
|
529
562
|
</plist>
|
|
530
563
|
```
|
|
531
564
|
|
|
532
|
-
|
|
565
|
+
Persistent WiFi:
|
|
533
566
|
```xml
|
|
534
567
|
<key>UIRequiresPersistentWiFi</key><true/>
|
|
535
568
|
```
|
|
536
569
|
|
|
537
|
-
|
|
570
|
+
Status bar style:
|
|
538
571
|
```xml
|
|
539
572
|
<key>UIStatusBarStyle</key><string>UIStatusBarStyleBlackTranslucent</string>
|
|
540
573
|
```
|
|
541
574
|
|
|
542
|
-
|
|
575
|
+
iOS 9 URL schemes:
|
|
543
576
|
```xml
|
|
544
577
|
<key>LSApplicationQueriesSchemes</key>
|
|
545
578
|
<array>
|
|
@@ -553,31 +586,34 @@ Settings for generated `Info.plist`. Uses key/value pairs.
|
|
|
553
586
|
```
|
|
554
587
|
|
|
555
588
|
#### `<use-app-thinning>`
|
|
556
|
-
|
|
589
|
+
|
|
590
|
+
Since 5.1.0. Enable App Thinning with Asset Catalog.
|
|
557
591
|
|
|
558
592
|
```xml
|
|
559
593
|
<use-app-thinning>true</use-app-thinning>
|
|
560
594
|
```
|
|
561
595
|
|
|
562
|
-
|
|
596
|
+
Use `Ti.Filesystem.getAsset()` to read images from Asset Catalog.
|
|
563
597
|
|
|
564
598
|
#### `<use-autolayout>`
|
|
565
|
-
|
|
599
|
+
|
|
600
|
+
Since 5.1.0. Enable iOS auto-layout engine.
|
|
566
601
|
|
|
567
602
|
```xml
|
|
568
603
|
<use-autolayout>true</use-autolayout>
|
|
569
604
|
```
|
|
570
605
|
|
|
571
606
|
#### `<log-server-port>`
|
|
572
|
-
|
|
607
|
+
|
|
608
|
+
Since 6.0.0. Custom log server port.
|
|
573
609
|
|
|
574
610
|
```xml
|
|
575
611
|
<log-server-port>27973</log-server-port>
|
|
576
612
|
```
|
|
577
613
|
|
|
578
|
-
### Unsupported Info.plist
|
|
614
|
+
### Unsupported Info.plist keys
|
|
579
615
|
|
|
580
|
-
These are auto-generated by Titanium and
|
|
616
|
+
These are auto-generated by Titanium and cannot be overridden:
|
|
581
617
|
- `CFBundleDisplayName`
|
|
582
618
|
- `CFBundleExecutable`
|
|
583
619
|
- `CFBundleIconFile`
|
|
@@ -594,7 +630,7 @@ These are auto-generated by Titanium and CANNOT be overridden:
|
|
|
594
630
|
|
|
595
631
|
## Google Play Services
|
|
596
632
|
|
|
597
|
-
|
|
633
|
+
Since 9.0.0. Automatic validation of Google Play Services. Disable if needed:
|
|
598
634
|
|
|
599
635
|
```xml
|
|
600
636
|
<property name="ti.playservices.validate.on.startup" type="bool">false</property>
|
|
@@ -602,9 +638,9 @@ These are auto-generated by Titanium and CANNOT be overridden:
|
|
|
602
638
|
|
|
603
639
|
---
|
|
604
640
|
|
|
605
|
-
## timodule.xml (
|
|
641
|
+
## timodule.xml (module configuration)
|
|
606
642
|
|
|
607
|
-
Used in custom Titanium modules. Follows same structure as `tiapp.xml` but only contains platform-specific config (mainly Android).
|
|
643
|
+
Used in custom Titanium modules. Follows the same structure as `tiapp.xml` but only contains platform-specific config (mainly Android).
|
|
608
644
|
|
|
609
645
|
Supports token substitution for app-specific values:
|
|
610
646
|
|
|
@@ -625,27 +661,27 @@ Becomes (for app with ID `com.example.app`):
|
|
|
625
661
|
android:protectionLevel="signature" />
|
|
626
662
|
```
|
|
627
663
|
|
|
628
|
-
|
|
629
|
-
- `${tiapp.properties['id']}
|
|
630
|
-
- `${tiapp.properties['name']}
|
|
631
|
-
- `${tiapp.properties['version']}
|
|
632
|
-
- `${tiapp.properties['publisher']}
|
|
664
|
+
Access properties:
|
|
665
|
+
- `${tiapp.properties['id']}`: app ID
|
|
666
|
+
- `${tiapp.properties['name']}`: app name
|
|
667
|
+
- `${tiapp.properties['version']}`: app version
|
|
668
|
+
- `${tiapp.properties['publisher']}`: publisher
|
|
633
669
|
|
|
634
670
|
---
|
|
635
671
|
|
|
636
|
-
## SDK
|
|
672
|
+
## SDK version precedence
|
|
637
673
|
|
|
638
674
|
The CLI checks SDK version in this order:
|
|
639
675
|
|
|
640
676
|
1. `tiapp.xml` `<sdk-version>` tag
|
|
641
677
|
2. `--sdk` CLI option
|
|
642
678
|
3. `app.sdk` config setting (`ti config app.sdk <version>`)
|
|
643
|
-
4. SDK
|
|
679
|
+
4. Selected SDK (`ti sdk select`)
|
|
644
680
|
|
|
645
681
|
---
|
|
646
682
|
|
|
647
683
|
## References
|
|
648
684
|
|
|
649
|
-
-
|
|
650
|
-
-
|
|
651
|
-
-
|
|
685
|
+
- Android Manifest docs: http://developer.android.com/guide/topics/manifest/manifest-intro.html
|
|
686
|
+
- iOS Info.plist Key Reference: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html
|
|
687
|
+
- Java package naming: http://download.oracle.com/javase/tutorial/java/package/namingpkgs.html
|