Commit 9d76c06
feat(imagepicker)!: migrate to @nativescript-community/perms v3
perms v3 changed single-permission `request()` to resolve to a `Status`
string instead of the v2 `[Status, boolean]` tuple; the multi-permission
`MultiResult` shape is unchanged.
Under v3 `mapResult` took the MultiResult branch for a plain status
string, found none of the media permission keys on it, and returned
`authorized: true` regardless of what the user chose.
BREAKING CHANGE: `AuthorizationResult.details` is now `MultiResult | Status`
rather than `MultiResult | Result`, and perms v3 is required. Apps pinning
perms v2 must upgrade alongside this release.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 22fbbcb commit 9d76c06
2 files changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 160 | + | |
| 161 | + | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
0 commit comments