Skip to content

Commit 655f7e1

Browse files
committed
Merge remote-tracking branch 'origin/dev' into ps2/LOOP-4688/diy-sync
2 parents e5efa6b + 79b648b commit 655f7e1

File tree

19 files changed

+593
-70
lines changed

19 files changed

+593
-70
lines changed

Common/Models/StatusExtensionContext.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ extension GlucoseDisplayableContext: RawRepresentable {
160160
trendType = nil
161161
}
162162

163-
if let trendRateUnit = rawValue["trendRateUnit"] as? String, let trendRateValue = rawValue["trendRateValue"] as? Double {
164-
trendRate = HKQuantity(unit: HKUnit(from: trendRateUnit), doubleValue: trendRateValue)
163+
if let trendRateValue = rawValue["trendRateValue"] as? Double {
164+
trendRate = HKQuantity(unit: .milligramsPerDeciliterPerMinute, doubleValue: trendRateValue)
165165
} else {
166166
trendRate = nil
167167
}
@@ -181,7 +181,6 @@ extension GlucoseDisplayableContext: RawRepresentable {
181181
]
182182
raw["trendType"] = trendType?.rawValue
183183
if let trendRate = trendRate {
184-
raw["trendRateUnit"] = HKUnit.milligramsPerDeciliterPerMinute.unitString
185184
raw["trendRateValue"] = trendRate.doubleValue(for: HKUnit.milligramsPerDeciliterPerMinute)
186185
}
187186
raw["glucoseRangeCategory"] = glucoseRangeCategory?.rawValue

Common/Models/WatchContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ final class WatchContext: RawRepresentable {
7575
if let rawGlucoseTrend = rawValue["gt"] as? GlucoseTrend.RawValue {
7676
glucoseTrend = GlucoseTrend(rawValue: rawGlucoseTrend)
7777
}
78-
if let glucoseTrendRateUnitString = rawValue["gtru"] as? String, let glucoseTrendRateValue = rawValue["gtrv"] as? Double {
79-
glucoseTrendRate = HKQuantity(unit: HKUnit(from: glucoseTrendRateUnitString), doubleValue: glucoseTrendRateValue)
78+
if let glucoseTrendRateValue = rawValue["gtrv"] as? Double {
79+
glucoseTrendRate = HKQuantity(unit: .milligramsPerDeciliterPerMinute, doubleValue: glucoseTrendRateValue)
8080
}
8181
glucoseDate = rawValue["gd"] as? Date
8282
glucoseIsDisplayOnly = rawValue["gdo"] as? Bool

Loop.xcodeproj/project.pbxproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
1419606428D9550400BA86E0 /* LoopKitUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 437AFEE6203688CF008C4892 /* LoopKitUI.framework */; };
1111
1419606928D9554E00BA86E0 /* LoopKitUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 437AFEE6203688CF008C4892 /* LoopKitUI.framework */; };
1212
1419606A28D955BC00BA86E0 /* MockKitUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C101947127DD473C004E7EB8 /* MockKitUI.framework */; };
13+
142CB7592A60BF2E0075748A /* EditMode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 142CB7582A60BF2E0075748A /* EditMode.swift */; };
14+
142CB75B2A60BFC30075748A /* FavoriteFoodsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 142CB75A2A60BFC30075748A /* FavoriteFoodsView.swift */; };
1315
1481F9BB28DA26F4004C5AEB /* LoopUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F75288B1DFE1DC600C322D6 /* LoopUI.framework */; };
1416
14B1735E28AED9EC006CCD7C /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14B1735D28AED9EC006CCD7C /* WidgetKit.framework */; };
1517
14B1736028AED9EC006CCD7C /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14B1735F28AED9EC006CCD7C /* SwiftUI.framework */; };
@@ -728,6 +730,9 @@
728730

