-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.8.2 - Add initial support for did modify services (#193)
* Add initial support for did modify services delegation, #144 * Bump version to 0.8.2 * Update changelog for 0.8.2 * Update readme and jazzy doc for 0.8.2
- Loading branch information
Jeremy Chiang
authored
Mar 21, 2019
1 parent
320dc60
commit 3c8908b
Showing
116 changed files
with
1,532 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Pod::Spec.new do |spec| | ||
spec.name = 'Bluejay' | ||
spec.version = '0.8.1' | ||
spec.version = '0.8.2' | ||
spec.license = { type: 'MIT', file: 'LICENSE' } | ||
spec.homepage = 'https://github.com/steamclock/bluejay' | ||
spec.authors = { 'Jeremy Chiang' => '[email protected]' } | ||
spec.summary = 'Bluejay is a simple Swift framework for building reliable Bluetooth apps.' | ||
spec.homepage = 'https://github.com/steamclock/bluejay' | ||
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.1' } | ||
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.2' } | ||
spec.source_files = 'Bluejay/Bluejay/*.{h,swift}' | ||
spec.framework = 'SystemConfiguration' | ||
spec.platform = :ios, '10.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// ServiceObserver.swift | ||
// Bluejay | ||
// | ||
// Created by Jeremy Chiang on 2019-02-21. | ||
// Copyright © 2019 Steamclock Software. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/** | ||
A protocol allowing conforming objects to monitor the services changes of a connected peripheral. | ||
*/ | ||
public protocol ServiceObserver: class { | ||
/** | ||
* Called whenever a peripheral's services change. | ||
* | ||
* - Parameters: | ||
* - from: the peripheral that changed services. | ||
* - invalidatedServices: the services invalidated. | ||
*/ | ||
func didModifyServices(from peripheral: PeripheralIdentifier, invalidatedServices: [ServiceIdentifier]) | ||
} | ||
|
||
/// Allows creating weak references to ServiceObserver objects, so that Bluejay does not keep strong references to observers and prevent them from being released in memory. | ||
struct WeakServiceObserver { | ||
weak var weakReference: ServiceObserver? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.