Skip to content

Notification names changed in LoopKit #1165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions Loop/Managers/LoopDataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -104,7 +104,7 @@ final class LoopDataManager {
}
},
NotificationCenter.default.addObserver(
forName: .GlucoseSamplesDidChange,
forName: GlucoseStore.glucoseSamplesDidChange,
object: glucoseStore,
queue: nil
) { (note) in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion WatchApp Extension/Controllers/ChartHUDController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down