Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Xcode 13 SDK without breaking previous versions #50

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

dinesharjani
Copy link
Contributor

With iOS 15, Apple now made some Attributes Optional rather than Strong, so we have to account for that without breaking developers that haven't updated to the new SDK yet. This change works for both Xcode 12 and 13, and doesn't require the use of #if available() calls.

With the iOS 15, Apple now made some Attributes Optional rather than Strong, so we have to account for that without breaking developers that haven't updated to the new SDK yet. This change works for both Xcode 12 and 13, and doesn't require the use of #if available() calls.
@philips77
Copy link
Member

As this library should mimic the behavior and API of Core Bluetooth, it should also have the peripheral inCBMService weak for Swift 5.5+:

open internal(set) unowned var peripheral: CBMPeripheral

This should have #if as the API changes.

@philips77
Copy link
Member

Similar changes for CBMCharacteristic and CBMDescriptor, as far as i remember?

Copy link
Member

@philips77 philips77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As stated above.

@philips77
Copy link
Member

Let's do other changes in another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants