Skip to content

Commit 3dbc602

Browse files
committed
new patches
1 parent b06bf10 commit 3dbc602

File tree

5 files changed

+105
-81
lines changed

5 files changed

+105
-81
lines changed

1988/dev_1988.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop fee85e0..0c84d6c:
1+
Submodule Loop fee85e0..68bca42:
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
@@ -276,7 +276,7 @@ index ffc66ee3..1b1bab1f 100644
276276
"",
277277
diff --git a/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
278278
new file mode 100644
279-
index 00000000..90d05d0c
279+
index 00000000..1e78c81e
280280
--- /dev/null
281281
+++ b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
282282
@@ -0,0 +1,55 @@
@@ -330,7 +330,7 @@ index 00000000..90d05d0c
330330
+ }
331331
+}
332332
+
333-
+struct EnhancedAutoBolusSelectionView_Previews: PreviewProvider {
333+
+struct GlucoseBasedApplicationFactorSelectionView_Previews: PreviewProvider {
334334
+ static var previews: some View {
335335
+ GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: .constant(true))
336336
+ }

1988/dev_1988_2008.patch

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,39 @@
1-
Submodule Loop 5bb5ed9..7ac05ea:
1+
Submodule Loop 2ed8c7b..8959bf4:
22
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
3-
index a27a4503..ea632e72 100644
3+
index a27a4503..9c023c06 100644
44
--- a/Loop/Loop.xcodeproj/project.pbxproj
55
+++ b/Loop/Loop.xcodeproj/project.pbxproj
6-
@@ -519,6 +519,11 @@
6+
@@ -519,6 +519,10 @@
77
C1FB4290217922A100FAB378 /* PumpManagerUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1FB428E217921D600FAB378 /* PumpManagerUI.swift */; };
88
DD3DBD272A33AEC8000F8B5B /* SettingsView+algorithmExperimentsSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD3DBD262A33AEC8000F8B5B /* SettingsView+algorithmExperimentsSection.swift */; };
99
DD3DBD292A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD3DBD282A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift */; };
1010
+ DDC389F62A2B61750066E2E8 /* ApplicationFactorStrategy.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389F52A2B61750066E2E8 /* ApplicationFactorStrategy.swift */; };
1111
+ DDC389F82A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389F72A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift */; };
1212
+ DDC389FA2A2B62470066E2E8 /* ConstantDosingStrategy.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389F92A2B62470066E2E8 /* ConstantDosingStrategy.swift */; };
13-
+ DDC389FC2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389FB2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift */; };
1413
+ DDC389FE2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC389FD2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift */; };
1514
E90909D124E34AC500F963D2 /* high_and_rising_with_cob_momentum_effect.json in Resources */ = {isa = PBXBuildFile; fileRef = E90909CC24E34AC500F963D2 /* high_and_rising_with_cob_momentum_effect.json */; };
1615
E90909D224E34AC500F963D2 /* high_and_rising_with_cob_insulin_effect.json in Resources */ = {isa = PBXBuildFile; fileRef = E90909CD24E34AC500F963D2 /* high_and_rising_with_cob_insulin_effect.json */; };
1716
E90909D324E34AC500F963D2 /* high_and_rising_with_cob_predicted_glucose.json in Resources */ = {isa = PBXBuildFile; fileRef = E90909CE24E34AC500F963D2 /* high_and_rising_with_cob_predicted_glucose.json */; };
18-
@@ -1689,6 +1694,11 @@
17+
@@ -1689,6 +1693,10 @@
1918
C1FF3D4D29C786A900BDC1EC /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/InfoPlist.strings; sourceTree = "<group>"; };
2019
DD3DBD262A33AEC8000F8B5B /* SettingsView+algorithmExperimentsSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SettingsView+algorithmExperimentsSection.swift"; sourceTree = "<group>"; };
2120
DD3DBD282A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntegralRetrospectiveCorrectionSelectionView.swift; sourceTree = "<group>"; };
2221
+ DDC389F52A2B61750066E2E8 /* ApplicationFactorStrategy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApplicationFactorStrategy.swift; sourceTree = "<group>"; };
2322
+ DDC389F72A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlucoseBasedApplicationFactorStrategy.swift; sourceTree = "<group>"; };
2423
+ DDC389F92A2B62470066E2E8 /* ConstantDosingStrategy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConstantDosingStrategy.swift; sourceTree = "<group>"; };
25-
+ DDC389FB2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SettingsView+algorithmExperimentsSection.swift"; sourceTree = "<group>"; };
2624
+ DDC389FD2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlucoseBasedApplicationFactorSelectionView.swift; sourceTree = "<group>"; };
2725
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>"; };
2826
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>"; };
2927
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>"; };
30-
@@ -2316,6 +2326,7 @@
31-
isa = PBXGroup;
32-
children = (
33-
A98556842493F901000FD662 /* AlertStore+SimulatedCoreData.swift */,
34-
+ DDC389FB2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift */,
35-
C1D289B422F90A52003FFBD9 /* BasalDeliveryState.swift */,
36-
A9F703722489BC8500C98AD8 /* CarbStore+SimulatedCoreData.swift */,
37-
C17824991E1999FA00D9D25C /* CaseCountable.swift */,
38-
@@ -2404,6 +2415,7 @@
28+
@@ -2404,6 +2412,7 @@
3929
4311FB9A1F37FE1B00D4C0A7 /* TitleSubtitleTextFieldTableViewCell.swift */,
4030
C1AF062229426300002C1B19 /* ManualGlucoseEntryRow.swift */,
4131
DD3DBD282A33AFE9000F8B5B /* IntegralRetrospectiveCorrectionSelectionView.swift */,
4232
+ DDC389FD2A2C4C830066E2E8 /* GlucoseBasedApplicationFactorSelectionView.swift */,
4333
);
4434
path = Views;
4535
sourceTree = "<group>";
46-
@@ -2445,6 +2457,9 @@
36+
@@ -2445,6 +2454,9 @@
4737
C1F2075B26D6F9B0007AB7EB /* ProfileExpirationAlerter.swift */,
4838
A96DAC2B2838F31200D94E38 /* SharedLogging.swift */,
4939
7E69CFFB2A16A77E00203CBD /* ResetLoopManager.swift */,
@@ -53,39 +43,31 @@ index a27a4503..ea632e72 100644
5343
);
5444
path = Managers;
5545
sourceTree = "<group>";
56-
@@ -3876,6 +3891,7 @@
46+
@@ -3876,6 +3888,7 @@
5747
C1201E2C23ECDBD0002DA84A /* WatchContextRequestUserInfo.swift in Sources */,
5848
1D49795824E7289700948F05 /* ServicesViewModel.swift in Sources */,
5949
1D4A3E2D2478628500FD601B /* StoredAlert+CoreDataClass.swift in Sources */,
6050
+ DDC389FA2A2B62470066E2E8 /* ConstantDosingStrategy.swift in Sources */,
6151
892D7C5123B54A15008A9656 /* CarbEntryViewController.swift in Sources */,
6252
B4E202302661063E009421B5 /* AutomaticDosingStatus.swift in Sources */,
6353
C191D2A125B3ACAA00C26C0B /* DosingStrategySelectionView.swift in Sources */,
64-
@@ -3909,6 +3925,7 @@
54+
@@ -3909,6 +3922,7 @@
6555
1DB619AC270BAD3D006C9D07 /* VersionUpdateViewModel.swift in Sources */,
6656
A9C62D882331703100535612 /* Service.swift in Sources */,
6757
89CAB36324C8FE96009EE3CE /* PredictedGlucoseChartView.swift in Sources */,
6858
+ DDC389F82A2B620B0066E2E8 /* GlucoseBasedApplicationFactorStrategy.swift in Sources */,
6959
4F6663941E905FD2009E74FC /* ChartColorPalette+Loop.swift in Sources */,
7060
A9F703732489BC8500C98AD8 /* CarbStore+SimulatedCoreData.swift in Sources */,
7161
4328E0351CFC0AE100E199AA /* WatchDataManager.swift in Sources */,
72-
@@ -3938,6 +3955,7 @@
73-
E9B080B1253BDA6300BAD8F8 /* UserDefaults+LoopIntents.swift in Sources */,
74-
C1AF062329426300002C1B19 /* ManualGlucoseEntryRow.swift in Sources */,
75-
C148CEE724FD91BD00711B3B /* DeliveryUncertaintyAlertManager.swift in Sources */,
76-
+ DDC389FC2A2BC6670066E2E8 /* SettingsView+algorithmExperimentsSection.swift in Sources */,
77-
1D12D3B92548EFDD00B53E8B /* main.swift in Sources */,
78-
435400341C9F878D00D5819C /* SetBolusUserInfo.swift in Sources */,
79-
A9DCF32A25B0FABF00C89088 /* LoopUIColorPalette+Default.swift in Sources */,
80-
@@ -3972,6 +3990,7 @@
62+
@@ -3972,6 +3986,7 @@
8163
A97F250825E056D500F0EE19 /* OnboardingManager.swift in Sources */,
8264
438D42F91D7C88BC003244B0 /* PredictionInputEffect.swift in Sources */,
8365
892A5D692230C41D008961AB /* RangeReplaceableCollection.swift in Sources */,
8466
+ DDC389F62A2B61750066E2E8 /* ApplicationFactorStrategy.swift in Sources */,
8567
4F70C2101DE8FAC5006380B7 /* ExtensionDataManager.swift in Sources */,
8668
43DFB62320D4CAE7008A7BAE /* PumpManager.swift in Sources */,
8769
A9FB75F1252BE320004C7D3F /* BolusDosingDecision.swift in Sources */,
88-
@@ -3979,6 +3998,7 @@
70+
@@ -3979,6 +3994,7 @@
8971
431A8C401EC6E8AB00823B9C /* CircleMaskView.swift in Sources */,
9072
1D05219D2469F1F5000EBBDE /* AlertStore.swift in Sources */,
9173
439897371CD2F80600223065 /* AnalyticsServicesManager.swift in Sources */,
@@ -94,7 +76,7 @@ index a27a4503..ea632e72 100644
9476
895FE0952201234000FCF18A /* OverrideSelectionViewController.swift in Sources */,
9577
C1EF747228D6A44A00C8C083 /* CrashRecoveryManager.swift in Sources */,
9678
diff --git a/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift b/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift
97-
index b6f07ba1..f9eb8d47 100644
79+
index b6f07ba1..b3a5091e 100644
9880
--- a/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift
9981
+++ b/Loop/Loop/Extensions/SettingsView+algorithmExperimentsSection.swift
10082
@@ -5,6 +5,7 @@
@@ -110,16 +92,24 @@ index b6f07ba1..f9eb8d47 100644
11092
internal var algorithmExperimentsSection: some View {
11193
Section(header: SectionHeader(label: NSLocalizedString("Algorithm Experiments ⚠️", comment: "The title of the Algorithm Experiments section in settings"))) {
11294
-
113-
+
11495
+ NavigationLink(destination: GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: $isGlucoseBasedApplicationFactorEnabled)) {
11596
+ HStack {
11697
+ Text("Glucose Based Partial Application")
11798
+ Spacer()
11899
+ Text(isGlucoseBasedApplicationFactorEnabled ? "On" : "Off")
119-
+
100+
+ }
101+
+ }
120102
NavigationLink(destination: IntegralRetrospectiveCorrectionSelectionView(isIntegralRetrospectiveCorrectionEnabled: $isIntegralRetrospectiveCorrectionEnabled)) {
121103
HStack {
122104
Text("Integral Retrospective Correction")
105+
@@ -20,6 +27,6 @@ extension SettingsView {
106+
Text(isIntegralRetrospectiveCorrectionEnabled ? "On" : "Off")
107+
}
108+
}
109+
- }
110+
+ }
111+
}
112+
}
123113
diff --git a/Loop/Loop/Managers/ApplicationFactorStrategy.swift b/Loop/Loop/Managers/ApplicationFactorStrategy.swift
124114
new file mode 100644
125115
index 00000000..bf67935c
@@ -271,7 +261,7 @@ index 15c593e7..8133aa84 100644
271261
"",
272262
diff --git a/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
273263
new file mode 100644
274-
index 00000000..90d05d0c
264+
index 00000000..1e78c81e
275265
--- /dev/null
276266
+++ b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
277267
@@ -0,0 +1,55 @@
@@ -325,19 +315,20 @@ index 00000000..90d05d0c
325315
+ }
326316
+}
327317
+
328-
+struct EnhancedAutoBolusSelectionView_Previews: PreviewProvider {
318+
+struct GlucoseBasedApplicationFactorSelectionView_Previews: PreviewProvider {
329319
+ static var previews: some View {
330320
+ GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: .constant(true))
331321
+ }
332322
+}
333323
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
334-
index 2615596c..baedff6e 100644
324+
index 2615596c..12255a62 100644
335325
--- a/Loop/Loop/Views/SettingsView.swift
336326
+++ b/Loop/Loop/Views/SettingsView.swift
337-
@@ -32,6 +32,8 @@ public struct SettingsView: View {
327+
@@ -31,7 +31,8 @@ public struct SettingsView: View {
328+
@State private var deletePumpDataAlertIsPresented = false
338329
@State private var deleteCGMDataAlertIsPresented = false
339330
@State internal var isIntegralRetrospectiveCorrectionEnabled = UserDefaults.standard.bool(forKey: "isExperimentalIntegralRetrospectiveCorrectionEnabled")
340-
331+
-
341332
+ @State internal var isGlucoseBasedApplicationFactorEnabled = UserDefaults.standard.bool(forKey: "applyExperimentalGlucoseBasedApplicationFactor")
342333
+
343334
var localizedAppNameAndVersion: String

1988/dev_1988_cto.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Submodule Loop contains modified content
2-
Submodule Loop ca4cba7..6425fe1:
2+
Submodule Loop 6e822fd..6c13724:
33
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
44
index 9c95453a..5f46c3d4 100644
55
--- a/Loop/Loop.xcodeproj/project.pbxproj
@@ -330,7 +330,7 @@ index 085b2420..1b1bab1f 100644
330330
"",
331331
diff --git a/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
332332
new file mode 100644
333-
index 00000000..90d05d0c
333+
index 00000000..1e78c81e
334334
--- /dev/null
335335
+++ b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
336336
@@ -0,0 +1,55 @@
@@ -384,7 +384,7 @@ index 00000000..90d05d0c
384384
+ }
385385
+}
386386
+
387-
+struct EnhancedAutoBolusSelectionView_Previews: PreviewProvider {
387+
+struct GlucoseBasedApplicationFactorSelectionView_Previews: PreviewProvider {
388388
+ static var previews: some View {
389389
+ GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: .constant(true))
390390
+ }

2008/dev_2008.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop fee85e0..5bb5ed9:
1+
Submodule Loop fee85e0..2ed8c7b:
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
@@ -453,7 +453,7 @@ index 10ed414a..a0eea761 100644
453453
cell.subtitleLabel?.text = subtitleText
454454
diff --git a/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
455455
new file mode 100644
456-
index 00000000..b38cba6b
456+
index 00000000..d7940e28
457457
--- /dev/null
458458
+++ b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
459459
@@ -0,0 +1,54 @@
@@ -506,7 +506,7 @@ index 00000000..b38cba6b
506506
+ }
507507
+}
508508
+
509-
+struct EnhancedAutoBolusSelectionView_Previews: PreviewProvider {
509+
+struct IntegralRetrospectiveCorrectionSelectionView_Previews: PreviewProvider {
510510
+ static var previews: some View {
511511
+ IntegralRetrospectiveCorrectionSelectionView(isIntegralRetrospectiveCorrectionEnabled: .constant(true))
512512
+ }

0 commit comments

Comments
 (0)