Commit 966a132
fix: Remove AssetsLibrary usage for iOS 26 compatibility (#366)
## Summary
- Remove the AssetsLibrary framework import and the three ALAsset-based
methods on `SYMetadata` (`metadataWithAsset:`, `metadataWithAssetURL:`,
`dictionaryWithAssetURL:`) — AssetsLibrary is removed from the iOS 26
SDK.
- These methods have zero callers in this repository (verified via
full-tree grep). The plugin's own metadata flow uses only
`metadataWithFileURL:` / `metadataWithImageData:` /
`dataWithImageData:andMetadata:`, all backed by `CGImageSource` and
unaffected.
## Relationship to #343
#343 also targets iOS 26 but migrates the ALAsset methods to PHAsset,
adding threading/iCloud/availability infrastructure for API that is not
reachable from the plugin. This PR takes the minimal path — delete the
dead code — since restoring PHAsset-equivalent functionality can happen
in a follow-up if any external consumer ever needs it.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f174eb3 commit 966a132
2 files changed
Lines changed: 0 additions & 53 deletions
File tree
- packages/flutter_image_compress_common/ios/Classes/SYPictureMetadata
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
75 | | - | |
76 | | - | |
77 | 73 | | |
78 | 74 | | |
79 | 75 | | |
80 | | - | |
81 | | - | |
82 | 76 | | |
83 | 77 | | |
84 | 78 | | |
| |||
Lines changed: 0 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
46 | 42 | | |
47 | 43 | | |
48 | 44 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 45 | | |
66 | 46 | | |
67 | 47 | | |
| |||
144 | 124 | | |
145 | 125 | | |
146 | 126 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 127 | | |
175 | 128 | | |
176 | 129 | | |
| |||
0 commit comments