Skip to content

Commit 360ba1f

Browse files
authored
Merge pull request #36 from NordicSemiconductor/develop
Version 0.12.1
2 parents af28b32 + 43a5c62 commit 360ba1f

22 files changed

+390
-359
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ Carthage/Build
3838
# `pod install` in .travis.yml
3939
#
4040
# Pods/
41+
.swiftpm

CoreBluetoothMock.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'CoreBluetoothMock'
3-
s.version = '0.12.0'
3+
s.version = '0.12.1'
44
s.summary = 'Mocking library for CoreBluetooth.'
55

66
s.description = <<-DESC
@@ -18,7 +18,7 @@ device and test the app on simulator.
1818
s.osx.deployment_target = '10.13'
1919
s.tvos.deployment_target = '9.0'
2020
s.watchos.deployment_target = '2.0'
21-
s.swift_versions = ['4.2', '5.0', '5.1', '5.2', '5.3']
21+
s.swift_versions = ['4.2', '5.0', '5.1', '5.2', '5.3', '5.4']
2222
s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
2323

2424
s.source_files = 'CoreBluetoothMock/Classes/**/*'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import CoreBluetooth
2+
3+
open class CBMAttribute: NSObject {
4+
var uuid: CBUUID {
5+
fatalError()
6+
}
7+
}

CoreBluetoothMock/Classes/CBMCentralManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import CoreBluetooth
3232

