GitToTheHub opened a new pull request, #660: URL: https://github.com/apache/cordova-plugin-file/pull/660
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected iOS ### Motivation and Context <!-- Why is this change required? What problem does it solve? --> <!-- If it fixes an open issue, please link to the issue here. --> [AssetsLibrary](https://developer.apple.com/documentation/assetslibrary) is deprecated since iOS 9 and unavailable when the app deployment target is iOS 26+, which causes compile failures (see #652). This code path only existed to resolve legacy `asset-library://...` media URLs (Photos-managed pictures/videos) via `cdvfile://localhost/assets-library/....`. Apple recommends to use the [PhotoKit framework](https://developer.apple.com/documentation/PhotoKit), but which is not a drop-in replacement for this legacy URL model and would require broader behavior changes beyond this fix. Therefore this PR focuses on buildability and compatibility: keep legacy behavior for lower deployment targets, and exclude the AssetsLibrary-based path for deployment target 26+. Other changes: - Suppress deprecation warnings for `CDVAssetLibrary.m`. The class will not be included on the `deploymentTarget` 26, so this deprecation warnings don't need to be fixed. - Document `CDVAssetLibraryFilesystem.h` - Add documentation to `README.md` about `asset-library://...` urls ### Description <!-- Describe your changes in detail --> ### Testing <!-- Please describe in detail how you tested your changes. --> ### Checklist - [ ] I've run the tests to see all new and existing tests pass - [ ] I added automated test coverage as appropriate for this change - [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`) - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/)) - [ ] I've updated the documentation if necessary -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
