Skip to content

Commit 2ebe5d9

Browse files
authored
Merge pull request #146 from loudnate/dev
v0.11.0
2 parents 0bc3ce4 + 35090a0 commit 2ebe5d9

File tree

79 files changed

+311
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+311
-202
lines changed

Cartfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
github "loudnate/LoopKit" ~> 0.5.1
1+
github "loudnate/LoopKit" ~> 0.6.0
22
github "loudnate/xDripG5" ~> 0.6.0
33
github "loudnate/SwiftCharts" "loudnate/naterade"
44
github "mddub/dexcom-share-client-swift" ~> 0.1
55
github "mddub/G4ShareSpy" ~> 0.2.2
66
github "ps2/rileylink_ios" ~> 0.10.0
7-
github "amplitude/Amplitude-iOS" ~> 3.8.4
7+
github "amplitude/Amplitude-iOS" ~> 3.8.5

Cartfile.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
github "amplitude/Amplitude-iOS" "v3.8.4"
1+
github "amplitude/Amplitude-iOS" "v3.8.5"
22
github "loudnate/Crypto" "13fee45175b88629aeabe60b4b4fc3daf86fa0a3"
33
github "mddub/G4ShareSpy" "v0.2.2"
4-
github "loudnate/LoopKit" "v0.5.1"
4+
github "loudnate/LoopKit" "v0.6.0"
55
github "loudnate/SwiftCharts" "8671287afb29640f9cffced6521b1098b7aac085"
66
github "mddub/dexcom-share-client-swift" "v0.1.3"
77
github "loudnate/xDripG5" "v0.6.0"
-140 Bytes
Binary file not shown.
564 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Carthage/Build/iOS/InsulinKit.framework/Headers/InsulinKit-Swift.h

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

Carthage/Build/iOS/LoopKit.framework/Headers/LoopKit-Swift.h

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.
247 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

