-
Notifications
You must be signed in to change notification settings - Fork 334
WIP: Add support for rubicon-objc
#1853
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
base: develop
Are you sure you want to change the base?
Conversation
|
I was hoping for something a bit less invasive to the existing code, e.g. creating a Then the existing code would just have to be modified like: try:
from CoreBluetooth import CBUUID, ...
except ImportError:
from ._pyobjc_compat.CoreBluetooth import CBUUID, ... |
|
I just borrowed an iPhone to tested this. Unfortunately bluetooth is only available on real iPhones and not in the iOS Simulators. But I can now finally say, that this branch is working flawlessly with briefcase on an iPhone 16 with iOS 26.1. For the permission handling I had to add this in the
Hmm, okay. I'll take a look and see if that makes it clearer. Now that I know it actually works on iOS, I'm motivated to put more work into this topic :) |
…mework-abstraction
I was thinking and trying a bit to get a less invasive approach that can be used as your suggestion. The problem is, that I can not make Maybe I could split this PR in smaller chunks to simplify the review? Would that be a compromise? |
Smaller chunks is always helpful. I think the only thing here that I will really strongly object to is changing the files in Rubicon ObjC should have it's own separate typings. I was using it for USB stuff recently and so I have some idea of how I would want to do this, so I don't mind helping with that part. |
This adds support for
rubicon-objcto potentially support iOS. Currently I only tested this on macOS and not on iOS.On macOS it is possible to activate the
rubicon-objcframework by setting the environment variableBLEAK_COREBLUETOOTH_FRAMEWORKtorubicon-objc.I just wanted to share this as a first draft until I actual did tests with an iPhone.
Fixes #1833