729731
/* Begin PBXFileReference section */
730732
14B1735C28AED9EC006CCD7C /* Loop Widget Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Loop Widget Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
733+
142CB7582A60BF2E0075748A /* EditMode.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EditMode.swift; sourceTree = "<group>"; };
734+
142CB75A2A60BFC30075748A /* FavoriteFoodsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FavoriteFoodsView.swift; sourceTree = "<group>"; };
735+
14B1735C28AED9EC006CCD7C /* SmallStatusWidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = SmallStatusWidgetExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
731736
14B1735D28AED9EC006CCD7C /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
732737
14B1735F28AED9EC006CCD7C /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
733738
14B1736428AED9EE006CCD7C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
@@ -2163,6 +2168,7 @@
21632168
A9CBE457248AB564008E7BA2 /* DoseStore+SimulatedCoreData.swift */,
21642169
A9B996F127238705002DC09C /* DosingDecisionStore.swift */,
21652170
A9CBE459248ACBE1008E7BA2 /* DosingDecisionStore+SimulatedCoreData.swift */,
2171+
142CB7582A60BF2E0075748A /* EditMode.swift */,
21662172
A9F703742489C9A000C98AD8 /* GlucoseStore+SimulatedCoreData.swift */,
21672173
A9DCF2D525B0F3C500C89088 /* LoopUIColorPalette+Default.swift */,
21682174
89E267FE229267DF00A3F2AF /* Optional.swift */,
@@ -2215,6 +2221,7 @@
22152221
431A8C3F1EC6E8AB00823B9C /* CircleMaskView.swift */,
22162222
A9A056B224B93C62007CF06D /* CriticalEventLogExportView.swift */,
22172223
C191D2A025B3ACAA00C26C0B /* DosingStrategySelectionView.swift */,
2224+
142CB75A2A60BFC30075748A /* FavoriteFoodsView.swift */,
22182225
43D381611EBD9759007F8C8F /* HeaderValuesTableViewCell.swift */,
22192226
B43CF07D29434EC4008A520B /* HowMuteAlertWorkView.swift */,
22202227
430D85881F44037000AF2D4F /* HUDViewTableViewCell.swift */,
@@ -3607,6 +3614,7 @@
36073614
4311FB9B1F37FE1B00D4C0A7 /* TitleSubtitleTextFieldTableViewCell.swift in Sources */,
36083615
C1F2075C26D6F9B0007AB7EB /* ProfileExpirationAlerter.swift in Sources */,
36093616
B4FEEF7D24B8A71F00A8DF9B /* DeviceDataManager+DeviceStatus.swift in Sources */,
3617+
142CB7592A60BF2E0075748A /* EditMode.swift in Sources */,
36103618
E95D380324EADF36005E2F50 /* CarbStoreProtocol.swift in Sources */,
36113619
E98A55ED24EDD6380008715D /* LatestStoredSettingsProvider.swift in Sources */,
36123620
C1FB428F217921D600FAB378 /* PumpManagerUI.swift in Sources */,
@@ -3634,6 +3642,7 @@
36343642
43A567691C94880B00334FAC /* LoopDataManager.swift in Sources */,
36353643
1DA649A9244126DA00F61E75 /* InAppModalAlertScheduler.swift in Sources */,
36363644
43B260491ED248FB008CAA77 /* CarbEntryTableViewCell.swift in Sources */,
3645+
142CB75B2A60BFC30075748A /* FavoriteFoodsView.swift in Sources */,
36373646
A9D5C5B625DC6C6A00534873 /* LoopAppManager.swift in Sources */,
36383647
4302F4E11D4E9C8900F0FCAF /* TextFieldTableViewController.swift in Sources */,
36393648
C1742332259BEADC00399C9D /* ManualEntryDoseView.swift in Sources */,
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "meals.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true,
14+
"template-rendering-intent" : "template"
15+
}
16+
}
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "presets-selected.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true,
14+
"template-rendering-intent" : "template"
15+
}
16+
}
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0.902",
9+
"green" : "0.745",
10+
"red" : "0.365"
11+
}
12+
},
13+
"idiom" : "universal"
14+
},
15+
{
16+
"appearances" : [
17+
{
18+
"appearance" : "luminosity",
19+
"value" : "dark"
20+
}
21+
],
22+
"color" : {
23+
"color-space" : "srgb",
24+
"components" : {
25+
"alpha" : "1.000",
26+
"blue" : "0.902",
27+
"green" : "0.745",
28+
"red" : "0.365"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "presets.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true,
14+
"template-rendering-intent" : "template"
15+
}
16+
}
Binary file not shown.

0 commit comments

Comments
 (0)