DoseMathTests/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.10.1</string>
18+
<string>0.11.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Loop.xcodeproj/project.pbxproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
4354003A1C9FB81100D5819C /* UIColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43DE92501C541832001FFDE1 /* UIColor.swift */; };
5353
43649A631C7A347F00523D7F /* CollectionType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43649A621C7A347F00523D7F /* CollectionType.swift */; };
5454
436A0DA51D236A2A00104B24 /* LoopError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 436A0DA41D236A2A00104B24 /* LoopError.swift */; };
55-
436FACEC1D0BA246004E2427 /* SegmentedControlTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 436FACEB1D0BA246004E2427 /* SegmentedControlTableViewCell.swift */; };
5655
436FACEE1D0BA636004E2427 /* InsulinDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 436FACED1D0BA636004E2427 /* InsulinDataSource.swift */; };
5756
43776F901B8022E90074EA36 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43776F8F1B8022E90074EA36 /* AppDelegate.swift */; };
5857
43776F971B8022E90074EA36 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 43776F951B8022E90074EA36 /* Main.storyboard */; };
@@ -133,6 +132,7 @@
133132
43F41C351D3B623800C11ED6 /* ChartPointsTouchHighlightLayerViewCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F41C341D3B623800C11ED6 /* ChartPointsTouchHighlightLayerViewCache.swift */; };
134133
43F41C371D3BF32400C11ED6 /* UIAlertController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F41C361D3BF32400C11ED6 /* UIAlertController.swift */; };
135134
43F4EF1D1BA2A57600526CE1 /* DiagnosticLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F4EF1C1BA2A57600526CE1 /* DiagnosticLogger.swift */; };
135+
43F5173D1D713DB0000FA422 /* RadioSelectionTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F5173C1D713DB0000FA422 /* RadioSelectionTableViewController.swift */; };
136136
43F5C2C91B929C09003EB13D /* HealthKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43F5C2C81B929C09003EB13D /* HealthKit.framework */; };
137137
43F5C2DB1B92A5E1003EB13D /* SettingsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F5C2DA1B92A5E1003EB13D /* SettingsTableViewController.swift */; };
138138
43F78D261C8FC000002152D1 /* DoseMath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43F78D251C8FC000002152D1 /* DoseMath.swift */; };
@@ -270,7 +270,6 @@
270270
435400331C9F878D00D5819C /* SetBolusUserInfo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SetBolusUserInfo.swift; sourceTree = "<group>"; };
271271
43649A621C7A347F00523D7F /* CollectionType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionType.swift; sourceTree = "<group>"; };
272272
436A0DA41D236A2A00104B24 /* LoopError.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LoopError.swift; sourceTree = "<group>"; };
273-
436FACEB1D0BA246004E2427 /* SegmentedControlTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SegmentedControlTableViewCell.swift; sourceTree = "<group>"; };
274273
436FACED1D0BA636004E2427 /* InsulinDataSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InsulinDataSource.swift; sourceTree = "<group>"; };
275274
43776F8C1B8022E90074EA36 /* Loop.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Loop.app; sourceTree = BUILT_PRODUCTS_DIR; };
276275
43776F8F1B8022E90074EA36 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = AppDelegate.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
@@ -355,6 +354,7 @@
355354
43F41C341D3B623800C11ED6 /* ChartPointsTouchHighlightLayerViewCache.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChartPointsTouchHighlightLayerViewCache.swift; sourceTree = "<group>"; };
356355
43F41C361D3BF32400C11ED6 /* UIAlertController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIAlertController.swift; sourceTree = "<group>"; };
357356
43F4EF1C1BA2A57600526CE1 /* DiagnosticLogger.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DiagnosticLogger.swift; sourceTree = "<group>"; };
357+
43F5173C1D713DB0000FA422 /* RadioSelectionTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RadioSelectionTableViewController.swift; sourceTree = "<group>"; };
358358
43F5C2C81B929C09003EB13D /* HealthKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HealthKit.framework; path = System/Library/Frameworks/HealthKit.framework; sourceTree = SDKROOT; };
359359
43F5C2D41B92A4A6003EB13D /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
360360
43F5C2D61B92A4DC003EB13D /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -624,6 +624,7 @@
624624
4315D2861CA5CC3B00589052 /* CarbEntryEditTableViewController.swift */,
625625
43DBF0581C93F73800B3C386 /* CarbEntryTableViewController.swift */,
626626
4302F4E21D4EA54200F0FCAF /* InsulinDeliveryTableViewController.swift */,
627+
43F5173C1D713DB0000FA422 /* RadioSelectionTableViewController.swift */,
627628
43F5C2DA1B92A5E1003EB13D /* SettingsTableViewController.swift */,
628629
43E3449E1B9D68E900C85C07 /* StatusTableViewController.swift */,
629630
4302F4E01D4E9C8900F0FCAF /* TextFieldTableViewController.swift */,
@@ -648,7 +649,6 @@
648649
437CEEBD1CD6E0CB003C8C80 /* LoopCompletionHUDView.swift */,
649650
438DADC71CDE8F8B007697A5 /* LoopStateView.swift */,
650651
437CEEC71CD84CBB003C8C80 /* ReservoirVolumeHUDView.swift */,
651-
436FACEB1D0BA246004E2427 /* SegmentedControlTableViewCell.swift */,
652652
43A5676A1C96155700334FAC /* SwitchTableViewCell.swift */,
653653
434F54621D28DD80002A9274 /* ValidatingIndicatorView.swift */,
654654
);
@@ -1003,7 +1003,6 @@
10031003
43E2D8C81D208D5B004DA55F /* KeychainManager+Loop.swift in Sources */,
10041004
4346D1E71C77F5FE00ABAFE3 /* ChartTableViewCell.swift in Sources */,
10051005
437CEEE41CDE5C0A003C8C80 /* UIImage.swift in Sources */,
1006-
436FACEC1D0BA246004E2427 /* SegmentedControlTableViewCell.swift in Sources */,
10071006
43DBF0591C93F73800B3C386 /* CarbEntryTableViewController.swift in Sources */,
10081007
43DE925C1C547A20001FFDE1 /* WatchContext.swift in Sources */,
10091008
43F41C351D3B623800C11ED6 /* ChartPointsTouchHighlightLayerViewCache.swift in Sources */,
@@ -1016,6 +1015,7 @@
10161015
438849EA1D297CB6003B3F23 /* NightscoutService.swift in Sources */,
10171016
437CCADC1D284B830075D2C3 /* ButtonTableViewCell.swift in Sources */,
10181017
4315D2871CA5CC3B00589052 /* CarbEntryEditTableViewController.swift in Sources */,
1018+
43F5173D1D713DB0000FA422 /* RadioSelectionTableViewController.swift in Sources */,
10191019
4331E0781C85302200FBE832 /* CGPoint.swift in Sources */,
10201020
43DBF04C1C93B8D700B3C386 /* BolusViewController.swift in Sources */,
10211021
4328E0351CFC0AE100E199AA /* WatchDataManager.swift in Sources */,
@@ -1168,7 +1168,7 @@
11681168
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
11691169
CODE_SIGN_IDENTITY = "iPhone Developer: [email protected] (XZN842LDLT)";
11701170
COPY_PHASE_STRIP = NO;
1171-
CURRENT_PROJECT_VERSION = 17;
1171+
CURRENT_PROJECT_VERSION = 19;
11721172
DEBUG_INFORMATION_FORMAT = dwarf;
11731173
ENABLE_STRICT_OBJC_MSGSEND = YES;
11741174
ENABLE_TESTABILITY = YES;
@@ -1216,7 +1216,7 @@
12161216
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
12171217
CODE_SIGN_IDENTITY = "iPhone Developer: [email protected] (XZN842LDLT)";
12181218
COPY_PHASE_STRIP = NO;
1219-
CURRENT_PROJECT_VERSION = 17;
1219+
CURRENT_PROJECT_VERSION = 19;
12201220
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
12211221
ENABLE_NS_ASSERTIONS = NO;
12221222
ENABLE_STRICT_OBJC_MSGSEND = YES;

