Commit 6ce992d
feat: perry/widget full iOS + Android + watchOS + Wear OS support
Extend the widget system from iOS-only static widgets to a full
four-platform story with config, native data fetching, and new
components.
New crates: perry-codegen-glance (Android Glance widgets),
perry-codegen-wear-tiles (Wear OS Tiles). HIR extended with
WidgetConfigParam, ForEach/Divider/Label/FamilySwitch/Gauge nodes,
Array/Optional/Object field types, placeholder data, and native
provider support. SwiftUI codegen enhanced with AppIntentConfiguration,
native FFI glue, nested Codable structs, and Gauge emission. Four new
compile targets: --target android-widget, watchos-widget,
watchos-widget-simulator, wearos-tile. Documentation expanded from
3 to 8 pages covering all platforms.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dff644f commit 6ce992d
29 files changed
Lines changed: 3840 additions & 165 deletions
File tree
- crates
- perry-codegen-glance
- src
- perry-codegen-swiftui/src
- perry-codegen-wear-tiles
- src
- perry-hir/src
- perry-runtime/src
- perry
- src/commands
- docs/src
- cli
- widgets
- examples
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments