diff --git a/Example/xDripG5/AppDelegate.swift b/CGMBLEKit Example/AppDelegate.swift similarity index 77% rename from Example/xDripG5/AppDelegate.swift rename to CGMBLEKit Example/AppDelegate.swift index f230f6d9..b14a60f4 100644 --- a/Example/xDripG5/AppDelegate.swift +++ b/CGMBLEKit Example/AppDelegate.swift @@ -19,16 +19,26 @@ class AppDelegate: UIResponder, UIApplicationDelegate, TransmitterDelegate { return UIApplication.shared.delegate as! AppDelegate } + var transmitterID: String? { + didSet { + if let id = transmitterID { + transmitter = Transmitter( + id: id, + passiveModeEnabled: UserDefaults.standard.passiveModeEnabled + ) + transmitter?.stayConnected = UserDefaults.standard.stayConnected + transmitter?.delegate = self + + UserDefaults.standard.transmitterID = id + } + } + } + var transmitter: Transmitter? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - transmitter = Transmitter( - ID: UserDefaults.standard.transmitterID, - passiveModeEnabled: UserDefaults.standard.passiveModeEnabled - ) - transmitter?.stayConnected = UserDefaults.standard.stayConnected - transmitter?.delegate = self + transmitterID = UserDefaults.standard.transmitterID return true } @@ -42,7 +52,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, TransmitterDelegate { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - if let transmitter = transmitter , !transmitter.stayConnected { + if let transmitter = transmitter, !transmitter.stayConnected { transmitter.stopScanning() } } @@ -73,24 +83,24 @@ class AppDelegate: UIResponder, UIApplicationDelegate, TransmitterDelegate { }() func transmitter(_ transmitter: Transmitter, didError error: Error) { - if let vc = window?.rootViewController as? TransmitterDelegate { - DispatchQueue.main.async { + DispatchQueue.main.async { + if let vc = self.window?.rootViewController as? TransmitterDelegate { vc.transmitter(transmitter, didError: error) } } } func transmitter(_ transmitter: Transmitter, didRead glucose: Glucose) { - if let vc = window?.rootViewController as? TransmitterDelegate { - DispatchQueue.main.async { + DispatchQueue.main.async { + if let vc = self.window?.rootViewController as? TransmitterDelegate { vc.transmitter(transmitter, didRead: glucose) } } } func transmitter(_ transmitter: Transmitter, didReadUnknownData data: Data) { - if let vc = window?.rootViewController as? TransmitterDelegate { - DispatchQueue.main.async { + DispatchQueue.main.async { + if let vc = self.window?.rootViewController as? TransmitterDelegate { vc.transmitter(transmitter, didReadUnknownData: data) } } diff --git a/Example/xDripG5/Assets.xcassets/AppIcon.appiconset/Contents.json b/CGMBLEKit Example/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 73% rename from Example/xDripG5/Assets.xcassets/AppIcon.appiconset/Contents.json rename to CGMBLEKit Example/Assets.xcassets/AppIcon.appiconset/Contents.json index eeea76c2..d8db8d65 100644 --- a/Example/xDripG5/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/CGMBLEKit Example/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,5 +1,15 @@ { "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, { "idiom" : "iphone", "size" : "29x29", @@ -30,6 +40,16 @@ "size" : "60x60", "scale" : "3x" }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, { "idiom" : "ipad", "size" : "29x29", @@ -64,6 +84,11 @@ "idiom" : "ipad", "size" : "83.5x83.5", "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" } ], "info" : { diff --git a/Example/xDripG5/Base.lproj/LaunchScreen.storyboard b/CGMBLEKit Example/Base.lproj/LaunchScreen.storyboard similarity index 58% rename from Example/xDripG5/Base.lproj/LaunchScreen.storyboard rename to CGMBLEKit Example/Base.lproj/LaunchScreen.storyboard index 78686cd0..f83f6fd5 100644 --- a/Example/xDripG5/Base.lproj/LaunchScreen.storyboard +++ b/CGMBLEKit Example/Base.lproj/LaunchScreen.storyboard @@ -1,22 +1,20 @@ - + - - + + + - - - - - + - + + diff --git a/Example/xDripG5/Base.lproj/Main.storyboard b/CGMBLEKit Example/Base.lproj/Main.storyboard similarity index 100% rename from Example/xDripG5/Base.lproj/Main.storyboard rename to CGMBLEKit Example/Base.lproj/Main.storyboard diff --git a/Example/xDripG5/Data.swift b/CGMBLEKit Example/Data.swift similarity index 100% rename from Example/xDripG5/Data.swift rename to CGMBLEKit Example/Data.swift diff --git a/Example/xDripG5/Info.plist b/CGMBLEKit Example/Info.plist similarity index 81% rename from Example/xDripG5/Info.plist rename to CGMBLEKit Example/Info.plist index daa2deb6..dcf8ae11 100644 --- a/Example/xDripG5/Info.plist +++ b/CGMBLEKit Example/Info.plist @@ -3,7 +3,7 @@ CFBundleDevelopmentRegion - en + $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -15,9 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.4.1 - CFBundleSignature - ???? + 1.0 CFBundleVersion 1 LSRequiresIPhoneOS @@ -32,7 +30,6 @@ Main UIRequiredDeviceCapabilities - bluetooth-le armv7 UISupportedInterfaceOrientations @@ -40,7 +37,13 @@ UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight diff --git a/Example/xDripG5/NSUserDefaults.swift b/CGMBLEKit Example/NSUserDefaults.swift similarity index 100% rename from Example/xDripG5/NSUserDefaults.swift rename to CGMBLEKit Example/NSUserDefaults.swift diff --git a/Example/xDripG5/ViewController.swift b/CGMBLEKit Example/ViewController.swift similarity index 89% rename from Example/xDripG5/ViewController.swift rename to CGMBLEKit Example/ViewController.swift index faef5334..57ebdc19 100644 --- a/Example/xDripG5/ViewController.swift +++ b/CGMBLEKit Example/ViewController.swift @@ -68,12 +68,10 @@ class ViewController: UIViewController, TransmitterDelegate, UITextFieldDelegate if let text = textField.text { let newString = text.replacingCharacters(in: range.rangeOfString(text), with: string) - if newString.characters.count > 6 { + if newString.count > 6 { return false - } else if newString.characters.count == 6 { - AppDelegate.sharedDelegate.transmitter?.ID = newString - UserDefaults.standard.transmitterID = newString - + } else if newString.count == 6 { + AppDelegate.sharedDelegate.transmitterID = newString textField.text = newString textField.resignFirstResponder() @@ -86,7 +84,7 @@ class ViewController: UIViewController, TransmitterDelegate, UITextFieldDelegate } func textFieldDidEndEditing(_ textField: UITextField) { - if textField.text?.characters.count != 6 { + if textField.text?.count != 6 { textField.text = UserDefaults.standard.transmitterID } } @@ -102,6 +100,7 @@ class ViewController: UIViewController, TransmitterDelegate, UITextFieldDelegate // MARK: - TransmitterDelegate func transmitter(_ transmitter: Transmitter, didError error: Error) { + print("Transmitter Error: \(error)") titleLabel.text = NSLocalizedString("Error", comment: "Title displayed during error response") subtitleLabel.text = "\(error)" @@ -129,8 +128,8 @@ class ViewController: UIViewController, TransmitterDelegate, UITextFieldDelegate private extension NSRange { func rangeOfString(_ string: String) -> Range { - let startIndex = string.characters.index(string.startIndex, offsetBy: location) - let endIndex = string.characters.index(startIndex, offsetBy: length) + let startIndex = string.index(string.startIndex, offsetBy: location) + let endIndex = string.index(startIndex, offsetBy: length) return startIndex.. "../" -end diff --git a/Example/Podfile.lock b/Example/Podfile.lock deleted file mode 100644 index 9d30a5a1..00000000 --- a/Example/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - xDripG5 (0.8.0) - -DEPENDENCIES: - - xDripG5 (from `../`) - -EXTERNAL SOURCES: - xDripG5: - :path: ../ - -SPEC CHECKSUMS: - xDripG5: 8779a4f495fd8eb81a3d75457afe9b95fb52f61d - -PODFILE CHECKSUM: 6b30cba971694d5258509315fb52eb645c9bc5e3 - -COCOAPODS: 1.1.0.rc.2 diff --git a/Example/xDripG5.xcodeproj/project.pbxproj b/Example/xDripG5.xcodeproj/project.pbxproj deleted file mode 100644 index 02b5616c..00000000 --- a/Example/xDripG5.xcodeproj/project.pbxproj +++ /dev/null @@ -1,436 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 48; - objects = { - -/* Begin PBXBuildFile section */ - 06C991A3D94948120AD2A278 /* Pods_xDripG5_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42011659993839B43D24C553 /* Pods_xDripG5_Example.framework */; }; - 43846AC21D8F812A00799272 /* Data.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43846AC11D8F812A00799272 /* Data.swift */; }; - 439FCA211C332AA4007DE84C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 439FCA1F1C332AA4007DE84C /* LaunchScreen.storyboard */; }; - 439FCA231C332AE5007DE84C /* NSUserDefaults.swift in Sources */ = {isa = PBXBuildFile; fileRef = 439FCA221C332AE5007DE84C /* NSUserDefaults.swift */; }; - 43E3979F1D569B340028E321 /* HKUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43E3979E1D569B340028E321 /* HKUnit.swift */; }; - 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; - 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; - 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; - 607FACDD1AFB9204008FA782 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Assets.xcassets */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 42011659993839B43D24C553 /* Pods_xDripG5_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_xDripG5_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 43846AC11D8F812A00799272 /* Data.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Data.swift; sourceTree = ""; }; - 439FCA201C332AA4007DE84C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 439FCA221C332AE5007DE84C /* NSUserDefaults.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSUserDefaults.swift; sourceTree = ""; }; - 43E3979E1D569B340028E321 /* HKUnit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = HKUnit.swift; path = ../../xDripG5/HKUnit.swift; sourceTree = ""; }; - 598554A3C216FA3B8F8CD6BE /* xDripG5.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = xDripG5.podspec; path = ../xDripG5.podspec; sourceTree = ""; }; - 607FACD01AFB9204008FA782 /* xDripG5_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = xDripG5_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 607FACDC1AFB9204008FA782 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - CFBD776BFE02F42998A8820B /* Pods-xDripG5_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-xDripG5_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-xDripG5_Example/Pods-xDripG5_Example.release.xcconfig"; sourceTree = ""; }; - D5D93ACFC3BB0465B3F5E4EC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; - F3147B948B4F90A741304461 /* Pods-xDripG5_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-xDripG5_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-xDripG5_Example/Pods-xDripG5_Example.debug.xcconfig"; sourceTree = ""; }; - FE032190446F27C4005989E9 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 607FACCD1AFB9204008FA782 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 06C991A3D94948120AD2A278 /* Pods_xDripG5_Example.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 34954A068C4B6DF9520CE4A1 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 42011659993839B43D24C553 /* Pods_xDripG5_Example.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 607FACC71AFB9204008FA782 = { - isa = PBXGroup; - children = ( - 607FACF51AFB993E008FA782 /* Podspec Metadata */, - 607FACD21AFB9204008FA782 /* Example for xDripG5 */, - 607FACD11AFB9204008FA782 /* Products */, - 9B5F5984038242D4DB623E80 /* Pods */, - 34954A068C4B6DF9520CE4A1 /* Frameworks */, - ); - sourceTree = ""; - }; - 607FACD11AFB9204008FA782 /* Products */ = { - isa = PBXGroup; - children = ( - 607FACD01AFB9204008FA782 /* xDripG5_Example.app */, - ); - name = Products; - sourceTree = ""; - }; - 607FACD21AFB9204008FA782 /* Example for xDripG5 */ = { - isa = PBXGroup; - children = ( - 607FACD51AFB9204008FA782 /* AppDelegate.swift */, - 43846AC11D8F812A00799272 /* Data.swift */, - 43E3979E1D569B340028E321 /* HKUnit.swift */, - 439FCA221C332AE5007DE84C /* NSUserDefaults.swift */, - 607FACD71AFB9204008FA782 /* ViewController.swift */, - 607FACDC1AFB9204008FA782 /* Assets.xcassets */, - 439FCA1F1C332AA4007DE84C /* LaunchScreen.storyboard */, - 607FACD91AFB9204008FA782 /* Main.storyboard */, - 607FACD31AFB9204008FA782 /* Supporting Files */, - ); - name = "Example for xDripG5"; - path = xDripG5; - sourceTree = ""; - }; - 607FACD31AFB9204008FA782 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 607FACD41AFB9204008FA782 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { - isa = PBXGroup; - children = ( - 598554A3C216FA3B8F8CD6BE /* xDripG5.podspec */, - FE032190446F27C4005989E9 /* README.md */, - D5D93ACFC3BB0465B3F5E4EC /* LICENSE */, - ); - name = "Podspec Metadata"; - sourceTree = ""; - }; - 9B5F5984038242D4DB623E80 /* Pods */ = { - isa = PBXGroup; - children = ( - F3147B948B4F90A741304461 /* Pods-xDripG5_Example.debug.xcconfig */, - CFBD776BFE02F42998A8820B /* Pods-xDripG5_Example.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 607FACCF1AFB9204008FA782 /* xDripG5_Example */ = { - isa = PBXNativeTarget; - buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "xDripG5_Example" */; - buildPhases = ( - 1A9A76347F38888700DA6FA9 /* [CP] Check Pods Manifest.lock */, - 607FACCC1AFB9204008FA782 /* Sources */, - 607FACCD1AFB9204008FA782 /* Frameworks */, - 607FACCE1AFB9204008FA782 /* Resources */, - 4B912A9AD16911278D3DAA5C /* [CP] Embed Pods Frameworks */, - 2FC4228A9369221D367ED688 /* [CP] Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = xDripG5_Example; - productName = xDripG5; - productReference = 607FACD01AFB9204008FA782 /* xDripG5_Example.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 607FACC81AFB9204008FA782 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0900; - ORGANIZATIONNAME = "Nathan Racklyeft"; - TargetAttributes = { - 607FACCF1AFB9204008FA782 = { - CreatedOnToolsVersion = 6.3.1; - LastSwiftMigration = 0800; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "xDripG5" */; - compatibilityVersion = "Xcode 8.0"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 607FACC71AFB9204008FA782; - productRefGroup = 607FACD11AFB9204008FA782 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 607FACCF1AFB9204008FA782 /* xDripG5_Example */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 607FACCE1AFB9204008FA782 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 439FCA211C332AA4007DE84C /* LaunchScreen.storyboard in Resources */, - 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, - 607FACDD1AFB9204008FA782 /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 1A9A76347F38888700DA6FA9 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; - 2FC4228A9369221D367ED688 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-xDripG5_Example/Pods-xDripG5_Example-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - 4B912A9AD16911278D3DAA5C /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-xDripG5_Example/Pods-xDripG5_Example-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 607FACCC1AFB9204008FA782 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, - 43846AC21D8F812A00799272 /* Data.swift in Sources */, - 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, - 43E3979F1D569B340028E321 /* HKUnit.swift in Sources */, - 439FCA231C332AE5007DE84C /* NSUserDefaults.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 439FCA1F1C332AA4007DE84C /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 439FCA201C332AA4007DE84C /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; - 607FACD91AFB9204008FA782 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 607FACDA1AFB9204008FA782 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 607FACED1AFB9204008FA782 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - 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_EMPTY_BODY = YES; - 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; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.3; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 607FACEE1AFB9204008FA782 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - 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_EMPTY_BODY = YES; - 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; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.3; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 607FACF01AFB9204008FA782 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F3147B948B4F90A741304461 /* Pods-xDripG5_Example.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = xDripG5/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MODULE_NAME = ExampleApp; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.xDripG5-Example"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 607FACF11AFB9204008FA782 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = CFBD776BFE02F42998A8820B /* Pods-xDripG5_Example.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = xDripG5/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MODULE_NAME = ExampleApp; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.xDripG5-Example"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "xDripG5" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 607FACED1AFB9204008FA782 /* Debug */, - 607FACEE1AFB9204008FA782 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "xDripG5_Example" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 607FACF01AFB9204008FA782 /* Debug */, - 607FACF11AFB9204008FA782 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 607FACC81AFB9204008FA782 /* Project object */; -} diff --git a/Example/xDripG5.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/xDripG5.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 11256294..00000000 --- a/Example/xDripG5.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Example/xDripG5.xcodeproj/xcshareddata/xcschemes/xDripG5-Example.xcscheme b/Example/xDripG5.xcodeproj/xcshareddata/xcschemes/xDripG5-Example.xcscheme deleted file mode 100644 index 20557d8f..00000000 --- a/Example/xDripG5.xcodeproj/xcshareddata/xcschemes/xDripG5-Example.xcscheme +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/xDripG5.xcworkspace/contents.xcworkspacedata b/Example/xDripG5.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 0591c333..00000000 --- a/Example/xDripG5.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/xDripG5.xcodeproj/project.pbxproj b/xDripG5.xcodeproj/project.pbxproj index 7bd773e9..cc4fceeb 100644 --- a/xDripG5.xcodeproj/project.pbxproj +++ b/xDripG5.xcodeproj/project.pbxproj @@ -13,6 +13,14 @@ 4323115F1EFC870300B95E62 /* OSLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4323115E1EFC870300B95E62 /* OSLog.swift */; }; 43460F88200B30D10030C0E3 /* TransmitterIDTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43460F87200B30D10030C0E3 /* TransmitterIDTests.swift */; }; 435535D41FB2C1B000CE5A23 /* PeripheralManagerError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 435535D31FB2C1B000CE5A23 /* PeripheralManagerError.swift */; }; + 437AFEFA2038EC43008C4892 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 437AFEF92038EC43008C4892 /* AppDelegate.swift */; }; + 437AFEFC2038EC43008C4892 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 437AFEFB2038EC43008C4892 /* ViewController.swift */; }; + 437AFF012038EC43008C4892 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 437AFF002038EC43008C4892 /* Assets.xcassets */; }; + 437AFF042038EC43008C4892 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 437AFF022038EC43008C4892 /* LaunchScreen.storyboard */; }; + 437AFF0F2038ED71008C4892 /* HKUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 437AFF0E2038ED71008C4892 /* HKUnit.swift */; }; + 437AFF122038EDEC008C4892 /* xDripG5.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43CABDF31C3506F100005705 /* xDripG5.framework */; }; + 437AFF132038EDEC008C4892 /* xDripG5.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 43CABDF31C3506F100005705 /* xDripG5.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 437AFF182038EDF9008C4892 /* HealthKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43E3978C1D566AEA0028E321 /* HealthKit.framework */; }; 43846AC61D8F896C00799272 /* CalibrationDataRxMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43846AC51D8F896C00799272 /* CalibrationDataRxMessage.swift */; }; 43846AC81D8F89BE00799272 /* CalibrationDataRxMessageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43846AC71D8F89BE00799272 /* CalibrationDataRxMessageTests.swift */; }; 43880F981D9E19FC009061A8 /* TransmitterVersionRxMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43880F971D9E19FC009061A8 /* TransmitterVersionRxMessage.swift */; }; @@ -57,9 +65,19 @@ 43F82BD01D035D68006F5DD7 /* SessionStopRxMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F82BCF1D035D68006F5DD7 /* SessionStopRxMessage.swift */; }; 43F82BD21D037040006F5DD7 /* SessionStopRxMessageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F82BD11D037040006F5DD7 /* SessionStopRxMessageTests.swift */; }; 43F82BD41D037227006F5DD7 /* SessionStartRxMessageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F82BD31D037227006F5DD7 /* SessionStartRxMessageTests.swift */; }; + C19084BB203932BD00AA47F3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C19084B9203932BD00AA47F3 /* Main.storyboard */; }; + C1CD8B0B203931AD00A8F498 /* Data.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1CD8B09203931AD00A8F498 /* Data.swift */; }; + C1CD8B0C203931AD00A8F498 /* NSUserDefaults.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1CD8B0A203931AD00A8F498 /* NSUserDefaults.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 437AFF142038EDEC008C4892 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 43CABDEA1C3506F100005705 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 43CABDF21C3506F100005705; + remoteInfo = xDripG5; + }; 43CABDFF1C3506F100005705 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 43CABDEA1C3506F100005705 /* Project object */; @@ -79,6 +97,17 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 437AFF162038EDED008C4892 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 437AFF132038EDEC008C4892 /* xDripG5.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ @@ -88,6 +117,13 @@ 4323115E1EFC870300B95E62 /* OSLog.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OSLog.swift; sourceTree = ""; }; 43460F87200B30D10030C0E3 /* TransmitterIDTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransmitterIDTests.swift; sourceTree = ""; }; 435535D31FB2C1B000CE5A23 /* PeripheralManagerError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PeripheralManagerError.swift; sourceTree = ""; }; + 437AFEF72038EC43008C4892 /* CGMBLEKit Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CGMBLEKit Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 437AFEF92038EC43008C4892 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 437AFEFB2038EC43008C4892 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 437AFF002038EC43008C4892 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 437AFF032038EC43008C4892 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 437AFF052038EC43008C4892 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 437AFF0E2038ED71008C4892 /* HKUnit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = HKUnit.swift; path = xDripG5/HKUnit.swift; sourceTree = SOURCE_ROOT; }; 43846AC51D8F896C00799272 /* CalibrationDataRxMessage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CalibrationDataRxMessage.swift; sourceTree = ""; }; 43846AC71D8F89BE00799272 /* CalibrationDataRxMessageTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CalibrationDataRxMessageTests.swift; sourceTree = ""; }; 43880F971D9E19FC009061A8 /* TransmitterVersionRxMessage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransmitterVersionRxMessage.swift; sourceTree = ""; }; @@ -135,9 +171,21 @@ 43F82BCF1D035D68006F5DD7 /* SessionStopRxMessage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SessionStopRxMessage.swift; sourceTree = ""; }; 43F82BD11D037040006F5DD7 /* SessionStopRxMessageTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SessionStopRxMessageTests.swift; sourceTree = ""; }; 43F82BD31D037227006F5DD7 /* SessionStartRxMessageTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SessionStartRxMessageTests.swift; sourceTree = ""; }; + C19084BA203932BD00AA47F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + C1CD8B09203931AD00A8F498 /* Data.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Data.swift; sourceTree = ""; }; + C1CD8B0A203931AD00A8F498 /* NSUserDefaults.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSUserDefaults.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 437AFEF42038EC43008C4892 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 437AFF182038EDF9008C4892 /* HealthKit.framework in Frameworks */, + 437AFF122038EDEC008C4892 /* xDripG5.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 43CABDEF1C3506F100005705 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -157,13 +205,38 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 437AFEF82038EC43008C4892 /* CGMBLEKit Example */ = { + isa = PBXGroup; + children = ( + C1CD8B09203931AD00A8F498 /* Data.swift */, + C1CD8B0A203931AD00A8F498 /* NSUserDefaults.swift */, + 437AFEF92038EC43008C4892 /* AppDelegate.swift */, + 437AFF0E2038ED71008C4892 /* HKUnit.swift */, + 437AFEFB2038EC43008C4892 /* ViewController.swift */, + 437AFF002038EC43008C4892 /* Assets.xcassets */, + C19084B9203932BD00AA47F3 /* Main.storyboard */, + 437AFF022038EC43008C4892 /* LaunchScreen.storyboard */, + 437AFF052038EC43008C4892 /* Info.plist */, + ); + path = "CGMBLEKit Example"; + sourceTree = ""; + }; + 437AFF172038EDF9008C4892 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; 43CABDE91C3506F100005705 = { isa = PBXGroup; children = ( 43E3978C1D566AEA0028E321 /* HealthKit.framework */, 43CABDF51C3506F100005705 /* xDripG5 */, 43CABE011C3506F100005705 /* xDripG5Tests */, + 437AFEF82038EC43008C4892 /* CGMBLEKit Example */, 43CABDF41C3506F100005705 /* Products */, + 437AFF172038EDF9008C4892 /* Frameworks */, ); sourceTree = ""; }; @@ -172,6 +245,7 @@ children = ( 43CABDF31C3506F100005705 /* xDripG5.framework */, 43CABDFD1C3506F100005705 /* xDripG5Tests.xctest */, + 437AFEF72038EC43008C4892 /* CGMBLEKit Example.app */, ); name = Products; sourceTree = ""; @@ -263,6 +337,25 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ + 437AFEF62038EC43008C4892 /* CGMBLEKit Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 437AFF082038EC43008C4892 /* Build configuration list for PBXNativeTarget "CGMBLEKit Example" */; + buildPhases = ( + 437AFEF32038EC43008C4892 /* Sources */, + 437AFEF42038EC43008C4892 /* Frameworks */, + 437AFEF52038EC43008C4892 /* Resources */, + 437AFF162038EDED008C4892 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 437AFF152038EDEC008C4892 /* PBXTargetDependency */, + ); + name = "CGMBLEKit Example"; + productName = "CGMBLEKit Example"; + productReference = 437AFEF72038EC43008C4892 /* CGMBLEKit Example.app */; + productType = "com.apple.product-type.application"; + }; 43CABDF21C3506F100005705 /* xDripG5 */ = { isa = PBXNativeTarget; buildConfigurationList = 43CABE071C3506F100005705 /* Build configuration list for PBXNativeTarget "xDripG5" */; @@ -306,10 +399,19 @@ 43CABDEA1C3506F100005705 /* Project object */ = { isa = PBXProject; attributes = { - LastSwiftUpdateCheck = 0730; + LastSwiftUpdateCheck = 0920; LastUpgradeCheck = 0900; ORGANIZATIONNAME = "LoopKit Authors"; TargetAttributes = { + 437AFEF62038EC43008C4892 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.BackgroundModes = { + enabled = 1; + }; + }; + }; 43CABDF21C3506F100005705 = { CreatedOnToolsVersion = 7.2; LastSwiftMigration = 0800; @@ -326,6 +428,7 @@ hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = 43CABDE91C3506F100005705; productRefGroup = 43CABDF41C3506F100005705 /* Products */; @@ -334,11 +437,22 @@ targets = ( 43CABDF21C3506F100005705 /* xDripG5 */, 43CABDFC1C3506F100005705 /* xDripG5Tests */, + 437AFEF62038EC43008C4892 /* CGMBLEKit Example */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 437AFEF52038EC43008C4892 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C19084BB203932BD00AA47F3 /* Main.storyboard in Resources */, + 437AFF042038EC43008C4892 /* LaunchScreen.storyboard in Resources */, + 437AFF012038EC43008C4892 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 43CABDF11C3506F100005705 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -356,6 +470,18 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 437AFEF32038EC43008C4892 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C1CD8B0C203931AD00A8F498 /* NSUserDefaults.swift in Sources */, + 437AFEFC2038EC43008C4892 /* ViewController.swift in Sources */, + 437AFEFA2038EC43008C4892 /* AppDelegate.swift in Sources */, + 437AFF0F2038ED71008C4892 /* HKUnit.swift in Sources */, + C1CD8B0B203931AD00A8F498 /* Data.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 43CABDEE1C3506F100005705 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -419,6 +545,11 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 437AFF152038EDEC008C4892 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 43CABDF21C3506F100005705 /* xDripG5 */; + targetProxy = 437AFF142038EDEC008C4892 /* PBXContainerItemProxy */; + }; 43CABE001C3506F100005705 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 43CABDF21C3506F100005705 /* xDripG5 */; @@ -426,7 +557,73 @@ }; /* End PBXTargetDependency section */ +/* Begin PBXVariantGroup section */ + 437AFF022038EC43008C4892 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 437AFF032038EC43008C4892 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + C19084B9203932BD00AA47F3 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + C19084BA203932BD00AA47F3 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + /* Begin XCBuildConfiguration section */ + 437AFF062038EC43008C4892 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = "CGMBLEKit Example/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.loopkit.g5.CGMBLEKit-Example"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 437AFF072038EC43008C4892 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = "CGMBLEKit Example/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.loopkit.g5.CGMBLEKit-Example"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; 43CABE051C3506F100005705 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -541,8 +738,10 @@ isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = 57NRR26737; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 15; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -562,8 +761,10 @@ isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = 57NRR26737; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 15; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -609,6 +810,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 437AFF082038EC43008C4892 /* Build configuration list for PBXNativeTarget "CGMBLEKit Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 437AFF062038EC43008C4892 /* Debug */, + 437AFF072038EC43008C4892 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 43CABDED1C3506F100005705 /* Build configuration list for PBXProject "xDripG5" */ = { isa = XCConfigurationList; buildConfigurations = (