Loop/Base.lproj/LaunchScreen.storyboard

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="c6k-8z-nla">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="c6k-8z-nla">
33
<dependencies>
44
<deployment identifier="iOS"/>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
@@ -8,7 +8,7 @@
88
<!--Navigation Controller-->
99
<scene sceneID="Ucb-uj-Fzl">
1010
<objects>
11-
<navigationController toolbarHidden="NO" id="c6k-8z-nla" sceneMemberID="viewController">
11+
<navigationController navigationBarHidden="YES" toolbarHidden="NO" id="c6k-8z-nla" sceneMemberID="viewController">
1212
<tabBarItem key="tabBarItem" enabled="NO" title="" id="nfG-Bf-TrT"/>
1313
<navigationBar key="navigationBar" contentMode="scaleToFill" id="3rC-hS-Fnr">
1414
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>

Loop/Base.lproj/Main.storyboard

+1-36
Original file line numberDiff line numberDiff line change
@@ -71,41 +71,6 @@
7171
</subviews>
7272
</tableViewCellContentView>
7373
</tableViewCell>
74-
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="SegmentedControlTableViewCell" id="qVa-bG-wlH" customClass="SegmentedControlTableViewCell" customModule="Loop" customModuleProvider="target">
75-
<rect key="frame" x="0.0" y="201.5" width="600" height="44"/>
76-
<autoresizingMask key="autoresizingMask"/>
77-
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="qVa-bG-wlH" id="5qS-48-yNM">
78-
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
79-
<autoresizingMask key="autoresizingMask"/>
80-
<subviews>
81-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="251" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZgD-7x-5Wg">
82-
<rect key="frame" x="15" y="8" width="493" height="27"/>
83-
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
84-
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
85-
<nil key="highlightedColor"/>
86-
</label>
87-
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="LrK-Yi-kdn">
88-
<rect key="frame" x="516" y="7" width="69" height="29"/>
89-
<segments>
90-
<segment title="On"/>
91-
<segment title="Off"/>
92-
</segments>
93-
</segmentedControl>
94-
</subviews>
95-
<constraints>
96-
<constraint firstItem="ZgD-7x-5Wg" firstAttribute="bottom" secondItem="5qS-48-yNM" secondAttribute="bottomMargin" priority="750" id="Fik-ru-b1R"/>
97-
<constraint firstItem="LrK-Yi-kdn" firstAttribute="leading" secondItem="ZgD-7x-5Wg" secondAttribute="trailing" constant="8" symbolic="YES" id="XJH-Sy-MdY"/>
98-
<constraint firstItem="LrK-Yi-kdn" firstAttribute="centerY" secondItem="5qS-48-yNM" secondAttribute="centerY" id="qod-JV-8ip"/>
99-
<constraint firstItem="ZgD-7x-5Wg" firstAttribute="top" secondItem="5qS-48-yNM" secondAttribute="topMargin" id="rxe-38-gFO"/>
100-
<constraint firstItem="ZgD-7x-5Wg" firstAttribute="leading" secondItem="5qS-48-yNM" secondAttribute="leadingMargin" constant="7" id="uwV-Bp-8gq"/>
101-
<constraint firstAttribute="trailingMargin" secondItem="LrK-Yi-kdn" secondAttribute="trailing" constant="7" id="zMJ-bc-2B1"/>
102-
</constraints>
103-
</tableViewCellContentView>
104-
<connections>
105-
<outlet property="segmentedControl" destination="LrK-Yi-kdn" id="e99-v4-aTF"/>
106-
<outlet property="titleLabel" destination="ZgD-7x-5Wg" id="iDE-Jk-fkZ"/>
107-
</connections>
108-
</tableViewCell>
10974
</prototypes>
11075
<connections>
11176
<outlet property="dataSource" destination="4cb-Yq-02o" id="KZ7-dm-dst"/>
@@ -245,7 +210,7 @@
245210
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="399" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="01f-Du-MVi">
246211
<rect key="frame" x="0.0" y="5" width="120" height="32.5"/>
247212
<fontDescription key="fontDescription" type="system" weight="light" pointSize="27"/>
248-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
213+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
249214
<nil key="highlightedColor"/>
250215
</label>
251216
</subviews>

