From 38510bc6be42e83e85d0b9a4f489654da9ddd483 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Wed, 30 Oct 2019 18:23:17 -0500 Subject: [PATCH 1/2] Notification names changed in LoopKit --- Loop/Managers/LoopDataManager.swift | 4 ++-- WatchApp Extension/Controllers/CarbEntryListController.swift | 2 +- WatchApp Extension/Controllers/ChartHUDController.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Loop/Managers/LoopDataManager.swift b/Loop/Managers/LoopDataManager.swift index aac8e72500..5bbc7611c6 100644 --- a/Loop/Managers/LoopDataManager.swift +++ b/Loop/Managers/LoopDataManager.swift @@ -91,7 +91,7 @@ final class LoopDataManager { // Observe changes notificationObservers = [ NotificationCenter.default.addObserver( - forName: .CarbEntriesDidUpdate, + forName: CarbStore.carbEntriesDidUpdate, object: carbStore, queue: nil ) { (note) -> Void in @@ -104,7 +104,7 @@ final class LoopDataManager { } }, NotificationCenter.default.addObserver( - forName: .GlucoseSamplesDidChange, + forName: GlucoseStore.glucoseSamplesDidChange, object: glucoseStore, queue: nil ) { (note) in diff --git a/WatchApp Extension/Controllers/CarbEntryListController.swift b/WatchApp Extension/Controllers/CarbEntryListController.swift index bc933b160d..cafdd5863f 100644 --- a/WatchApp Extension/Controllers/CarbEntryListController.swift +++ b/WatchApp Extension/Controllers/CarbEntryListController.swift @@ -46,7 +46,7 @@ class CarbEntryListController: WKInterfaceController, IdentifiableClass { override func willActivate() { observers = [ - NotificationCenter.default.addObserver(forName: .CarbEntriesDidUpdate, object: loopManager.carbStore, queue: nil) { [weak self] (note) in + NotificationCenter.default.addObserver(forName: CarbStore.carbEntriesDidUpdate, object: loopManager.carbStore, queue: nil) { [weak self] (note) in self?.log.default("Received CarbEntriesDidUpdate notification: %{public}@. Updating list", String(describing: note.userInfo ?? [:])) DispatchQueue.main.async { diff --git a/WatchApp Extension/Controllers/ChartHUDController.swift b/WatchApp Extension/Controllers/ChartHUDController.swift index 4d2ca3e166..ee3febba4f 100644 --- a/WatchApp Extension/Controllers/ChartHUDController.swift +++ b/WatchApp Extension/Controllers/ChartHUDController.swift @@ -118,7 +118,7 @@ final class ChartHUDController: HUDInterfaceController, WKCrownDelegate { super.willActivate() observers = [ - NotificationCenter.default.addObserver(forName: .GlucoseSamplesDidChange, object: loopManager.glucoseStore, queue: nil) { [weak self] (note) in + NotificationCenter.default.addObserver(forName: GlucoseStore.glucoseSamplesDidChange, object: loopManager.glucoseStore, queue: nil) { [weak self] (note) in self?.log.default("Received GlucoseSamplesDidChange notification: %{public}@. Updating chart", String(describing: note.userInfo ?? [:])) DispatchQueue.main.async { From 9013a8cd1058ca7fd750633a33db8c8a449a3499 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Wed, 6 Nov 2019 16:23:32 -0600 Subject: [PATCH 2/2] Bump carthage revs --- Cartfile.resolved | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cartfile.resolved b/Cartfile.resolved index f18be4f6df..f63e84ee1e 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,8 +1,8 @@ github "LoopKit/Amplitude-iOS" "2137d5fd44bf630ed33e1e72d7af6d8f8612f270" github "LoopKit/CGMBLEKit" "7417605dd898bf89378171941126c85d85dc642c" github "LoopKit/G4ShareSpy" "e62d296067180c6659166272ff9cc406f470ec9e" -github "LoopKit/LoopKit" "2dfd7b076fda52bb0710e9beba12cf092a67a769" +github "LoopKit/LoopKit" "16276559436956e2f7cb343b73b767779f9f477f" github "LoopKit/MKRingProgressView" "f548a5c64832be2d37d7c91b5800e284887a2a0a" github "LoopKit/dexcom-share-client-swift" "c4f3d48e56e5b3ad786486ccd1bbc753034096d2" github "i-schuetz/SwiftCharts" "0.6.5" -github "ps2/rileylink_ios" "88530730f45c6a846f9bb9b2d87893b1350993e2" +github "ps2/rileylink_ios" "92314a08f26e94e271961a629e4d7b898e4e2e4d"