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

Improvements to testing infrastructure #202

Merged
merged 3 commits into from
Jan 18, 2018
Merged

Conversation

pouljohn1
Copy link
Contributor

- Added peripheral delegate provider to prevent delegate stealing.
- Fixed not passing central manager delegate in constructor
- Code generation improvements - now delegate wrappers are also mocks, not testable classes
extension CBPeripheral {
/// There is still no identifier property for macOS, that's why we need to retrieve it by value method
var uuidIdentifier: UUID? {
return value(forKey: "identifier") as? NSUUID as UUID?
Copy link
Contributor

Choose a reason for hiding this comment

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

could we write here value(forKey: "identifier") as! NSUUID as UUID so we don't need to force cast uuidIdentifier every time

@@ -65,39 +67,39 @@ public class BluetoothManager {
init(
Copy link
Contributor

Choose a reason for hiding this comment

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

update docs.

@@ -66,37 +68,30 @@ class _BluetoothManager {
init(
Copy link
Contributor

Choose a reason for hiding this comment

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

update docs

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.

3 participants