Skip to content

Commit 705aaec

Browse files
authored
LOOP-1486: move suspend threshold editor to LoopKit (#148)
* Remove editor * Save basal rate schedule
1 parent d4f5880 commit 705aaec

File tree

3 files changed

+1
-169
lines changed

3 files changed

+1
-169
lines changed

Loop.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@
339339
892A5D59222F0A27008961AB /* Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = 892A5D58222F0A27008961AB /* Debug.swift */; };
340340
892A5D5B222F0D7C008961AB /* LoopTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 892A5D5A222F0D7C008961AB /* LoopTestingKit.framework */; };
341341
892A5D692230C41D008961AB /* RangeReplaceableCollection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 892A5D682230C41D008961AB /* RangeReplaceableCollection.swift */; };
342-
892ADE082446E1C2007CE08C /* SuspendThresholdEditor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 892ADE072446E1C2007CE08C /* SuspendThresholdEditor.swift */; };
343342
892ADE0A2446E9C3007CE08C /* ExplicitlyDismissibleModal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 892ADE092446E9C3007CE08C /* ExplicitlyDismissibleModal.swift */; };
344343
892D7C5123B54A15008A9656 /* CarbEntryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 892D7C5023B54A14008A9656 /* CarbEntryViewController.swift */; };
345344
892FB4CD22040104005293EC /* OverridePresetRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 892FB4CC22040104005293EC /* OverridePresetRow.swift */; };
@@ -1071,7 +1070,6 @@
10711070
892A5D58222F0A27008961AB /* Debug.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Debug.swift; sourceTree = "<group>"; };
10721071
892A5D5A222F0D7C008961AB /* LoopTestingKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; name = LoopTestingKit.framework; path = Carthage/Build/iOS/LoopTestingKit.framework; sourceTree = SOURCE_ROOT; };
10731072
892A5D682230C41D008961AB /* RangeReplaceableCollection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RangeReplaceableCollection.swift; sourceTree = "<group>"; };
1074-
892ADE072446E1C2007CE08C /* SuspendThresholdEditor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SuspendThresholdEditor.swift; sourceTree = "<group>"; };
10751073
892ADE092446E9C3007CE08C /* ExplicitlyDismissibleModal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExplicitlyDismissibleModal.swift; sourceTree = "<group>"; };
10761074
892D7C5023B54A14008A9656 /* CarbEntryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CarbEntryViewController.swift; sourceTree = "<group>"; };
10771075
892FB4CC22040104005293EC /* OverridePresetRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OverridePresetRow.swift; sourceTree = "<group>"; };
@@ -1760,7 +1758,6 @@
17601758
43C3B6EB20B650A80026CAFA /* SettingsImageTableViewCell.swift */,
17611759
1DE09BA824A3E23F009EE9F9 /* SettingsView.swift */,
17621760
1DB1CA4E24A56D7600B3B94C /* SettingsViewModel.swift */,
1763-
892ADE072446E1C2007CE08C /* SuspendThresholdEditor.swift */,
17641761
43F64DD81D9C92C900D24DC6 /* TitleSubtitleTableViewCell.swift */,
17651762
4311FB9A1F37FE1B00D4C0A7 /* TitleSubtitleTextFieldTableViewCell.swift */,
17661763
C1F8B1DB223862D500DD66CF /* BolusProgressTableViewCell.xib */,
@@ -2896,7 +2893,6 @@
28962893
437CEEE41CDE5C0A003C8C80 /* UIImage.swift in Sources */,
28972894
C1201E2C23ECDBD0002DA84A /* WatchContextRequestUserInfo.swift in Sources */,
28982895
1D4A3E2D2478628500FD601B /* StoredAlert+CoreDataClass.swift in Sources */,
2899-
892ADE082446E1C2007CE08C /* SuspendThresholdEditor.swift in Sources */,
29002896
892D7C5123B54A15008A9656 /* CarbEntryViewController.swift in Sources */,
29012897
A999D40424663CE1004C89D4 /* DoseStore.swift in Sources */,
29022898
43DBF0591C93F73800B3C386 /* CarbEntryTableViewController.swift in Sources */,

Loop/Managers/ServicesManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class ServicesManager {
124124
loopDataManager?.settings.maximumBasalRatePerHour = settings.maximumBasalRatePerHour
125125
loopDataManager?.insulinSensitivitySchedule = settings.insulinSensitivitySchedule
126126
loopDataManager?.carbRatioSchedule = settings.carbRatioSchedule
127+
loopDataManager?.basalRateSchedule = settings.basalRateSchedule
127128
}
128129

129130
private func restoreState() {

Loop/Views/SuspendThresholdEditor.swift

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)