Commit 344a840
authored
Update Compose BOM to 2026.03.00 and address deprecations (#1667)
This PR updates the Compose BOM to `2026.03.00` across all samples and
addresses several deprecations introduced by recent Compose and Jetpack
library updates.
### Summary of Changes
1. **Compose BOM Update**:
* Updated `androidx-compose-bom` to `2026.03.00` for all projects
(`JetLagged`, `JetNews`, `Jetsnack`, `Reply`, `Jetcaster`, `Jetchat`).
* Bumps core Compose libraries (animation, foundation, runtime, ui,
material) to `1.10.5`.
2. **Library Updates**:
* Updated `androidx.activity:activity-compose` to `1.13.0`.
* Updated `androidx.lifecycle:lifecycle-compose` and
`androidx.lifecycle:lifecycle-runtime-compose` to `2.10.0`.
* Updated `androidx.navigation:navigation-compose` to `2.9.7`.
* Updated `androidx.hilt:hilt-navigation-compose` to `1.3.0`.
* Updated `androidx.wear.compose:compose-material` to `1.5.6`.
3. **Addressed Deprecations & Best Practices**:
* **JetLagged & JetNews**: Migrated deprecated `TabRow` and
`ScrollableTabRow` components to the new Material 3 `PrimaryTabRow` and
`PrimaryScrollableTabRow`. Updated `tabIndicatorOffset` to use the new
`TabIndicatorScope`.
* **Reply**: Replaced deprecated `WindowWidthSizeClass` equality checks
with the new recommended `isWidthAtLeastBreakpoint()` scaling logic.
Removed deprecated manual system UI flag configurations
(`window.statusBarColor` and `WindowCompat.getInsetsController`), fully
relying on `enableEdgeToEdge()` in `MainActivity` for proper
edge-to-edge drawing and contrast.
* **Jetsnack**: Updated the Material 3 `ColorScheme` constructor to
include 12 new required 'fixed' container roles for theming.
* **Jetcaster**:
* Updated 15 occurrences of `hiltViewModel()` to use the new dedicated
package (`androidx.hilt.lifecycle.viewmodel.compose`).
* Migrated focus change properties in TV UI components from
`enter`/`exit` to `onEnter`/`onExit`.
* Fixed `WindowSizeClass.compute` deprecations by adapting to the
required breakpoint system (`computeWindowSizeClass` and
`isWidthAtLeastBreakpoint`).
* Updated `:wear` module `compileSdk` to `36` to satisfy new transitive
requirements for `activity-compose` 1.13.0.
### Validation
* Clean builds and unit tests passed for all projects.
* Instrumented tests passed on emulator for `JetNews`, `Jetsnack`, and
`Reply`.36 files changed
Lines changed: 91 additions & 112 deletions
File tree
- JetLagged
- app/src/main/java/com/example/jetlagged/sleep
- gradle
- JetNews
- app/src/main/java/com/example/jetnews/ui/interests
- gradle
- Jetcaster
- gradle
- mobile/src/main/java/com/example/jetcaster
- ui
- home
- player
- util
- tv/src/main/java/com/example/jetcaster/tv/ui
- component
- discover
- episode
- library
- player
- podcast
- search
- wear
- src/main/java/com/example/jetcaster/ui
- episode
- latest_episodes
- library
- player
- podcasts
- podcast
- queue
- Jetchat
- app/src/main/java/com/example/compose/jetchat
- conversation
- profile
- gradle
- Jetsnack
- app/src/main/java/com/example/jetsnack/ui/theme
- gradle
- Reply
- app/src/main/java/com/example/reply/ui
- theme
- gradle
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | | - | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Lines changed: 11 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| |||
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
159 | 149 | | |
160 | 150 | | |
161 | 151 | | |
| |||
261 | 251 | | |
262 | 252 | | |
263 | 253 | | |
264 | | - | |
| 254 | + | |
265 | 255 | | |
266 | 256 | | |
267 | 257 | | |
| |||
371 | 361 | | |
372 | 362 | | |
373 | 363 | | |
374 | | - | |
| 364 | + | |
375 | 365 | | |
376 | 366 | | |
377 | 367 | | |
| |||
400 | 390 | | |
401 | 391 | | |
402 | 392 | | |
403 | | - | |
| 393 | + | |
404 | 394 | | |
405 | 395 | | |
406 | 396 | | |
| |||
758 | 748 | | |
759 | 749 | | |
760 | 750 | | |
761 | | - | |
762 | | - | |
763 | 751 | | |
764 | 752 | | |
765 | 753 | | |
766 | 754 | | |
767 | 755 | | |
768 | | - | |
| 756 | + | |
769 | 757 | | |
770 | 758 | | |
771 | 759 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
| 929 | + | |
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments