breautek commented on issue #892: URL: https://github.com/apache/cordova-plugin-camera/issues/892#issuecomment-2241143497
You're using severely out-dated platform and plugins. API 34 support comes with cordova-android@13. Since version 10, there's been several breaking changes to keep up with upstream breaking changes in the Android SDK. See the following blog posts for breaking changes / migration notes. - [cordova-android@11](https://cordova.apache.org/announcements/2022/07/12/cordova-android-release-11.0.0.html) - cordova-android@12 has no significant breaking changes that won't be covered by cordova-android@13. Except for NodeJS 14 support is dropped, the new minimum NodeJS is 16.13. Recommended version is to use NodeJS LTS (Currently NodeJS 20) - [cordova-android@13](https://cordova.apache.org/announcements/2024/05/23/cordova-android-13.0.0.html) (cordova-android@13 targets SDK 34, which requires a lot of other environment updates, including JDK 17, Gradle 8, etc) These updates will break several of your plugins which will have updates for. > cordova-plugin-whitelist 1.3.5 This plugin is obsolete since cordova-anroid@11 and is effectively included under the core platform as `allow-list`. The access/allow directives in the config were not changed. > cordova-plugin-splashscreen 5.0.2 This plugin is now also obsolete except for the browser platform since cordova-android@11. If you also maintain a browser platform, then upgrade this package to the latest version which only includes an implementation for the browser platform. Otherwise it can safely be removed. If you're also maintaining an old version of ios platform in your plugin, the splashscreen plugin may still be needed. I'm not sure if there is a version of this plugin that has an iOS implementation without the android implementation, therefore you may need to upgrade the iOS platform as well. > cordova-plugin-file 6.0.2 "File" There is a version 8 which includes API 34 support. > cordova-plugin-file-transfer 1.7.1 "File Transfer" This will break because it had dependencies on the whitelist plugin which is no longer supported. Upgrade to v2 of the plugin for cordova-android@13 / API 34 support. It will also depend on cordova-plugin-file@8 > cordova-plugin-camera 6.0.1-dev "Camera" cordova-plugin-camera@7 will include API 34 support. #### Additional Notes - API 33 introduces several breaking changes on how the android's external filesystem is accessed (generally will user documents, images, and other media is stored). It also introduces a lot more restrictions on raw filesystem APIs. Some actions that was possible before is no longer possible using the file system plugin. Many of these restrictions started since scoped storage and is documented [here](https://github.com/apache/cordova-plugin-file?tab=readme-ov-file#androids-external-storage-quirks) - Above I've noted several plugins that requires updates either because I **know** they will break on the platform upgrade or that it requires updates for API 33/34 support. I cannot comment on third-party plugins because I do not know what they do or how they will behave. An omission of a plugin comment does not mean it won't have required or recommended updates. You will have to conduct you're research on the other plugins to see if they have updates available, especially any that are necessary. - Don't forget to `cordova plugin/platform remove` to remove the plugins/platforms, followed by `cordova plugin/platform add` to upgrade the package. In-place upgrades aren't supported so simply adding a new version will not actually upgrade the package to the newer version. I'm closing this issue because it doesn't describe a bug with the camera plugin. -- 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: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org