diff --git a/.gitignore b/.gitignore index 2c22487..afa2152 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ ## Build generated build/ DerivedData/ +Carthage/ + +.DS_Store ## Various settings *.pbxuser diff --git a/Cartfile.resolved b/Cartfile.resolved index f8ed816..00901e9 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1 @@ -github "troystribling/BlueCap" "0.5.3" +github "troystribling/BlueCap" "0.5.4" diff --git a/SimpleBleCentral.xcodeproj/project.pbxproj b/SimpleBleCentral.xcodeproj/project.pbxproj index b13ddca..2b1b676 100644 --- a/SimpleBleCentral.xcodeproj/project.pbxproj +++ b/SimpleBleCentral.xcodeproj/project.pbxproj @@ -7,8 +7,8 @@ objects = { /* Begin PBXBuildFile section */ - 7B46C7401F5B578B00A8EEE3 /* BlueCapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B46C73F1F5B578B00A8EEE3 /* BlueCapKit.framework */; }; - 7B46C7421F5B5F3D00A8EEE3 /* BlueCapKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 7B46C73F1F5B578B00A8EEE3 /* BlueCapKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 53F18DDD1F9A74060061229E /* BlueCapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53F18DDC1F9A74060061229E /* BlueCapKit.framework */; }; + 53F18DDF1F9A742B0061229E /* BlueCapKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 53F18DDE1F9A742B0061229E /* BlueCapKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 7B8AEEE31E34F2DC00B09856 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B8AEEE21E34F2DC00B09856 /* AppDelegate.swift */; }; 7B8AEEE51E34F2DC00B09856 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B8AEEE41E34F2DC00B09856 /* ViewController.swift */; }; 7B8AEEE81E34F2DC00B09856 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7B8AEEE61E34F2DC00B09856 /* Main.storyboard */; }; @@ -24,7 +24,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 7B46C7421F5B5F3D00A8EEE3 /* BlueCapKit.framework in Embed Frameworks */, + 53F18DDF1F9A742B0061229E /* BlueCapKit.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -32,7 +32,8 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 7B46C73F1F5B578B00A8EEE3 /* BlueCapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = BlueCapKit.framework; sourceTree = ""; }; + 53F18DDC1F9A74060061229E /* BlueCapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BlueCapKit.framework; path = Carthage/Build/iOS/BlueCapKit.framework; sourceTree = ""; }; + 53F18DDE1F9A742B0061229E /* BlueCapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BlueCapKit.framework; path = Carthage/Build/iOS/BlueCapKit.framework; sourceTree = ""; }; 7B8AEEDF1E34F2DC00B09856 /* SimpleBleCentral.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SimpleBleCentral.app; sourceTree = BUILT_PRODUCTS_DIR; }; 7B8AEEE21E34F2DC00B09856 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7B8AEEE41E34F2DC00B09856 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; @@ -48,7 +49,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 7B46C7401F5B578B00A8EEE3 /* BlueCapKit.framework in Frameworks */, + 53F18DDD1F9A74060061229E /* BlueCapKit.framework in Frameworks */, 7B8AEEF81E34F3D700B09856 /* CoreBluetooth.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -59,6 +60,7 @@ 7B8AEED61E34F2DC00B09856 = { isa = PBXGroup; children = ( + 53F18DDE1F9A742B0061229E /* BlueCapKit.framework */, 7B8AEEE11E34F2DC00B09856 /* SimpleBleCentral */, 7B8AEEE01E34F2DC00B09856 /* Products */, 7B8AEEF61E34F3D600B09856 /* Frameworks */, @@ -76,7 +78,6 @@ 7B8AEEE11E34F2DC00B09856 /* SimpleBleCentral */ = { isa = PBXGroup; children = ( - 7B46C73F1F5B578B00A8EEE3 /* BlueCapKit.framework */, 7B8AEEE21E34F2DC00B09856 /* AppDelegate.swift */, 7B8AEEE41E34F2DC00B09856 /* ViewController.swift */, 7B8AEEE61E34F2DC00B09856 /* Main.storyboard */, @@ -90,6 +91,7 @@ 7B8AEEF61E34F3D600B09856 /* Frameworks */ = { isa = PBXGroup; children = ( + 53F18DDC1F9A74060061229E /* BlueCapKit.framework */, 7B8AEEF71E34F3D700B09856 /* CoreBluetooth.framework */, ); name = Frameworks; @@ -123,12 +125,12 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0820; - LastUpgradeCheck = 0820; + LastUpgradeCheck = 0900; ORGANIZATIONNAME = "yassine benabbas"; TargetAttributes = { 7B8AEEDE1E34F2DC00B09856 = { CreatedOnToolsVersion = 8.2.1; - DevelopmentTeam = 7MN26J482K; + DevelopmentTeam = 389KYC8U83; ProvisioningStyle = Automatic; SystemCapabilities = { com.apple.BackgroundModes = { @@ -210,7 +212,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -218,7 +222,11 @@ CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -241,7 +249,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.2; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -260,7 +268,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -268,7 +278,11 @@ CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -285,7 +299,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.2; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; @@ -298,15 +312,16 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 7MN26J482K; + DEVELOPMENT_TEAM = 389KYC8U83; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/SimpleBleCentral", + "$(PROJECT_DIR)/Carthage/Build/iOS", ); INFOPLIST_FILE = SimpleBleCentral/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = org.yostane.ios.SimpleBleCentral; + PRODUCT_BUNDLE_IDENTIFIER = romansavrulin; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; }; @@ -316,15 +331,16 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 7MN26J482K; + DEVELOPMENT_TEAM = 389KYC8U83; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/SimpleBleCentral", + "$(PROJECT_DIR)/Carthage/Build/iOS", ); INFOPLIST_FILE = SimpleBleCentral/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = org.yostane.ios.SimpleBleCentral; + PRODUCT_BUNDLE_IDENTIFIER = romansavrulin; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; }; diff --git a/SimpleBleCentral.xcodeproj/xcshareddata/xcschemes/SimpleBleCentral.xcscheme b/SimpleBleCentral.xcodeproj/xcshareddata/xcschemes/SimpleBleCentral.xcscheme index 29bf38a..e54de19 100644 --- a/SimpleBleCentral.xcodeproj/xcshareddata/xcschemes/SimpleBleCentral.xcscheme +++ b/SimpleBleCentral.xcodeproj/xcshareddata/xcschemes/SimpleBleCentral.xcscheme @@ -1,6 +1,6 @@ @@ -45,6 +46,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/SimpleBleCentral/BlueCapKit.framework/BlueCapKit b/SimpleBleCentral/BlueCapKit.framework/BlueCapKit deleted file mode 100755 index 98e2d7e..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/BlueCapKit and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Headers/BlueCapKit-Swift.h b/SimpleBleCentral/BlueCapKit.framework/Headers/BlueCapKit-Swift.h deleted file mode 100644 index 6bc7c3a..0000000 --- a/SimpleBleCentral/BlueCapKit.framework/Headers/BlueCapKit-Swift.h +++ /dev/null @@ -1,406 +0,0 @@ -// Generated by Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42) -#pragma clang diagnostic push - -#if defined(__has_include) && __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wauto-import" -#include -#include -#include -#include - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if defined(__has_include) && __has_include() -# include -# elif !defined(__cplusplus) || __cplusplus < 201103L -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif - -#if defined(__has_attribute) && __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -# define SWIFT_RUNTIME_NAME(X) -#endif -#if defined(__has_attribute) && __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -# define SWIFT_COMPILE_NAME(X) -#endif -#if defined(__has_attribute) && __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -# define SWIFT_METHOD_FAMILY(X) -#endif -#if defined(__has_attribute) && __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -#else -# define SWIFT_NOESCAPE -#endif -#if defined(__has_attribute) && __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -# define SWIFT_WARN_UNUSED_RESULT -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif - -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif - -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif - -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if defined(__has_attribute) && __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type -# if defined(__has_feature) && __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) SWIFT_ENUM(_type, _name) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if defined(__has_feature) && __has_feature(modules) -@import ObjectiveC; -@import CoreLocation; -@import CoreBluetooth; -@import Foundation; -@import Dispatch; -#endif - -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -@class CLLocation; -@class CLLocationManager; - -SWIFT_CLASS("_TtC10BlueCapKit15LocationManager") -@interface LocationManager : NSObject -@property (nonatomic, readonly) BOOL isUpdating; -@property (nonatomic) BOOL pausesLocationUpdatesAutomatically; -@property (nonatomic) BOOL allowsBackgroundLocationUpdates; -@property (nonatomic) CLActivityType activityType; -@property (nonatomic) CLLocationDistance distanceFilter; -@property (nonatomic) CLLocationAccuracy desiredAccuracy; -- (CLAuthorizationStatus)authorizationStatus SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init; -@property (nonatomic, readonly, strong) CLLocation * _Nullable location; -- (BOOL)locationServicesEnabled SWIFT_WARN_UNUSED_RESULT; -- (void)stopUpdatingLocation; -+ (BOOL)significantLocationChangeMonitoringAvailable SWIFT_WARN_UNUSED_RESULT; -- (void)stopMonitoringSignificantLocationChanges; -- (BOOL)deferredLocationUpdatesAvailable SWIFT_WARN_UNUSED_RESULT; -- (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray * _Nonnull)locations; -- (void)locationManager:(CLLocationManager * _Nonnull)manager didFailWithError:(NSError * _Nonnull)error; -- (void)locationManager:(CLLocationManager * _Nonnull)manager didFinishDeferredUpdatesWithError:(NSError * _Nullable)error; -- (void)locationManager:(CLLocationManager * _Nonnull)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status; -- (void)didUpdateWithLocations:(NSArray * _Nonnull)locations; -- (void)didFailWithError:(NSError * _Nonnull)error; -- (void)didFinishDeferredUpdatesWithError:(NSError * _Nullable)error; -- (void)didChangeAuthorizationWithStatus:(CLAuthorizationStatus)status; -@end - -@class CLRegion; - -SWIFT_CLASS("_TtC10BlueCapKit13RegionManager") -@interface RegionManager : LocationManager -@property (nonatomic, readonly) BOOL isMonitoring; -@property (nonatomic, readonly) CLLocationDistance maximumRegionMonitoringDistance; -- (nonnull instancetype)init; -- (BOOL)isMonitoringRegion:(NSString * _Nonnull)identifier SWIFT_WARN_UNUSED_RESULT; -- (void)stopMonitoringAllRegions; -- (void)locationManager:(CLLocationManager * _Nonnull)_ didDetermineState:(CLRegionState)state forRegion:(CLRegion * _Nonnull)region; -- (void)locationManager:(CLLocationManager * _Nonnull)_ monitoringDidFailForRegion:(CLRegion * _Nullable)region withError:(NSError * _Nonnull)error; -- (void)locationManager:(CLLocationManager * _Nonnull)_ didStartMonitoringForRegion:(CLRegion * _Nonnull)region; -- (void)didEnterWithRegion:(CLRegion * _Nonnull)region; -- (void)didExitWithRegion:(CLRegion * _Nonnull)region; -- (void)didDetermineWithState:(CLRegionState)state forRegion:(CLRegion * _Nonnull)region; -- (void)monitoringDidFailForRegion:(CLRegion * _Nullable)region withError:(NSError * _Nonnull)error; -- (void)didStartMonitoringForRegion:(CLRegion * _Nonnull)region; -@end - -@class CLBeacon; -@class CLBeaconRegion; - -SWIFT_CLASS("_TtC10BlueCapKit13BeaconManager") -@interface BeaconManager : RegionManager -@property (nonatomic, readonly) BOOL isRanging; -- (BOOL)isRangingAvailable SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init; -- (BOOL)isRangingRegionWithIdentifier:(NSString * _Nonnull)identifier SWIFT_WARN_UNUSED_RESULT; -- (void)stopRangingAllBeacons; -- (void)locationManager:(CLLocationManager * _Nonnull)_ didRangeBeacons:(NSArray * _Nonnull)beacons inRegion:(CLBeaconRegion * _Nonnull)region; -- (void)locationManager:(CLLocationManager * _Nonnull)_ rangingBeaconsDidFailForRegion:(CLBeaconRegion * _Nonnull)region withError:(NSError * _Nonnull)error; -- (void)rangingBeaconsDidFailInRegion:(CLBeaconRegion * _Nonnull)region withError:(NSError * _Nonnull)error; -@end - - -@interface CBATTRequest (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBCentral (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBCentralManager (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBCharacteristic (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBMutableCharacteristic (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBMutableService (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBPeripheral (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBPeripheralManager (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CBService (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CLBeacon (SWIFT_EXTENSION(BlueCapKit)) -@end - - -@interface CLLocationManager (SWIFT_EXTENSION(BlueCapKit)) -@end - -@class Peripheral; -@class CBUUID; -@class NSNumber; - -SWIFT_CLASS("_TtC10BlueCapKit14CentralManager") -@interface CentralManager : NSObject -@property (nonatomic, copy) NSDictionary * _Nullable options; -@property (nonatomic, readonly, copy) NSDictionary * _Nonnull discoveredPeripherals; -@property (nonatomic, readonly, copy) NSArray * _Nonnull peripherals; -@property (nonatomic, readonly) BOOL isScanning; -@property (nonatomic, readonly) BOOL poweredOn; -- (nonnull instancetype)init; -- (void)reset; -- (void)invalidate; -- (void)disconnectAllPeripherals; -- (void)removeAllPeripherals; -- (void)removePeripheralWithIdentifier:(NSUUID * _Nonnull)identifier; -- (void)stopScanning; -- (NSArray * _Nonnull)retrieveConnectedPeripheralsWithServices:(NSArray * _Nonnull)services SWIFT_WARN_UNUSED_RESULT; -- (NSArray * _Nonnull)retrievePeripheralsWithIdentifiers:(NSArray * _Nonnull)identifiers SWIFT_WARN_UNUSED_RESULT; -- (NSArray * _Nonnull)retrievePeripherals SWIFT_WARN_UNUSED_RESULT; -- (void)centralManager:(CBCentralManager * _Nonnull)central didConnectPeripheral:(CBPeripheral * _Nonnull)peripheral; -- (void)centralManager:(CBCentralManager * _Nonnull)central didDisconnectPeripheral:(CBPeripheral * _Nonnull)peripheral error:(NSError * _Nullable)error; -- (void)centralManager:(CBCentralManager * _Nonnull)central didDiscoverPeripheral:(CBPeripheral * _Nonnull)peripheral advertisementData:(NSDictionary * _Nonnull)advertisementData RSSI:(NSNumber * _Nonnull)RSSI; -- (void)centralManager:(CBCentralManager * _Nonnull)central didFailToConnectPeripheral:(CBPeripheral * _Nonnull)peripheral error:(NSError * _Nullable)error; -- (void)centralManager:(CBCentralManager * _Nonnull)central willRestoreState:(NSDictionary * _Nonnull)dict; -- (void)centralManagerDidUpdateState:(CBCentralManager * _Nonnull)central; -@end - - -SWIFT_CLASS("_TtC10BlueCapKit14Characteristic") -@interface Characteristic : NSObject -@property (nonatomic, readonly) NSInteger pendingReadCount; -@property (nonatomic, readonly) NSInteger pendingWriteCount; -@property (nonatomic, readonly, strong) CBUUID * _Nonnull uuid; -@property (nonatomic, readonly, copy) NSString * _Nonnull name; -@property (nonatomic, readonly) BOOL isNotifying; -@property (nonatomic, readonly) BOOL canNotify; -@property (nonatomic, readonly) BOOL canRead; -@property (nonatomic, readonly) BOOL canWrite; -@property (nonatomic, readonly, copy) NSData * _Nullable dataValue; -@property (nonatomic, readonly, copy) NSArray * _Nonnull stringValues; -@property (nonatomic, readonly, copy) NSDictionary * _Nullable stringValue; -@property (nonatomic, readonly) CBCharacteristicProperties properties; -- (NSDictionary * _Nullable)stringValue:(NSData * _Nullable)data SWIFT_WARN_UNUSED_RESULT; -- (NSData * _Nullable)dataFromString:(NSDictionary * _Nonnull)stringValue SWIFT_WARN_UNUSED_RESULT; -- (BOOL)propertyEnabled:(CBCharacteristicProperties)property SWIFT_WARN_UNUSED_RESULT; -- (void)stopNotificationUpdates; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -@end - - -@class MutableService; - -SWIFT_CLASS("_TtC10BlueCapKit21MutableCharacteristic") -@interface MutableCharacteristic : NSObject -@property (nonatomic, readonly, weak) MutableService * _Nullable service; -@property (nonatomic, readonly, strong) CBUUID * _Nonnull uuid; -@property (nonatomic, copy) NSData * _Nullable value; -@property (nonatomic, readonly) BOOL isUpdating; -@property (nonatomic, readonly, copy) NSString * _Nonnull name; -@property (nonatomic, readonly, copy) NSArray * _Nonnull stringValues; -@property (nonatomic, readonly) CBAttributePermissions permissions; -@property (nonatomic, readonly) CBCharacteristicProperties properties; -@property (nonatomic, readonly, copy) NSArray * _Nonnull pendingUpdates; -@property (nonatomic, readonly, copy) NSDictionary * _Nullable stringValue; -@property (nonatomic, readonly) BOOL canNotify; -- (nonnull instancetype)initWithUUID:(NSString * _Nonnull)UUID properties:(CBCharacteristicProperties)properties permissions:(CBAttributePermissions)permissions value:(NSData * _Nullable)value OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithUUID:(NSString * _Nonnull)UUID; -- (BOOL)propertyEnabled:(CBCharacteristicProperties)property SWIFT_WARN_UNUSED_RESULT; -- (BOOL)permissionEnabled:(CBAttributePermissions)permission SWIFT_WARN_UNUSED_RESULT; -- (NSData * _Nullable)dataFromString:(NSDictionary * _Nonnull)data SWIFT_WARN_UNUSED_RESULT; -- (void)stopRespondingToWriteRequests; -- (BOOL)updateWithString:(NSDictionary * _Nonnull)value error:(NSError * _Nullable * _Nullable)error; -- (BOOL)updateWithData:(NSData * _Nonnull)value error:(NSError * _Nullable * _Nullable)error; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -@end - - -SWIFT_CLASS("_TtC10BlueCapKit14MutableService") -@interface MutableService : NSObject -@property (nonatomic, readonly, strong) CBUUID * _Nonnull uuid; -@property (nonatomic, readonly, copy) NSString * _Nonnull name; -@property (nonatomic, copy) NSArray * _Nonnull characteristics; -- (nonnull instancetype)initWithUuid:(NSString * _Nonnull)uuid; -- (void)characteristicsFromProfiles; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -@end - -@class CBDescriptor; - -SWIFT_CLASS("_TtC10BlueCapKit10Peripheral") -@interface Peripheral : NSObject -@property (nonatomic, readonly, copy) NSDate * _Nonnull discoveredAt; -@property (nonatomic, readonly) NSInteger RSSI; -@property (nonatomic, readonly, copy) NSDate * _Nullable connectedAt; -@property (nonatomic, readonly, copy) NSDate * _Nullable disconnectedAt; -@property (nonatomic, readonly) NSUInteger timeoutCount; -@property (nonatomic, readonly) NSUInteger disconnectionCount; -@property (nonatomic, readonly) NSUInteger connectionCount; -@property (nonatomic, readonly) NSTimeInterval secondsConnected; -@property (nonatomic, readonly) NSTimeInterval totalSecondsConnected; -@property (nonatomic, readonly) NSTimeInterval cumlativeSecondsConnected; -@property (nonatomic, readonly) NSTimeInterval cumlativeSecondsDisconnected; -@property (nonatomic, readonly, copy) NSString * _Nonnull name; -@property (nonatomic, readonly, copy) NSUUID * _Nonnull identifier; -@property (nonatomic, readonly) CBPeripheralState state; -- (void)stopPollingRSSI; -- (void)reconnectWithDelay:(NSTimeInterval)delay; -- (void)terminate; -- (void)disconnect; -- (void)peripheralDidUpdateName:(CBPeripheral * _Nonnull)_; -- (void)peripheral:(CBPeripheral * _Nonnull)_ didModifyServices:(NSArray * _Nonnull)invalidatedServices; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didReadRSSI:(NSNumber * _Nonnull)RSSI error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didDiscoverServices:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didDiscoverIncludedServicesForService:(CBService * _Nonnull)service error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didDiscoverCharacteristicsForService:(CBService * _Nonnull)service error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didUpdateNotificationStateForCharacteristic:(CBCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didUpdateValueForCharacteristic:(CBCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didWriteValueForCharacteristic:(CBCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didDiscoverDescriptorsForCharacteristic:(CBCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didUpdateValueForDescriptor:(CBDescriptor * _Nonnull)descriptor error:(NSError * _Nullable)error; -- (void)peripheral:(CBPeripheral * _Nonnull)peripheral didWriteValueForDescriptor:(CBDescriptor * _Nonnull)descriptor error:(NSError * _Nullable)error; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -@end - - -SWIFT_CLASS("_TtC10BlueCapKit17PeripheralManager") -@interface PeripheralManager : NSObject -@property (nonatomic, readonly) BOOL isAdvertising; -@property (nonatomic, readonly) BOOL poweredOn; -@property (nonatomic, readonly, copy) NSArray * _Nonnull services; -@property (nonatomic, readonly, copy) NSArray * _Nonnull characteristics; -- (NSArray * _Nullable)serviceWithUUID:(CBUUID * _Nonnull)uuid SWIFT_WARN_UNUSED_RESULT; -- (NSArray * _Nullable)characteristicsWithUUID:(CBUUID * _Nonnull)uuid SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init; -- (nonnull instancetype)initWithOptions:(NSDictionary * _Nullable)options; -- (nonnull instancetype)initWithQueue:(dispatch_queue_t _Nonnull)queue options:(NSDictionary * _Nullable)options OBJC_DESIGNATED_INITIALIZER; -- (void)reset; -- (void)invalidate; -- (void)remove:(MutableService * _Nonnull)service; -- (void)removeAllServices; -- (BOOL)updateValue:(NSData * _Nonnull)value forCharacteristic:(MutableCharacteristic * _Nonnull)characteristic SWIFT_WARN_UNUSED_RESULT; -- (void)peripheralManagerDidUpdateState:(CBPeripheralManager * _Nonnull)peripheralManager; -- (void)peripheralManager:(CBPeripheralManager * _Nonnull)_ willRestoreState:(NSDictionary * _Nonnull)dict; -- (void)peripheralManagerDidStartAdvertising:(CBPeripheralManager * _Nonnull)peripheral error:(NSError * _Nullable)error; -- (void)peripheralManager:(CBPeripheralManager * _Nonnull)peripheral didAddService:(CBService * _Nonnull)service error:(NSError * _Nullable)error; -- (void)peripheralManager:(CBPeripheralManager * _Nonnull)_ central:(CBCentral * _Nonnull)central didSubscribeToCharacteristic:(CBCharacteristic * _Nonnull)characteristic; -- (void)peripheralManager:(CBPeripheralManager * _Nonnull)_ central:(CBCentral * _Nonnull)central didUnsubscribeFromCharacteristic:(CBCharacteristic * _Nonnull)characteristic; -- (void)peripheralManager:(CBPeripheralManager * _Nonnull)peripheral didReceiveReadRequest:(CBATTRequest * _Nonnull)request; -- (void)peripheralManagerIsReadyToUpdateSubscribers:(CBPeripheralManager * _Nonnull)peripheral; -- (void)peripheralManager:(CBPeripheralManager * _Nonnull)peripheral didReceiveWriteRequests:(NSArray * _Nonnull)requests; -@end - - -#pragma clang diagnostic pop diff --git a/SimpleBleCentral/BlueCapKit.framework/Info.plist b/SimpleBleCentral/BlueCapKit.framework/Info.plist deleted file mode 100644 index 72d92ec..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Info.plist and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm.swiftdoc b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm.swiftdoc deleted file mode 100644 index cdc2608..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm.swiftdoc and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm.swiftmodule b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm.swiftmodule deleted file mode 100644 index 63f2eb7..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm.swiftmodule and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm64.swiftdoc b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm64.swiftdoc deleted file mode 100644 index 6adbe83..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm64.swiftdoc and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm64.swiftmodule b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm64.swiftmodule deleted file mode 100644 index 427406d..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/arm64.swiftmodule and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/i386.swiftdoc b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/i386.swiftdoc deleted file mode 100644 index ea37d66..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/i386.swiftdoc and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/i386.swiftmodule b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/i386.swiftmodule deleted file mode 100644 index d34f84c..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/i386.swiftmodule and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/x86_64.swiftdoc b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/x86_64.swiftdoc deleted file mode 100644 index 7672f34..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/x86_64.swiftdoc and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/x86_64.swiftmodule b/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/x86_64.swiftmodule deleted file mode 100644 index a754587..0000000 Binary files a/SimpleBleCentral/BlueCapKit.framework/Modules/BlueCapKit.swiftmodule/x86_64.swiftmodule and /dev/null differ diff --git a/SimpleBleCentral/BlueCapKit.framework/Modules/module.modulemap b/SimpleBleCentral/BlueCapKit.framework/Modules/module.modulemap deleted file mode 100644 index 7266318..0000000 --- a/SimpleBleCentral/BlueCapKit.framework/Modules/module.modulemap +++ /dev/null @@ -1,3 +0,0 @@ -framework module BlueCapKit { - header "BlueCapKit-Swift.h" -}