Loop/Extensions/DoseStore.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extension DoseStore {
5959
break
6060
}
6161

62-
title = (dose?.type != nil ? String(dose!.type) : event.dictionaryRepresentation["_type"] as? String) ?? String(event.pumpEvent.dynamicType)
62+
title = String(event.pumpEvent)
6363
events.append(NewPumpEvent(date: event.date, dose: dose, isMutable: event.isMutable(), raw: event.pumpEvent.rawData, title: title))
6464
}
6565

Loop/Extensions/UIColor.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import UIKit
1212
extension UIColor {
1313
@nonobjc static var tintColor: UIColor? = nil
1414

15-
@nonobjc static let secondaryLabelColor = UIColor(red: 142 / 255, green: 142 / 255, blue: 147 / 255, alpha: 1)
15+
@nonobjc static let secondaryLabelColor = UIColor.HIGGrayColor()
1616

1717
@nonobjc static let gridColor = UIColor(white: 193 / 255, alpha: 1)
1818

@@ -30,7 +30,7 @@ extension UIColor {
3030

3131
@nonobjc static let staleColor = UIColor.HIGRedColor()
3232

33-
@nonobjc static let unknownColor = UIColor.HIGGrayColor().colorWithAlphaComponent(0.5)
33+
@nonobjc static let unknownColor = UIColor(red: 198 / 255, green: 199 / 255, blue: 201 / 255, alpha: 1)
3434

3535
@nonobjc static let deleteColor = UIColor.HIGRedColor()
3636

0 commit comments

Comments
 (0)