Closed kennylovrin closed 6 months ago
Hello, Thank you for the PR. Did you test it, and does it fix your issue? I have no sample to test state restoration.
Hello, Thank you for the PR. Did you test it, and does it fix your issue? I have no sample to test state restoration.
Hi, I see it's already merged now, it's not a huge change. But yes I've tested it and I am using it currently. It does solve my issue in the sense that I now get objects that are more easily compatible with the rest of the library.
Splendid! I will do a new release shortly.
I found when trying to restore state that it was tricky as the state contains
CBPeripheral
objects, but the rest of the code more or less relies onCBMPeripheral
everywhere. One option would be to make theCBPeripheralNative.init
public, but I think manipulating the state is more consistent with the CoreBluetoothMock API in general.