Skip to content

Commit 23f72dd

Browse files
committed
new patches
1 parent 21f39e3 commit 23f72dd

File tree

6 files changed

+569
-51
lines changed

6 files changed

+569
-51
lines changed

1988/dev_1988.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop fee85e0..d763cae:
1+
Submodule Loop fee85e0..66723d6:
22
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
33
index 360db94c..f403686e 100644
44
--- a/Loop/Loop.xcodeproj/project.pbxproj

1988/dev_1988_2008.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop 498d51c..bc470c2:
1+
Submodule Loop a20b958..8b119a6:
22
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
33
index a27a4503..9c023c06 100644
44
--- a/Loop/Loop.xcodeproj/project.pbxproj

1988/dev_1988_2008_cto.patch

Lines changed: 495 additions & 0 deletions
Large diffs are not rendered by default.

1988/dev_1988_cto.patch

Lines changed: 70 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,50 @@
11
Submodule Loop contains modified content
2-
Submodule Loop 0258326..f083293:
2+
Submodule Loop 36617b2..98e221e:
33
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
4-
index ba7f9464..b2efab9c 100644
4+
index 9c95453a..5f46c3d4 100644
55
--- a/Loop/Loop.xcodeproj/project.pbxproj
66
+++ b/Loop/Loop.xcodeproj/project.pbxproj
7-
@@ -520,6 +520,10 @@
7+
@@ -517,6 +517,11 @@
8+
C1FB428D21791D2500FAB378 /* PumpManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43C3B6F620BBCAA30026CAFA /* PumpManager.swift */; };
9+
C1FB428F217921D600FAB378 /* PumpManagerUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1FB428E217921D600FAB378 /* PumpManagerUI.swift */; };
810
C1FB4290217922A100FAB378 /* PumpManagerUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1FB428E217921D600FAB378 /* PumpManagerUI.swift */; };
9-
DD3DBD272A33AEC8000F8B5B /* SettingsView+algorithmExperimentsSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD3DBD262A33AEC8000F8B5B /* SettingsView+algorithmExperimentsSection.swift */; };
10-
DD3DBD292A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD3DBD282A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift */; };
1111
+ DDC389F62A2B61750066E2E8 /* ApplicationFactorStrategy.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389F52A2B61750066E2E8 /* ApplicationFactorStrategy.swift */; };
1212
+ DDC389F82A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389F72A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift */; };
1313
+ DDC389FA2A2B62470066E2E8 /* ConstantDosingStrategy.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389F92A2B62470066E2E8 /* ConstantDosingStrategy.swift */; };
14+
+ DDC389FC2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389FB2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift */; };
1415
+ DDC389FE2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389FD2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift */; };
1516
E90909D124E34AC500F963D2 /* high_and_rising_with_cob_momentum_effect.json in Resources */ = {isa = PBXBuildFile; fileRef = E90909CC24E34AC500F963D2 /* high_and_rising_with_cob_momentum_effect.json */; };
1617
E90909D224E34AC500F963D2 /* high_and_rising_with_cob_insulin_effect.json in Resources */ = {isa = PBXBuildFile; fileRef = E90909CD24E34AC500F963D2 /* high_and_rising_with_cob_insulin_effect.json */; };
1718
E90909D324E34AC500F963D2 /* high_and_rising_with_cob_predicted_glucose.json in Resources */ = {isa = PBXBuildFile; fileRef = E90909CE24E34AC500F963D2 /* high_and_rising_with_cob_predicted_glucose.json */; };
18-
@@ -1691,6 +1695,10 @@
19+
@@ -1685,6 +1690,11 @@
20+
C1FF3D4B29C786A900BDC1EC /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/Localizable.strings; sourceTree = "<group>"; };
21+
C1FF3D4C29C786A900BDC1EC /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/Localizable.strings; sourceTree = "<group>"; };
1922
C1FF3D4D29C786A900BDC1EC /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/InfoPlist.strings; sourceTree = "<group>"; };
20-
DD3DBD262A33AEC8000F8B5B /* SettingsView+algorithmExperimentsSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SettingsView+algorithmExperimentsSection.swift"; sourceTree = "<group>"; };
21-
DD3DBD282A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntegralRetrospectiveCorrectionSelectionView.swift; sourceTree = "<group>"; };
2223
+ DDC389F52A2B61750066E2E8 /* ApplicationFactorStrategy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApplicationFactorStrategy.swift; sourceTree = "<group>"; };
2324
+ DDC389F72A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlucoseBasedApplicationFactorStrategy.swift; sourceTree = "<group>"; };
2425
+ DDC389F92A2B62470066E2E8 /* ConstantDosingStrategy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConstantDosingStrategy.swift; sourceTree = "<group>"; };
26+
+ DDC389FB2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SettingsView+algorithmExperimentsSection.swift"; sourceTree = "<group>"; };
2527
+ DDC389FD2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlucoseBasedApplicationFactorSelectionView.swift; sourceTree = "<group>"; };
2628
E90909CC24E34AC500F963D2 /* high_and_rising_with_cob_momentum_effect.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = high_and_rising_with_cob_momentum_effect.json; sourceTree = "<group>"; };
2729
E90909CD24E34AC500F963D2 /* high_and_rising_with_cob_insulin_effect.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = high_and_rising_with_cob_insulin_effect.json; sourceTree = "<group>"; };
2830
E90909CE24E34AC500F963D2 /* high_and_rising_with_cob_predicted_glucose.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = high_and_rising_with_cob_predicted_glucose.json; sourceTree = "<group>"; };
29-
@@ -2407,6 +2415,7 @@
31+
@@ -2312,6 +2322,7 @@
32+
isa = PBXGroup;
33+
children = (
34+
A98556842493F901000FD662 /* AlertStore+SimulatedCoreData.swift */,
35+
+ DDC389FB2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift */,
36+
C1D289B422F90A52003FFBD9 /* BasalDeliveryState.swift */,
37+
A9F703722489BC8500C98AD8 /* CarbStore+SimulatedCoreData.swift */,
38+
C17824991E1999FA00D9D25C /* CaseCountable.swift */,
39+
@@ -2398,6 +2409,7 @@
40+
43F64DD81D9C92C900D24DC6 /* TitleSubtitleTableViewCell.swift */,
3041
4311FB9A1F37FE1B00D4C0A7 /* TitleSubtitleTextFieldTableViewCell.swift */,
3142
C1AF062229426300002C1B19 /* ManualGlucoseEntryRow.swift */,
32-
DD3DBD282A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift */,
3343
+ DDC389FD2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift */,
3444
);
3545
path = Views;
3646
sourceTree = "<group>";
37-
@@ -2448,6 +2457,9 @@
47+
@@ -2439,6 +2451,9 @@
3848
C1F2075B26D6F9B0007AB7EB /* ProfileExpirationAlerter.swift */,
3949
A96DAC2B2838F31200D94E38 /* SharedLogging.swift */,
4050
7E69CFFB2A16A77E00203CBD /* ResetLoopManager.swift */,
@@ -44,31 +54,39 @@ index ba7f9464..b2efab9c 100644
4454
);
4555
path = Managers;
4656
sourceTree = "<group>";
47-
@@ -3880,6 +3892,7 @@
57+
@@ -3870,6 +3885,7 @@
4858
C1201E2C23ECDBD0002DA84A /* WatchContextRequestUserInfo.swift in Sources */,
4959
1D49795824E7289700948F05 /* ServicesViewModel.swift in Sources */,
5060
1D4A3E2D2478628500FD601B /* StoredAlert+CoreDataClass.swift in Sources */,
5161
+ DDC389FA2A2B62470066E2E8 /* ConstantDosingStrategy.swift in Sources */,
5262
892D7C5123B54A15008A9656 /* CarbEntryViewController.swift in Sources */,
5363
B4E202302661063E009421B5 /* AutomaticDosingStatus.swift in Sources */,
5464
C191D2A125B3ACAA00C26C0B /* DosingStrategySelectionView.swift in Sources */,
55-
@@ -3913,6 +3926,7 @@
65+
@@ -3901,6 +3917,7 @@
5666
1DB619AC270BAD3D006C9D07 /* VersionUpdateViewModel.swift in Sources */,
5767
A9C62D882331703100535612 /* Service.swift in Sources */,
5868
89CAB36324C8FE96009EE3CE /* PredictedGlucoseChartView.swift in Sources */,
5969
+ DDC389F82A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift in Sources */,
6070
4F6663941E905FD2009E74FC /* ChartColorPalette+Loop.swift in Sources */,
6171
A9F703732489BC8500C98AD8 /* CarbStore+SimulatedCoreData.swift in Sources */,
6272
4328E0351CFC0AE100E199AA /* WatchDataManager.swift in Sources */,
63-
@@ -3976,6 +3990,7 @@
73+
@@ -3930,6 +3947,7 @@
74+
E9B080B1253BDA6300BAD8F8 /* UserDefaults+LoopIntents.swift in Sources */,
75+
C1AF062329426300002C1B19 /* ManualGlucoseEntryRow.swift in Sources */,
76+
C148CEE724FD91BD00711B3B /* DeliveryUncertaintyAlertManager.swift in Sources */,
77+
+ DDC389FC2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift in Sources */,
78+
1D12D3B92548EFDD00B53E8B /* main.swift in Sources */,
79+
435400341C9F878D00D5819C /* SetBolusUserInfo.swift in Sources */,
80+
A9DCF32A25B0FABF00C89088 /* LoopUIColorPalette+Default.swift in Sources */,
81+
@@ -3964,6 +3982,7 @@
6482
A97F250825E056D500F0EE19 /* OnboardingManager.swift in Sources */,
6583
438D42F91D7C88BC003244B0 /* PredictionInputEffect.swift in Sources */,
6684
892A5D692230C41D008961AB /* RangeReplaceableCollection.swift in Sources */,
6785
+ DDC389F62A2B61750066E2E8 /* ApplicationFactorStrategy.swift in Sources */,
6886
4F70C2101DE8FAC5006380B7 /* ExtensionDataManager.swift in Sources */,
6987
43DFB62320D4CAE7008A7BAE /* PumpManager.swift in Sources */,
7088
A9FB75F1252BE320004C7D3F /* BolusDosingDecision.swift in Sources */,
71-
@@ -3983,6 +3998,7 @@
89+
@@ -3971,6 +3990,7 @@
7290
431A8C401EC6E8AB00823B9C /* CircleMaskView.swift in Sources */,
7391
1D05219D2469F1F5000EBBDE /* AlertStore.swift in Sources */,
7492
439897371CD2F80600223065 /* AnalyticsServicesManager.swift in Sources */,
@@ -77,40 +95,37 @@ index ba7f9464..b2efab9c 100644
7795
895FE0952201234000FCF18A /* OverrideSelectionViewController.swift in Sources */,
7896
C1EF747228D6A44A00C8C083 /* CrashRecoveryManager.swift in Sources */,
7997
diff --git a/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift b/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift
80-
index b6f07ba1..b3a5091e 100644
81-
--- a/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift
98+
new file mode 100644
99+
index 00000000..811a2f33
100+
--- /dev/null
82101
+++ b/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift
83-
@@ -5,6 +5,7 @@
84-
// Created by Jonas Björkert on 2023-06-03.
85-
// Copyright © 2023 LoopKit Authors. All rights reserved.
86-
//
102+
@@ -0,0 +1,26 @@
103+
+//
104+
+// SettingsView+algorithmExperimentsSection.swift
105+
+// Loop
106+
+//
107+
+// Created by Jonas Björkert on 2023-06-03.
108+
+// Copyright © 2023 LoopKit Authors. All rights reserved.
109+
+//
110+
+
111+
+import Foundation
112+
+import SwiftUI
113+
+import LoopKitUI
114+
+
115+
+extension SettingsView {
116+
+ internal var algorithmExperimentsSection: some View {
117+
+ Section(header: SectionHeader(label: NSLocalizedString("Algorithm Experiments ⚠️", comment: "The title of the Algorithm Experiments section in settings"))) {
87118
+
88-
import Foundation
89-
import SwiftUI
90-
import LoopKitUI
91-
@@ -12,7 +13,13 @@ import LoopKitUI
92-
extension SettingsView {
93-
internal var algorithmExperimentsSection: some View {
94-
Section(header: SectionHeader(label: NSLocalizedString("Algorithm Experiments ⚠️", comment: "The title of the Algorithm Experiments section in settings"))) {
95-
-
96119
+ NavigationLink(destination: GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: $isGlucoseBasedApplicationFactorEnabled)) {
97120
+ HStack {
98121
+ Text("Glucose Based Partial Application")
99122
+ Spacer()
100123
+ Text(isGlucoseBasedApplicationFactorEnabled ? "On" : "Off")
101124
+ }
102125
+ }
103-
NavigationLink(destination: IntegralRetrospectiveCorrectionSelectionView(isIntegralRetrospectiveCorrectionEnabled: $isIntegralRetrospectiveCorrectionEnabled)) {
104-
HStack {
105-
Text("Integral Retrospective Correction")
106-
@@ -20,6 +27,6 @@ extension SettingsView {
107-
Text(isIntegralRetrospectiveCorrectionEnabled ? "On" : "Off")
108-
}
109-
}
110-
- }
111126
+ }
112-
}
113-
}
127+
+ }
128+
+}
114129
diff --git a/Loop/Loop/Managers/ApplicationFactorStrategy.swift b/Loop/Loop/Managers/ApplicationFactorStrategy.swift
115130
new file mode 100644
116131
index 00000000..bf67935c
@@ -224,7 +239,7 @@ index 00000000..41caa3d7
224239
+ }
225240
+}
226241
diff --git a/Loop/Loop/Managers/LoopDataManager.swift b/Loop/Loop/Managers/LoopDataManager.swift
227-
index 7db36fc7..8133aa84 100644
242+
index 085b2420..1b1bab1f 100644
228243
--- a/Loop/Loop/Managers/LoopDataManager.swift
229244
+++ b/Loop/Loop/Managers/LoopDataManager.swift
230245
@@ -1692,42 +1692,29 @@ extension LoopDataManager {
@@ -305,7 +320,7 @@ index 7db36fc7..8133aa84 100644
305320

306321
let temp = predictedGlucose.recommendedTempBasal(
307322
to: glucoseTargetRange!,
308-
@@ -2159,6 +2146,7 @@ extension LoopDataManager {
323+
@@ -2157,6 +2144,7 @@ extension LoopDataManager {
309324
"insulinOnBoard: \(String(describing: manager.insulinOnBoard))",
310325
"error: \(String(describing: state.error))",
311326
"overrideInUserDefaults: \(String(describing: UserDefaults.appGroup?.intentExtensionOverrideToSet))",
@@ -375,19 +390,27 @@ index 00000000..1e78c81e
375390
+ }
376391
+}
377392
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
378-
index 2615596c..12255a62 100644
393+
index dc3f6ec3..24032203 100644
379394
--- a/Loop/Loop/Views/SettingsView.swift
380395
+++ b/Loop/Loop/Views/SettingsView.swift
381-
@@ -31,7 +31,8 @@ public struct SettingsView: View {
396+
@@ -30,6 +30,7 @@ public struct SettingsView: View {
397+
@State private var therapySettingsIsPresented: Bool = false
382398
@State private var deletePumpDataAlertIsPresented = false
383399
@State private var deleteCGMDataAlertIsPresented = false
384-
@State internal var isIntegralRetrospectiveCorrectionEnabled = UserDefaults.standard.bool(forKey: "isExperimentalIntegralRetrospectiveCorrectionEnabled")
385-
-
386400
+ @State internal var isGlucoseBasedApplicationFactorEnabled = UserDefaults.standard.bool(forKey: "applyExperimentalGlucoseBasedApplicationFactor")
387-
+
401+
388402
var localizedAppNameAndVersion: String
389403

390-
public init(viewModel: SettingsViewModel, localizedAppNameAndVersion: String) {
404+
@@ -50,6 +51,9 @@ public struct SettingsView: View {
405+
if FeatureFlags.automaticBolusEnabled {
406+
dosingStrategySection
407+
}
408+
+ // Note: Experimental Section
409+
+ algorithmExperimentsSection
410+
+ //
411+
alertManagementSection
412+
if viewModel.pumpManagerSettingsViewModel.isSetUp() {
413+
configurationSection
391414
diff --git a/Loop/Settings.bundle/Root.plist b/Loop/Settings.bundle/Root.plist
392415
index a176bd16..0df628c0 100644
393416
--- a/Loop/Settings.bundle/Root.plist

2008/dev_2008.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop fee85e0..498d51c:
1+
Submodule Loop fee85e0..a20b958:
22
diff --git a/Loop/Common/Extensions/GlucoseRangeSchedule.swift b/Loop/Common/Extensions/GlucoseRangeSchedule.swift
33
index c8ef74fe..ccc75b0b 100644
44
--- a/Loop/Common/Extensions/GlucoseRangeSchedule.swift

2008/dev_2008_1988.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop d763cae..cdf8291:
1+
Submodule Loop 66723d6..fd41718:
22
diff --git a/Loop/Common/Extensions/GlucoseRangeSchedule.swift b/Loop/Common/Extensions/GlucoseRangeSchedule.swift
33
index c8ef74fe..ccc75b0b 100644
44
--- a/Loop/Common/Extensions/GlucoseRangeSchedule.swift

0 commit comments

Comments
 (0)