Commit 52444a2
authored
chore: upgrade 7 major dependencies with API migrations (#194)
* chore: upgrade 66 package dependencies and fix null-aware element lints
Ran flutter pub upgrade to bring all packages to latest within existing
semver constraints (e.g. riverpod 3.1->3.3, drift 2.30->2.31,
go_router 17.0->17.2, lints 6.0->6.1). Fixed use_null_aware_elements
lint violations surfaced by lints 6.1.0 upgrade.
* fix: pin device_info_plus to 12.3.0 to fix iOS build
v12.4.0 calls NSProcessInfo.isiOSAppOnVision which is unavailable in
Xcode 16.2's SDK, causing a compile error on iOS. Pin back to 12.3.0
via dependency_overrides until upstream fixes the availability guard.
* feat: upgrade 7 direct dependencies with breaking API migrations
Upgrade major versions:
- file_picker 10.x -> 11.x (FilePicker.platform removed, use static methods)
- flutter_local_notifications 18.x -> 21.x (positional -> named params)
- flutter_contacts 1.x -> 2.x (static -> sub-API pattern)
- desktop_drop 0.4.x -> 0.7.x (XFile -> DropItem)
- googleapis 15.x -> 16.x
- native_exif 0.6.x -> 0.7.x
- timezone 0.10.x -> 0.11.x
* fix: bump desugar_jdk_libs to 2.1.4 for flutter_local_notifications 21.x
flutter_local_notifications 21.x requires desugar_jdk_libs >= 2.1.4
but the project had 2.0.4, causing Android build failure.
* test: add coverage for FilePicker API migration and rename test helper
Add MockFilePickerPlatform to exercise FilePicker.saveFile/pickFiles
code paths across CSV, Excel, KML, and file_export_utils services.
Rename _xFileFromBytes to _dropItemFromBytes in drop target test to
match the desktop_drop 0.7.x DropItem type.
* refactor: centralise FilePickerPlatform src/ import in mock helper
Re-export FilePickerPlatform from mock_file_picker_platform.dart so
test files avoid direct dependency on file_picker's internal src/ path.1 parent 7eb7cca commit 52444a2
25 files changed
Lines changed: 312 additions & 86 deletions
File tree
- android/app
- ios
- lib
- core/services
- export
- csv
- excel
- kml
- pdf
- uddf
- features
- backup/presentation/pages
- buddies/presentation/widgets
- dive_import/presentation/providers
- settings/presentation/providers
- universal_import/presentation/providers
- macos
- Flutter
- test
- core/services/export
- csv
- helpers
- windows/flutter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
| 274 | + | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
| |||
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
225 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
233 | | - | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
0 commit comments