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.
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation changes
[ ] Other... Please describe:
PR Checklist
For bug fixes / features, please check if your PR fulfills the following requirements:
[x] Testing has been carried out for the changes have been added
[ ] Regression testing has been carried out for existing functionality
[ ] Docs have been added / updated
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.
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?