Commit f173efe
cn1-ai-*: drop win modules, auto-set plist hints in sim, theme ChatView
Three review-driven fixes:
1. Remove the win/ module from every cn1-ai-* lib. UWP is not a
runtime target -- the C# stubs were dead weight inside every
.cn1lib. Drop the module from the root pom, the lib pom, the
generator, and delete the existing win/ trees. .cn1lib archives
now ship 6 entries (was 7).
2. Replace `codename1.arg.ios.plistInject` build hints with implicit
simulator-side injection. Each JavaSE NativeXxxImpl constructor
calls a one-shot `ensureSimulatorHints()` that:
- reads `getProjectBuildHints()` (returns null off-simulator, so
this is a no-op on real devices)
- sets the default value ONLY when the hint is absent -- never
overwrites a developer-customised string
This way the developer never has to copy a Camera/Microphone
usage description out of docs into their properties file, but
stays in full control of the wording. Only mlkit-text, barcode,
and face declared `NSCameraUsageDescription` in the previous
plistInject form; same coverage, now via the helper.
3. Style ChatView in the modern themes. The earlier ChatView
screenshot rendered without bubble fills because the default
themes had no ChatBubble*/ChatInput*/ChatTypingIndicator
UIIDs. iOSModern now uses iMessage-style accent fills for user
bubbles + neutral fills for assistant bubbles + a centred muted
row for system; AndroidMaterial mirrors with Material 3 primary
container / surface variant tokens. ChatView itself now wraps
each bubble in a FlowLayout row (USER -> RIGHT, ASSISTANT ->
LEFT, SYSTEM -> CENTER) so the bubble's visible width tracks
its content rather than spanning the chat surface.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 12ff8fa commit f173efe
64 files changed
Lines changed: 254 additions & 1020 deletions
File tree
- CodenameOne/src/com/codename1/components
- Themes
- maven
- cn1-ai-mlkit-barcode
- common
- javase/src/main/java/com/codename1/ai/mlkit/barcode
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/barcode
- cn1-ai-mlkit-docscan
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/docscan
- cn1-ai-mlkit-face
- common
- javase/src/main/java/com/codename1/ai/mlkit/face
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/face
- cn1-ai-mlkit-labeling
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/labeling
- cn1-ai-mlkit-langid
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/langid
- cn1-ai-mlkit-pose
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/pose
- cn1-ai-mlkit-segmentation
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/segmentation
- cn1-ai-mlkit-smartreply
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/smartreply
- cn1-ai-mlkit-text
- common
- javase/src/main/java/com/codename1/ai/mlkit/text
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/text
- cn1-ai-mlkit-translate
- lib
- win
- src/main/csharp/com/codename1/ai/mlkit/translate
- cn1-ai-stablediffusion
- lib
- win
- src/main/csharp/com/codename1/ai/imagegen
- cn1-ai-tflite
- lib
- win
- src/main/csharp/com/codename1/ai/tflite
- cn1-ai-whisper
- lib
- win
- src/main/csharp/com/codename1/ai/whisper
- native-themes
- android-material
- ios-modern
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
116 | 127 | | |
117 | 128 | | |
118 | | - | |
| 129 | + | |
119 | 130 | | |
120 | 131 | | |
121 | 132 | | |
| |||
193 | 204 | | |
194 | 205 | | |
195 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
196 | 217 | | |
Binary file not shown.
Binary file not shown.
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
4 | 21 | | |
5 | 22 | | |
6 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 77 | | |
91 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
This file was deleted.
Lines changed: 0 additions & 8 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 77 | | |
91 | 78 | | |
0 commit comments