diff --git a/.travis.yml b/.travis.yml index f532350..8665de7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: objective-c -osx_image: xcode11 +osx_image: xcode11.6 before_script: - carthage bootstrap diff --git a/Cartfile.resolved b/Cartfile.resolved index d656185..d5db1f4 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1,2 @@ -github "LoopKit/LoopKit" "8bc6e4b4ed4d8a7e98d8dcf539238b98c83ed3d1" +github "LoopKit/LoopKit" "7ed70cb9bffc340d36234c4a1d93fc64d5362f67" +github "i-schuetz/SwiftCharts" "0.6.5" diff --git a/ShareClient.xcodeproj/project.pbxproj b/ShareClient.xcodeproj/project.pbxproj index 2c5be94..2206f5d 100644 --- a/ShareClient.xcodeproj/project.pbxproj +++ b/ShareClient.xcodeproj/project.pbxproj @@ -44,6 +44,9 @@ A9ED4D9E225EB4D30080DEBA /* ShareClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 432B0E8B1CDFC3C50045347B /* ShareClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; A9ED4DA0225EB4D30080DEBA /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 43AB5125213315D300B3D58D /* Localizable.strings */; }; A9ED4DAF225EB93A0080DEBA /* HealthKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9ED4DAE225EB9390080DEBA /* HealthKit.framework */; }; + B40BF26623ABD4E700A43CEE /* ShareClientPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = B40BF26523ABD4E700A43CEE /* ShareClientPlugin.swift */; }; + B40BF26823ABD55200A43CEE /* OSLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = B40BF26723ABD55200A43CEE /* OSLog.swift */; }; + B40BF26923ABD55200A43CEE /* OSLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = B40BF26723ABD55200A43CEE /* OSLog.swift */; }; C17D3CC62184CC26003458C8 /* LoopKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43A8EC7B210E661400A81379 /* LoopKit.framework */; }; /* End PBXBuildFile section */ @@ -62,6 +65,13 @@ remoteGlobalIDString = 432B0E871CDFC3C50045347B; remoteInfo = ShareClient; }; + B40BF26A23ABD5E100A43CEE /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 432B0E7F1CDFC3C50045347B /* Project object */; + proxyType = 1; + remoteGlobalIDString = 43A8EC81210E664300A81379; + remoteInfo = ShareClientUI; + }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ @@ -126,6 +136,11 @@ 7D9BF1302336FFAF005DCFD6 /* da */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/Localizable.strings; sourceTree = ""; }; A9ED4DA4225EB4D30080DEBA /* ShareClient.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ShareClient.framework; sourceTree = BUILT_PRODUCTS_DIR; }; A9ED4DAE225EB9390080DEBA /* HealthKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HealthKit.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework; sourceTree = DEVELOPER_DIR; }; + B40BF25E23ABD47400A43CEE /* ShareClientPlugin.loopplugin */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ShareClientPlugin.loopplugin; sourceTree = BUILT_PRODUCTS_DIR; }; + B40BF26023ABD47400A43CEE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B40BF26423ABD4E600A43CEE /* ShareClientPlugin-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ShareClientPlugin-Bridging-Header.h"; sourceTree = ""; }; + B40BF26523ABD4E700A43CEE /* ShareClientPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareClientPlugin.swift; sourceTree = ""; }; + B40BF26723ABD55200A43CEE /* OSLog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OSLog.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -167,6 +182,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + B40BF25B23ABD47400A43CEE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -177,6 +199,7 @@ 432B0E8A1CDFC3C50045347B /* ShareClient */, 432B0E961CDFC3C50045347B /* ShareClientTests */, 43A8EC83210E664300A81379 /* ShareClientUI */, + B40BF25F23ABD47400A43CEE /* ShareClientPlugin */, 432B0E891CDFC3C50045347B /* Products */, 43A8EC7A210E661300A81379 /* Frameworks */, ); @@ -189,6 +212,7 @@ 432B0E921CDFC3C50045347B /* ShareClientTests.xctest */, 43A8EC82210E664300A81379 /* ShareClientUI.framework */, A9ED4DA4225EB4D30080DEBA /* ShareClient.framework */, + B40BF25E23ABD47400A43CEE /* ShareClientPlugin.loopplugin */, ); name = Products; sourceTree = ""; @@ -205,6 +229,7 @@ 4325E9D0210E6A3D00969CE5 /* TimeInterval.swift */, 432B0E8B1CDFC3C50045347B /* ShareClient.h */, 432B0E8D1CDFC3C50045347B /* Info.plist */, + B40BF26723ABD55200A43CEE /* OSLog.swift */, ); path = ShareClient; sourceTree = ""; @@ -253,6 +278,16 @@ path = Common; sourceTree = ""; }; + B40BF25F23ABD47400A43CEE /* ShareClientPlugin */ = { + isa = PBXGroup; + children = ( + B40BF26023ABD47400A43CEE /* Info.plist */, + B40BF26523ABD4E700A43CEE /* ShareClientPlugin.swift */, + B40BF26423ABD4E600A43CEE /* ShareClientPlugin-Bridging-Header.h */, + ); + path = ShareClientPlugin; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -357,6 +392,24 @@ productReference = A9ED4DA4225EB4D30080DEBA /* ShareClient.framework */; productType = "com.apple.product-type.framework"; }; + B40BF25D23ABD47400A43CEE /* ShareClientPlugin */ = { + isa = PBXNativeTarget; + buildConfigurationList = B40BF26323ABD47400A43CEE /* Build configuration list for PBXNativeTarget "ShareClientPlugin" */; + buildPhases = ( + B40BF25A23ABD47400A43CEE /* Sources */, + B40BF25B23ABD47400A43CEE /* Frameworks */, + B40BF25C23ABD47400A43CEE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + B40BF26B23ABD5E100A43CEE /* PBXTargetDependency */, + ); + name = ShareClientPlugin; + productName = ShareClientPlugin; + productReference = B40BF25E23ABD47400A43CEE /* ShareClientPlugin.loopplugin */; + productType = "com.apple.product-type.bundle"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -380,6 +433,11 @@ LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; + B40BF25D23ABD47400A43CEE = { + CreatedOnToolsVersion = 11.0; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + }; }; }; buildConfigurationList = 432B0E821CDFC3C50045347B /* Build configuration list for PBXProject "ShareClient" */; @@ -387,6 +445,7 @@ developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, fr, @@ -415,6 +474,7 @@ A9ED4D91225EB4D30080DEBA /* ShareClient-watchOS */, 432B0E911CDFC3C50045347B /* ShareClientTests */, 43A8EC81210E664300A81379 /* ShareClientUI */, + B40BF25D23ABD47400A43CEE /* ShareClientPlugin */, ); }; /* End PBXProject section */ @@ -451,6 +511,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + B40BF25C23ABD47400A43CEE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ @@ -483,6 +550,7 @@ files = ( 4325E9CF210E6A0A00969CE5 /* HKUnit.swift in Sources */, 4325E9D1210E6A3D00969CE5 /* TimeInterval.swift in Sources */, + B40BF26823ABD55200A43CEE /* OSLog.swift in Sources */, 43A8EC9D210E68CE00A81379 /* ShareClientManager.swift in Sources */, 43AB51362133177800B3D58D /* LocalizedString.swift in Sources */, 43A8EC9B210E68BA00A81379 /* ShareGlucose+GlucoseKit.swift in Sources */, @@ -527,6 +595,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + B40BF25A23ABD47400A43CEE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B40BF26923ABD55200A43CEE /* OSLog.swift in Sources */, + B40BF26623ABD4E700A43CEE /* ShareClientPlugin.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -540,6 +617,11 @@ target = 432B0E871CDFC3C50045347B /* ShareClient */; targetProxy = A9E521F6225E949400EDDEF2 /* PBXContainerItemProxy */; }; + B40BF26B23ABD5E100A43CEE /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 43A8EC81210E664300A81379 /* ShareClientUI */; + targetProxy = B40BF26A23ABD5E100A43CEE /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -643,7 +725,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.1; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LOCALIZED_STRING_MACRO_NAMES = ( NSLocalizedString, CFLocalizedString, @@ -704,7 +786,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.1; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LOCALIZED_STRING_MACRO_NAMES = ( NSLocalizedString, CFLocalizedString, @@ -886,6 +968,7 @@ SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "watchos watchsimulator"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 4; }; name = Debug; @@ -917,6 +1000,66 @@ }; name = Release; }; + B40BF26123ABD47400A43CEE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = ShareClientPlugin/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = mh_dylib; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.loopkit.ShareClientPlugin; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "ShareClientPlugin/ShareClientPlugin-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; + WRAPPER_EXTENSION = loopplugin; + }; + name = Debug; + }; + B40BF26223ABD47400A43CEE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = ShareClientPlugin/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = mh_dylib; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.loopkit.ShareClientPlugin; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "ShareClientPlugin/ShareClientPlugin-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; + WRAPPER_EXTENSION = loopplugin; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -965,6 +1108,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + B40BF26323ABD47400A43CEE /* Build configuration list for PBXNativeTarget "ShareClientPlugin" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B40BF26123ABD47400A43CEE /* Debug */, + B40BF26223ABD47400A43CEE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 432B0E7F1CDFC3C50045347B /* Project object */; diff --git a/ShareClient/OSLog.swift b/ShareClient/OSLog.swift new file mode 100644 index 0000000..e572460 --- /dev/null +++ b/ShareClient/OSLog.swift @@ -0,0 +1,51 @@ +// +// OSLog.swift +// ShareClient +// +// Created by Nathaniel Hamming on 2019-12-19. +// Copyright © 2019 Mark Wilson. All rights reserved. +// + +import os.log + + +extension OSLog { + convenience init(category: String) { + self.init(subsystem: "com.loopkit.ShareClient", category: category) + } + + func debug(_ message: StaticString, _ args: CVarArg...) { + log(message, type: .debug, args) + } + + func info(_ message: StaticString, _ args: CVarArg...) { + log(message, type: .info, args) + } + + func `default`(_ message: StaticString, _ args: CVarArg...) { + log(message, type: .default, args) + } + + func error(_ message: StaticString, _ args: CVarArg...) { + log(message, type: .error, args) + } + + private func log(_ message: StaticString, type: OSLogType, _ args: [CVarArg]) { + switch args.count { + case 0: + os_log(message, log: self, type: type) + case 1: + os_log(message, log: self, type: type, args[0]) + case 2: + os_log(message, log: self, type: type, args[0], args[1]) + case 3: + os_log(message, log: self, type: type, args[0], args[1], args[2]) + case 4: + os_log(message, log: self, type: type, args[0], args[1], args[2], args[3]) + case 5: + os_log(message, log: self, type: type, args[0], args[1], args[2], args[3], args[4]) + default: + os_log(message, log: self, type: type, args) + } + } +} diff --git a/ShareClient/ShareClientManager.swift b/ShareClient/ShareClientManager.swift index 8d9d6f9..088aaa2 100644 --- a/ShareClient/ShareClientManager.swift +++ b/ShareClient/ShareClientManager.swift @@ -10,6 +10,7 @@ import HealthKit public class ShareClientManager: CGMManager { + public static var managerIdentifier = "DexShareClient" public init() { @@ -60,7 +61,7 @@ public class ShareClientManager: CGMManager { public let shouldSyncToRemoteService = false - public var sensorState: SensorDisplayable? { + public var glucoseDisplay: GlucoseDisplayable? { return latestBackfill } @@ -96,7 +97,7 @@ public class ShareClientManager: CGMManager { } let newGlucose = glucose.filterDateRange(startDate, nil) let newSamples = newGlucose.filter({ $0.isStateValid }).map { - return NewGlucoseSample(date: $0.startDate, quantity: $0.quantity, isDisplayOnly: false, syncIdentifier: "\(Int($0.startDate.timeIntervalSince1970))", device: self.device) + return NewGlucoseSample(date: $0.startDate, quantity: $0.quantity, isDisplayOnly: false, wasUserEntered: false, syncIdentifier: "\(Int($0.startDate.timeIntervalSince1970))", device: self.device) } self.latestBackfill = newGlucose.first @@ -119,3 +120,15 @@ public class ShareClientManager: CGMManager { ].joined(separator: "\n") } } + +// MARK: - AlertResponder implementation +extension ShareClientManager { + public func acknowledgeAlert(alertIdentifier: Alert.AlertIdentifier) { } +} + +// MARK: - AlertSoundVendor implementation +extension ShareClientManager { + public func getSoundBaseURL() -> URL? { return nil } + public func getSounds() -> [Alert.Sound] { return [] } +} + diff --git a/ShareClient/ShareGlucose+GlucoseKit.swift b/ShareClient/ShareGlucose+GlucoseKit.swift index b40c86f..97ec9e2 100644 --- a/ShareClient/ShareGlucose+GlucoseKit.swift +++ b/ShareClient/ShareGlucose+GlucoseKit.swift @@ -22,7 +22,7 @@ extension ShareGlucose: GlucoseValue { } -extension ShareGlucose: SensorDisplayable { +extension ShareGlucose: GlucoseDisplayable { public var isStateValid: Bool { return glucose >= 39 } @@ -34,9 +34,14 @@ extension ShareGlucose: SensorDisplayable { public var isLocal: Bool { return false } + + // TODO Placeholder. This functionality will come with LOOP-1311 + public var glucoseRangeCategory: GlucoseRangeCategory? { + return nil + } } -extension SensorDisplayable { +extension GlucoseDisplayable { public var stateDescription: String { if isStateValid { return LocalizedString("OK", comment: "Sensor state description for the valid state") diff --git a/ShareClientPlugin/Info.plist b/ShareClientPlugin/Info.plist new file mode 100644 index 0000000..797c568 --- /dev/null +++ b/ShareClientPlugin/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSHumanReadableCopyright + Copyright © 2019 Mark Wilson. All rights reserved. + NSPrincipalClass + ShareClientPlugin + com.loopkit.Loop.CGMManagerDisplayName + Dexcom Share + com.loopkit.Loop.CGMManagerIdentifier + ShareClient + + diff --git a/ShareClientPlugin/ShareClientPlugin-Bridging-Header.h b/ShareClientPlugin/ShareClientPlugin-Bridging-Header.h new file mode 100644 index 0000000..1b2cb5d --- /dev/null +++ b/ShareClientPlugin/ShareClientPlugin-Bridging-Header.h @@ -0,0 +1,4 @@ +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// + diff --git a/ShareClientPlugin/ShareClientPlugin.swift b/ShareClientPlugin/ShareClientPlugin.swift new file mode 100644 index 0000000..3009fa3 --- /dev/null +++ b/ShareClientPlugin/ShareClientPlugin.swift @@ -0,0 +1,31 @@ +// +// ShareClientPlugin.swift +// ShareClientPlugin +// +// Created by Nathaniel Hamming on 2019-12-19. +// Copyright © 2019 Mark Wilson. All rights reserved. +// + +import Foundation +import LoopKitUI +import ShareClient +import ShareClientUI +import os.log + +class ShareClientPlugin: NSObject, LoopUIPlugin { + + private let log = OSLog(category: "ShareClientPlugin") + + public var pumpManagerType: PumpManagerUI.Type? { + return nil + } + + public var cgmManagerType: CGMManagerUI.Type? { + return ShareClientManager.self + } + + override init() { + super.init() + log.default("ShareClientPlugin Instantiated") + } +} diff --git a/ShareClientUI/ShareClientManager+UI.swift b/ShareClientUI/ShareClientManager+UI.swift index dcac4a0..4a52e03 100644 --- a/ShareClientUI/ShareClientManager+UI.swift +++ b/ShareClientUI/ShareClientManager+UI.swift @@ -5,17 +5,18 @@ // Copyright © 2018 LoopKit Authors. All rights reserved. // +import SwiftUI +import LoopKit import LoopKitUI import HealthKit import ShareClient - extension ShareClientManager: CGMManagerUI { - public static func setupViewController() -> (UIViewController & CGMManagerSetupViewController & CompletionNotifying)? { + public static func setupViewController(glucoseTintColor: Color, guidanceColors: GuidanceColors) -> (UIViewController & CGMManagerSetupViewController & CompletionNotifying)? { return ShareClientSetupViewController() } - public func settingsViewController(for glucoseUnit: HKUnit) -> (UIViewController & CompletionNotifying) { + public func settingsViewController(for glucoseUnit: HKUnit, glucoseTintColor: Color, guidanceColors: GuidanceColors) -> (UIViewController & CompletionNotifying) { let settings = ShareClientSettingsViewController(cgmManager: self, glucoseUnit: glucoseUnit, allowsDeletion: true) let nav = SettingsNavigationViewController(rootViewController: settings) return nav @@ -24,4 +25,14 @@ extension ShareClientManager: CGMManagerUI { public var smallImage: UIImage? { return nil } + + // TODO Placeholder. This functionality will come with LOOP-1311 + public var cgmStatusHighlight: DeviceStatusHighlight? { + return nil + } + + // TODO Placeholder. This functionality will come with LOOP-1311 + public var cgmLifecycleProgress: DeviceLifecycleProgress? { + return nil + } }