@maccesar/titools 2.2.4 → 2.2.9
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 +23 -23
- package/agents/ti-pro.md +17 -17
- package/lib/commands/update.js +6 -14
- package/lib/downloader.js +17 -2
- 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,129 +1,121 @@
|
|
|
1
|
-
# Titanium
|
|
1
|
+
# Titanium resources
|
|
2
2
|
|
|
3
3
|
Community resources, support channels, tools, and learning materials for Titanium developers.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
2. [Example Code](#example-code)
|
|
7
|
-
3. [Community Modules](#community-modules)
|
|
8
|
-
4. [Social Media](#social-media)
|
|
9
|
-
5. [Learning Resources](#learning-resources)
|
|
5
|
+
## Developer support
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Developer Support
|
|
14
|
-
|
|
15
|
-
### Official Channels
|
|
7
|
+
### Official channels
|
|
16
8
|
|
|
17
|
-
-
|
|
18
|
-
-
|
|
9
|
+
- GitHub Discussions: https://github.com/tidev/titanium-sdk/discussions
|
|
10
|
+
- Slack: https://tidev.slack.com/
|
|
19
11
|
- Join at: https://tidev.slack.com/
|
|
20
12
|
- Channels for help, modules, announcements, and more
|
|
21
13
|
|
|
22
|
-
### Module
|
|
14
|
+
### Module resources
|
|
23
15
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
16
|
+
- Module Search: https://modules.titaniumsdk.com/
|
|
17
|
+
- Ti.Utils: https://github.com/TimanMax/Ti.Utils
|
|
18
|
+
- From Zero to App: https://fromzerotoapp.com/
|
|
27
19
|
|
|
28
20
|
### Documentation
|
|
29
21
|
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
22
|
+
- Titanium SDK Docs: https://titaniumsdk.com/
|
|
23
|
+
- Alloy Framework Docs: https://titaniumsdk.com/guide/Alloy_Framework/
|
|
24
|
+
- This skill (`ti-guides`): `../SKILL.md`
|
|
33
25
|
|
|
34
26
|
---
|
|
35
27
|
|
|
36
|
-
## Example
|
|
28
|
+
## Example code
|
|
37
29
|
|
|
38
|
-
### Official
|
|
30
|
+
### Official repositories
|
|
39
31
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
32
|
+
- tidev on GitHub: https://github.com/tidev
|
|
33
|
+
- titanium-mobile: https://github.com/tidev/titanium-mobile
|
|
34
|
+
- titanium-cli: https://github.com/tidev/titanium-cli
|
|
35
|
+
- titanium-code-processor: https://github.com/tidev/titanium-code-processor
|
|
44
36
|
|
|
45
|
-
### Sample
|
|
37
|
+
### Sample applications
|
|
46
38
|
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
39
|
+
- Ti.Bluetooth: https://github.com/mwaylabs/ti.bluetooth
|
|
40
|
+
- Ti.Map: https://github.com/tidev/ti.map
|
|
41
|
+
- KitchenSink: https://github.com/tidev/KitchenSink
|
|
50
42
|
|
|
51
|
-
### Community
|
|
43
|
+
### Community projects
|
|
52
44
|
|
|
53
|
-
Search GitHub for "titanium" to find
|
|
45
|
+
Search GitHub for "titanium" to find open source modules and apps.
|
|
54
46
|
|
|
55
47
|
---
|
|
56
48
|
|
|
57
|
-
## Community
|
|
49
|
+
## Community modules
|
|
58
50
|
|
|
59
|
-
### Finding
|
|
51
|
+
### Finding modules
|
|
60
52
|
|
|
61
|
-
1.
|
|
62
|
-
2.
|
|
63
|
-
3.
|
|
53
|
+
1. Module Search: https://modules.titaniumsdk.com/
|
|
54
|
+
2. npm: https://www.npmjs.com/search?q=titanium
|
|
55
|
+
3. GitHub search: https://github.com/search?q=titanium+module
|
|
64
56
|
|
|
65
|
-
### Creating
|
|
57
|
+
### Creating modules
|
|
66
58
|
|
|
67
|
-
See
|
|
59
|
+
See `hyperloop-native-access.md` for native module development:
|
|
68
60
|
- Android modules (Java/Kotlin)
|
|
69
61
|
- iOS modules (Objective-C/Swift)
|
|
70
62
|
- Module packaging and distribution
|
|
71
63
|
|
|
72
|
-
### Popular
|
|
64
|
+
### Popular modules
|
|
73
65
|
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
66
|
+
- ti.map: native maps (iOS and Android)
|
|
67
|
+
- ti.admob: AdMob ads
|
|
68
|
+
- ti.imagefactory: image processing
|
|
69
|
+
- ti.facebook: Facebook integration
|
|
70
|
+
- ti.media: extended media APIs
|
|
79
71
|
|
|
80
72
|
---
|
|
81
73
|
|
|
82
|
-
## Social
|
|
74
|
+
## Social media
|
|
83
75
|
|
|
84
|
-
### Official
|
|
76
|
+
### Official accounts
|
|
85
77
|
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
78
|
+
- Bluesky: https://bsky.app/profile/titaniumsdk.com
|
|
79
|
+
- X (Twitter):
|
|
80
|
+
- https://x.com/tidevio
|
|
81
|
+
- https://x.com/TitaniumSDK
|
|
90
82
|
|
|
91
83
|
### Community
|
|
92
84
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
85
|
+
- Reddit: https://www.reddit.com/r/titanium/
|
|
86
|
+
- Stack Overflow: https://stackoverflow.com/questions/tagged/titanium
|
|
95
87
|
|
|
96
88
|
---
|
|
97
89
|
|
|
98
|
-
## Learning
|
|
90
|
+
## Learning resources
|
|
99
91
|
|
|
100
|
-
### Getting
|
|
92
|
+
### Getting started
|
|
101
93
|
|
|
102
|
-
1.
|
|
103
|
-
2.
|
|
104
|
-
3.
|
|
105
|
-
4.
|
|
94
|
+
1. Hello World: see `hello-world.md` in this skill
|
|
95
|
+
2. JavaScript Primer: see `javascript-primer.md` in this skill
|
|
96
|
+
3. Alloy Framework: see the `alloy-guides` skill
|
|
97
|
+
4. Sample apps: clone and study KitchenSink
|
|
106
98
|
|
|
107
|
-
### Books and
|
|
99
|
+
### Books and guides
|
|
108
100
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
101
|
+
- Titanium Up & Running
|
|
102
|
+
- Titanium Pocket Reference
|
|
103
|
+
- Alloy Guides (official Alloy framework documentation)
|
|
112
104
|
|
|
113
|
-
### Video
|
|
105
|
+
### Video tutorials
|
|
114
106
|
|
|
115
|
-
-
|
|
116
|
-
-
|
|
107
|
+
- From Zero to App: https://fromzerotoapp.com/
|
|
108
|
+
- YouTube results: https://www.youtube.com/results?search_query=titanium+mobile
|
|
117
109
|
|
|
118
110
|
---
|
|
119
111
|
|
|
120
112
|
## Tools and IDEs
|
|
121
113
|
|
|
122
|
-
### IDE
|
|
114
|
+
### IDE support
|
|
123
115
|
|
|
124
|
-
-
|
|
116
|
+
- VS Code: https://code.visualstudio.com/ (with Titanium extensions)
|
|
125
117
|
|
|
126
|
-
### CLI
|
|
118
|
+
### CLI tools
|
|
127
119
|
|
|
128
120
|
```bash
|
|
129
121
|
# Create new project
|
|
@@ -139,35 +131,35 @@ ti build -p android
|
|
|
139
131
|
ti build -T device
|
|
140
132
|
```
|
|
141
133
|
|
|
142
|
-
See
|
|
134
|
+
See `cli-reference.md` for complete CLI documentation.
|
|
143
135
|
|
|
144
136
|
---
|
|
145
137
|
|
|
146
138
|
## Contributing
|
|
147
139
|
|
|
148
|
-
### Report
|
|
140
|
+
### Report bugs
|
|
149
141
|
|
|
150
|
-
-
|
|
151
|
-
-
|
|
142
|
+
- GitHub Issues: https://github.com/tidev/titanium-sdk/issues
|
|
143
|
+
- JIRA Archive: https://github.com/tidev/jira-archive
|
|
152
144
|
|
|
153
|
-
### Contribute
|
|
145
|
+
### Contribute code
|
|
154
146
|
|
|
155
|
-
-
|
|
156
|
-
- Follow coding standards
|
|
147
|
+
- Pull Request Guide: https://github.com/tidev/titanium-mobile/blob/master/CONTRIBUTING.md
|
|
148
|
+
- Follow coding standards in `style-and-conventions.md`
|
|
157
149
|
|
|
158
150
|
---
|
|
159
151
|
|
|
160
|
-
## Best
|
|
152
|
+
## Best practices for getting help
|
|
161
153
|
|
|
162
|
-
1.
|
|
163
|
-
2.
|
|
164
|
-
3.
|
|
165
|
-
4.
|
|
166
|
-
5.
|
|
154
|
+
1. Search first: check docs, GitHub issues, Stack Overflow.
|
|
155
|
+
2. Be specific: include code, error messages, and platform info.
|
|
156
|
+
3. Provide a minimal reproducible example.
|
|
157
|
+
4. Use Slack for quick questions and GitHub Discussions for longer threads.
|
|
158
|
+
5. Give back when you can.
|
|
167
159
|
|
|
168
160
|
---
|
|
169
161
|
|
|
170
|
-
## Resource
|
|
162
|
+
## Resource checklist
|
|
171
163
|
|
|
172
164
|
For new Titanium developers:
|
|
173
165
|
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
# Style and
|
|
1
|
+
# Style and conventions reference
|
|
2
2
|
|
|
3
|
-
## 1. Naming
|
|
4
|
-
- **Variables**: `nounCategory` (e.g., `personName`, `buttonSubmit`).
|
|
5
|
-
- **Functions**: `verbCategory` (e.g., `getPersonName`, `doSync`).
|
|
6
|
-
- **Classes/Constructors**: `PascalCase` (e.g., `User`, `NetClient`).
|
|
7
|
-
- **Factories**: Prefix with `create` (e.g., `createWidget`).
|
|
8
|
-
- **Namespaces**: Use capitalized words (e.g., `App.UI.Widget`, `App.Network.Request`). Avoid lowercase for major namespaces (e.g., use `App.UI` instead of `app.ui`).
|
|
9
|
-
- **Hungarian Notation**: Titanium SDK does not support the use of Hungarian Notation.
|
|
3
|
+
## 1. Naming conventions
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
5
|
+
- Variables: `nounCategory` (for example, `personName`, `buttonSubmit`).
|
|
6
|
+
- Functions: `verbCategory` (for example, `getPersonName`, `doSync`).
|
|
7
|
+
- Classes/constructors: `PascalCase` (for example, `User`, `NetClient`).
|
|
8
|
+
- Factories: prefix with `create` (for example, `createWidget`).
|
|
9
|
+
- Namespaces: use capitalized words (for example, `App.UI.Widget`, `App.Network.Request`). Avoid lowercase for major namespaces (use `App.UI`, not `app.ui`).
|
|
10
|
+
- Hungarian notation: not supported by the Titanium SDK.
|
|
11
|
+
|
|
12
|
+
## 2. Language rules
|
|
13
|
+
|
|
14
|
+
- Semicolons: official SDK guides require semicolons, but the `ti-expert` standard omits them and lets ASI handle it.
|
|
15
|
+
- `this` keyword: use with care. It may not refer to the object you expect.
|
|
14
16
|
|
|
15
17
|
## 3. Formatting
|
|
16
|
-
|
|
18
|
+
|
|
19
|
+
- Indentation: both K&R/1TBS and Allman styles are acceptable. Consistency matters. Do not mix styles in the same project.
|
|
17
20
|
```javascript
|
|
18
|
-
// K&R/1TBS
|
|
21
|
+
// K&R/1TBS style
|
|
19
22
|
if (x < 10) {
|
|
20
23
|
if (y > 10) {
|
|
21
24
|
// do this
|
|
@@ -25,7 +28,7 @@ if (x < 10) {
|
|
|
25
28
|
}
|
|
26
29
|
```
|
|
27
30
|
```javascript
|
|
28
|
-
// Allman
|
|
31
|
+
// Allman style
|
|
29
32
|
if (x < 10)
|
|
30
33
|
{
|
|
31
34
|
if (y > 10)
|
|
@@ -38,28 +41,29 @@ else
|
|
|
38
41
|
// do this
|
|
39
42
|
}
|
|
40
43
|
```
|
|
41
|
-
-
|
|
44
|
+
- Operators: add a single space around operators.
|
|
42
45
|
```javascript
|
|
43
46
|
const fullName = firstName + ' ' + lastName
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
Return statement placement:
|
|
50
|
+
Do not put `return` on its own line followed by an object literal. JavaScript will insert a semicolon automatically and return `undefined`.
|
|
48
51
|
```javascript
|
|
49
|
-
//
|
|
52
|
+
// Wrong
|
|
50
53
|
return
|
|
51
54
|
{
|
|
52
55
|
foo: 'bar'
|
|
53
56
|
}
|
|
54
57
|
|
|
55
|
-
//
|
|
58
|
+
// Correct
|
|
56
59
|
return {
|
|
57
60
|
foo: 'bar'
|
|
58
61
|
}
|
|
59
62
|
```
|
|
60
63
|
|
|
61
|
-
## 4. Control
|
|
62
|
-
|
|
64
|
+
## 4. Control statements
|
|
65
|
+
|
|
66
|
+
Switch statements should have a single space before the opening parenthesis and a single space after the closing parenthesis. Switch content is indented with one tab; content in each case is indented one tab as well.
|
|
63
67
|
```javascript
|
|
64
68
|
switch (someTest) {
|
|
65
69
|
case 1:
|
|
@@ -73,13 +77,15 @@ switch (someTest) {
|
|
|
73
77
|
}
|
|
74
78
|
```
|
|
75
79
|
|
|
76
|
-
## 5. Primitive
|
|
77
|
-
- Avoid using primitive type object constructors (e.g., `new String()`).
|
|
78
|
-
- Use template literals or single space concatenation.
|
|
80
|
+
## 5. Primitive types
|
|
79
81
|
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
82
|
+
- Avoid using primitive type object constructors (for example, `new String()`).
|
|
83
|
+
- Use template literals or single-space concatenation.
|
|
84
|
+
|
|
85
|
+
## 6. Comments and documentation
|
|
86
|
+
|
|
87
|
+
- Single-line comments: required to reduce programmer error. Inline statement comments should be used at a minimum or not at all.
|
|
88
|
+
- JSDoc/block comments: required for documenting functions and classes.
|
|
83
89
|
```javascript
|
|
84
90
|
// Calculate position using initial
|
|
85
91
|
// and offset x coordinates.
|
|
@@ -92,5 +98,6 @@ function getCustomer(customerName) {}
|
|
|
92
98
|
```
|
|
93
99
|
|
|
94
100
|
## 7. References
|
|
101
|
+
|
|
95
102
|
- Douglas Crockford's JavaScript Code Conventions
|
|
96
|
-
- Google's JavaScript Style Guide
|
|
103
|
+
- Google's JavaScript Style Guide: https://google.github.io/styleguide/jsguide.html
|