Repository navigation
Commit e625f1e
feat(mobile): render the Android subscription widget with expo-widgets
expo-widgets 58 runs Android home-screen widgets from the same JS layout
model as iOS, so the hand-written RemoteViews module is replaced by a
Compose layout in SubscriptionUsage.android.tsx. One TSX implementation per
platform now feeds one snapshot pipeline, and the widget follows the
device's Material palette.
What the RemoteViews module did that expo-widgets does not:
- Expiry re-render while the app is closed. Kept as a small
t3-widget-expiry module that arms one inexact alarm per deadline and
sends ACTION_APPWIDGET_UPDATE to the generated provider, which re-runs
the stored snapshot through the widget runtime.
- Cold-start tap. expo-widgets delivers taps to the running app's
interaction listener; there is no Android counterpart to widgetURL. A tap
opens Usage while T3 is alive and otherwise only refreshes the widget.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent 919588c commit e625f1e
21 files changed
Lines changed: 360 additions & 286 deletions
File tree
- apps/mobile
- modules
- t3-subscription-widget
- android/src/main
- java/expo/modules/t3subscriptionwidget
- res
- drawable
- layout
- values-night
- values
- xml
- t3-widget-expiry
- android
- src/main
- java/expo/modules/t3widgetexpiry
- src/widgets
- docs/user
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
163 | 183 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 184 | | |
172 | 185 | | |
173 | 186 | | |
174 | 187 | | |
175 | 188 | | |
176 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
177 | 192 | | |
178 | 193 | | |
179 | 194 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments