dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
539 stars 361 forks source link

Added conditions to not use CTCellularData on Mac Catalyst. #521

Closed qpwr closed 1 month ago

qpwr commented 2 months ago

PR Type

This PR adds code to check if we're compiling for Mac Catalyst and then disables usage of the CTCellularData module, which is not available on macOS.

PR Checklist

For bug fixes / features, please check if your PR fulfills the following requirements:

What is the purpose of this PR?

Currently apps with this plugin will not build on Mac Catalyst due to the use of CoreTelephony/CTCelluarData, which is not available on macOS. With this change, code will be wrapped in conditions to check for this target and will thus be excluded from Mac Catalyst.

Does this PR introduce a breaking change?