33-
public protocol CBMCentralManager: class {
33+
public protocol CBMCentralManager: AnyObject {
3434
#if !os(macOS)
3535
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, *)
3636
typealias Feature = CBCentralManager.Feature

CoreBluetoothMock/Classes/CBMCentralManagerDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import CoreBluetooth
3232

33-
public protocol CBMCentralManagerDelegate: class {
33+
public protocol CBMCentralManagerDelegate: AnyObject {
3434

3535
/// Invoked whenever the central manager's state has been updated. Commands
3636
/// should only be issued when the state is `.poweredOn`.

CoreBluetoothMock/Classes/CBMManagerTypes.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ public enum CBMManagerState: Int {
4545
case poweredOn
4646
}
4747

48-
public typealias CBMPeer = CBPeer
49-
public typealias CBMAttribute = CBAttribute
48+
// disabled for Xcode 12.5 beta
49+
//public typealias CBMPeer = CBPeer
50+
//public typealias CBMAttribute = CBAttribute
5051
public typealias CBMUUID = CBUUID
5152
public typealias CBMError = CBError
5253
public typealias CBMATTError = CBATTError
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Foundation
2+
3+
open class CBMPeer: NSObject {
4+
var identifier: UUID {
5+
fatalError()
6+
}
7+
}

CoreBluetoothMock/Classes/CBMPeripheral.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import CoreBluetooth
3232

33-
public protocol CBMPeripheral: class {
33+
public protocol CBMPeripheral: AnyObject {
3434

3535
/// The unique, persistent identifier associated with the peer.
3636
var identifier: UUID { get }

CoreBluetoothMock/Classes/CBMPeripheralDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import CoreBluetooth
3232

33-
public protocol CBMPeripheralDelegate: class {
33+
public protocol CBMPeripheralDelegate: AnyObject {
3434

3535
/// This method is invoked when the name of peripheral changes.
3636
/// - Parameter peripheral: The peripheral providing this update.

Example/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- CoreBluetoothMock (0.12.0)
2+
- CoreBluetoothMock (0.12.1)
33

44
DEPENDENCIES:
55
- CoreBluetoothMock (from `../`)
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
CoreBluetoothMock: 064e0be151a9182679fc92e7549cacd30d1239eb
12+
CoreBluetoothMock: b9c3c1c3d316c5a6eab03aab74971a93f942128a
1313

1414
PODFILE CHECKSUM: 254d1c78543186e7159c621729d31f797f3b1083
1515

16-
COCOAPODS: 1.10.0.rc.1
16+
COCOAPODS: 1.10.1

Example/Pods/Local Podspecs/CoreBluetoothMock.podspec.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 300 additions & 300 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/CoreBluetoothMock.xcscheme

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/CoreBluetoothMock/CoreBluetoothMock-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/nRFBlinky.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@
404404
isa = PBXProject;
405405
attributes = {
406406
LastSwiftUpdateCheck = 1130;
407-
LastUpgradeCheck = 1200;
407+
LastUpgradeCheck = 1250;
408408
ORGANIZATIONNAME = CocoaPods;
409409
TargetAttributes = {
410410
526EA539240D2F8100BF70B2 = {
@@ -733,7 +733,7 @@
733733
DEVELOPMENT_TEAM = P3R8YQEV4L;
734734
GCC_C_LANGUAGE_STANDARD = gnu11;
735735
INFOPLIST_FILE = "UI Tests/Info.plist";
736-
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
736+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
737737
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
738738
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
739739
MTL_FAST_MATH = YES;
@@ -764,7 +764,7 @@
764764
DEVELOPMENT_TEAM = P3R8YQEV4L;
765765
GCC_C_LANGUAGE_STANDARD = gnu11;
766766
INFOPLIST_FILE = nRFBlinky_UITests/Info.plist;
767-
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
767+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
768768
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
769769
MTL_FAST_MATH = YES;
770770
OTHER_SWIFT_FLAGS = "$(inherited)";
@@ -793,7 +793,7 @@
793793
DEVELOPMENT_TEAM = P3R8YQEV4L;
794794
GCC_C_LANGUAGE_STANDARD = gnu11;
795795
INFOPLIST_FILE = Tests/Info.plist;
796-
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
796+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
797797
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
798798
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
799799
MTL_FAST_MATH = YES;
@@ -821,7 +821,7 @@
821821
DEVELOPMENT_TEAM = P3R8YQEV4L;
822822
GCC_C_LANGUAGE_STANDARD = gnu11;
823823
INFOPLIST_FILE = nRFBlinky_Tests/Info.plist;
824-
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
824+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
825825
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
826826
MTL_FAST_MATH = YES;
827827
PRODUCT_BUNDLE_IDENTIFIER = "com.nordicsemi.nRFBlinky-Tests";

Example/nRFBlinky.xcodeproj/xcshareddata/xcschemes/nRFBlinky.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1200"
3+
LastUpgradeVersion = "1250"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/nRFBlinky.xcodeproj/xcshareddata/xcschemes/nRFBlinky_Tests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1200"
3+
LastUpgradeVersion = "1250"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/nRFBlinky.xcodeproj/xcshareddata/xcschemes/nRFBlinky_UITests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1200"
3+
LastUpgradeVersion = "1250"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/nRFBlinky/CoreBluetoothTypeAliases.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ import CoreBluetoothMock
3535
// the imports to CoreBluetooth to fix conflicts and initiate the manager
3636
// using CBCentralManagerFactory, instad of just creating a CBCentralManager.
3737

38+
// disabled for Xcode 12.5 beta
39+
//typealias CBPeer = CBMPeer
40+
//typealias CBAttribute = CBMAttribute
3841
typealias CBCentralManagerFactory = CBMCentralManagerFactory
39-
typealias CBPeer = CBMPeer
4042
typealias CBUUID = CBMUUID
4143
typealias CBError = CBMError
4244
typealias CBATTError = CBMATTError
@@ -46,7 +48,6 @@ typealias CBCentralManager = CBMCentralManager
4648
typealias CBCentralManagerDelegate = CBMCentralManagerDelegate
4749
typealias CBPeripheral = CBMPeripheral
4850
typealias CBPeripheralDelegate = CBMPeripheralDelegate
49-
typealias CBAttribute = CBMAttribute
5051
typealias CBService = CBMService
5152
typealias CBCharacteristic = CBMCharacteristic
5253
typealias CBCharacteristicWriteType = CBMCharacteristicWriteType

0 commit comments

Comments
 (0)