Skip to content

Commit 8d457b2

Browse files
authored
Merge pull request #92 from loudnate/dev
Version 0.8.0
2 parents 646e93d + 5e3a2f0 commit 8d457b2

36 files changed

+475
-90
lines changed

Cartfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ github "loudnate/LoopKit" ~> 0.3.5
22
github "loudnate/xDripG5" ~> 0.5.0
33
github "loudnate/SwiftCharts" "loudnate/naterade"
44
github "mddub/dexcom-share-client-swift" ~> 0.1
5+
github "mddub/G4ShareSpy" ~> 0.2
56
github "ps2/rileylink_ios" ~> 0.7.1
67
github "amplitude/Amplitude-iOS" "mpurland-framework"

Cartfile.resolved

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
github "amplitude/Amplitude-iOS" "a3d6720626e72a678489bce83ed9dacadb505dd7"
22
github "loudnate/Crypto" "13fee45175b88629aeabe60b4b4fc3daf86fa0a3"
3+
github "mddub/G4ShareSpy" "v0.2.0"
34
github "loudnate/LoopKit" "v0.3.5"
45
github "loudnate/SwiftCharts" "8671287afb29640f9cffced6521b1098b7aac085"
56
github "mddub/dexcom-share-client-swift" "v0.1.3"
Binary file not shown.

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

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Carthage/Build/iOS/G4ShareSpy.framework/Headers/G4ShareSpy.h

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
748 Bytes
Binary file not shown.

Carthage/Build/iOS/G4ShareSpy.framework/Modules/module.modulemap

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/Screenshots/Phone Graphs.png

100755100644
11.9 KB
Loading
-232 Bytes
Loading

DoseMathTests/Info.plist

Lines changed: 1 addition & 1 deletion
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.7.1</string>
18+
<string>0.8.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

LICENSE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ SOFTWARE.
2929

3030
Copyright (c) 2014 Amplitude
3131

32+
## G4ShareSpy.framework
33+
34+
Copyright (c) 2016 Mark Wilson
35+
3236
## LoopKit.framework
3337
*Including CarbKit.framework, GlucoseKit.framework, and InsulinKit.framework*
3438

Loop.xcodeproj/project.pbxproj

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
430DA58E1D4AEC230097D1CA /* NSBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 430DA58D1D4AEC230097D1CA /* NSBundle.swift */; };
11+
430DA5901D4B0E4C0097D1CA /* MySentryPumpStatusMessageBody.swift in Sources */ = {isa = PBXBuildFile; fileRef = 430DA58F1D4B0E4C0097D1CA /* MySentryPumpStatusMessageBody.swift */; };
1012
4315D2871CA5CC3B00589052 /* CarbEntryEditTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4315D2861CA5CC3B00589052 /* CarbEntryEditTableViewController.swift */; };
1113
4315D28A1CA5F45E00589052 /* DiagnosticLogger+LoopKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4315D2891CA5F45E00589052 /* DiagnosticLogger+LoopKit.swift */; };
1214
4328E0181CFBE1DA00E199AA /* ContextInterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4328E0131CFBE1DA00E199AA /* ContextInterfaceController.swift */; };
@@ -132,6 +134,8 @@
132134
43F78D4D1C914197002152D1 /* GlucoseKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43F78D491C914197002152D1 /* GlucoseKit.framework */; };
133135
43F78D4E1C914197002152D1 /* InsulinKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43F78D4A1C914197002152D1 /* InsulinKit.framework */; };
134136
43F78D4F1C914197002152D1 /* LoopKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43F78D4B1C914197002152D1 /* LoopKit.framework */; };
137+
4D3B40041D4A9E1A00BC6334 /* G4ShareSpy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D3B40021D4A9DFE00BC6334 /* G4ShareSpy.framework */; };
138+
4D5B7A4B1D457CCA00796CA9 /* GlucoseG4.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D5B7A4A1D457CCA00796CA9 /* GlucoseG4.swift */; };
135139
C10428971D17BAD400DD539A /* NightscoutUploadKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C10428961D17BAD400DD539A /* NightscoutUploadKit.framework */; };
136140
/* End PBXBuildFile section */
137141

@@ -216,6 +220,8 @@
216220
/* End PBXCopyFilesBuildPhase section */
217221

218222
/* Begin PBXFileReference section */
223+
430DA58D1D4AEC230097D1CA /* NSBundle.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSBundle.swift; sourceTree = "<group>"; };
224+
430DA58F1D4B0E4C0097D1CA /* MySentryPumpStatusMessageBody.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MySentryPumpStatusMessageBody.swift; sourceTree = "<group>"; };
219225
4315D2861CA5CC3B00589052 /* CarbEntryEditTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CarbEntryEditTableViewController.swift; sourceTree = "<group>"; };
220226
4315D2891CA5F45E00589052 /* DiagnosticLogger+LoopKit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "DiagnosticLogger+LoopKit.swift"; sourceTree = "<group>"; };
221227
4328E0131CFBE1DA00E199AA /* ContextInterfaceController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContextInterfaceController.swift; sourceTree = "<group>"; };
@@ -345,6 +351,8 @@
345351
43F78D491C914197002152D1 /* GlucoseKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GlucoseKit.framework; path = Carthage/Build/iOS/GlucoseKit.framework; sourceTree = "<group>"; };
346352
43F78D4A1C914197002152D1 /* InsulinKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = InsulinKit.framework; path = Carthage/Build/iOS/InsulinKit.framework; sourceTree = "<group>"; };
347353
43F78D4B1C914197002152D1 /* LoopKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = LoopKit.framework; path = Carthage/Build/iOS/LoopKit.framework; sourceTree = "<group>"; };
354+
4D3B40021D4A9DFE00BC6334 /* G4ShareSpy.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = G4ShareSpy.framework; path = Carthage/Build/iOS/G4ShareSpy.framework; sourceTree = "<group>"; };
355+
4D5B7A4A1D457CCA00796CA9 /* GlucoseG4.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = GlucoseG4.swift; path = Loop/Models/GlucoseG4.swift; sourceTree = SOURCE_ROOT; };
348356
C10428961D17BAD400DD539A /* NightscoutUploadKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NightscoutUploadKit.framework; path = Carthage/Build/iOS/NightscoutUploadKit.framework; sourceTree = "<group>"; };
349357
/* End PBXFileReference section */
350358

@@ -363,6 +371,7 @@
363371
C10428971D17BAD400DD539A /* NightscoutUploadKit.framework in Frameworks */,
364372
439897391CD2F82C00223065 /* AmplitudeFramework.framework in Frameworks */,
365373
43F78D4C1C914197002152D1 /* CarbKit.framework in Frameworks */,
374+
4D3B40041D4A9E1A00BC6334 /* G4ShareSpy.framework in Frameworks */,
366375
43F78D4D1C914197002152D1 /* GlucoseKit.framework in Frameworks */,
367376
43F5C2C91B929C09003EB13D /* HealthKit.framework in Frameworks */,
368377
43F78D4E1C914197002152D1 /* InsulinKit.framework in Frameworks */,
@@ -433,10 +442,12 @@
433442
438849EB1D29EC34003B3F23 /* AmplitudeService.swift */,
434443
4331E0791C85650D00FBE832 /* ChartAxisValueDoubleLog.swift */,
435444
43F41C321D3A17AA00C11ED6 /* ChartAxisValueDoubleUnit.swift */,
445+
4D5B7A4A1D457CCA00796CA9 /* GlucoseG4.swift */,
436446
434F24CA1CFCB7AB0004498F /* GlucoseRxMessage.swift */,
437447
436FACED1D0BA636004E2427 /* InsulinDataSource.swift */,
438448
436A0DA41D236A2A00104B24 /* LoopError.swift */,
439449
438849ED1D2A1EBB003B3F23 /* MLabService.swift */,
450+
430DA58F1D4B0E4C0097D1CA /* MySentryPumpStatusMessageBody.swift */,
440451
438849E91D297CB6003B3F23 /* NightscoutService.swift */,
441452
437CCADF1D285C7B0075D2C3 /* ServiceAuthentication.swift */,
442453
434F54601D28859B002A9274 /* ServiceCredential.swift */,
@@ -573,6 +584,7 @@
573584
43649A621C7A347F00523D7F /* CollectionType.swift */,
574585
434FF1E91CF26C29000DB779 /* IdentifiableClass.swift */,
575586
434F54561D287FDB002A9274 /* NibLoadable.swift */,
587+
430DA58D1D4AEC230097D1CA /* NSBundle.swift */,
576588
43CE7CDD1CA8B63E003CC1B0 /* NSDate.swift */,
577589
4398973A1CD2FC2000223065 /* NSDateFormatter.swift */,
578590
439897341CD2F7DE00223065 /* NSTimeInterval.swift */,
@@ -659,6 +671,7 @@
659671
43F78D481C914197002152D1 /* CarbKit.framework */,
660672
43EDDBF01C361C75007D89B5 /* CommonCrypto.framework */,
661673
43EDDBF51C361D24007D89B5 /* CommonCrypto.framework.dSYM */,
674+
4D3B40021D4A9DFE00BC6334 /* G4ShareSpy.framework */,
662675
43F78D491C914197002152D1 /* GlucoseKit.framework */,
663676
43F5C2C81B929C09003EB13D /* HealthKit.framework */,
664677
43F78D4A1C914197002152D1 /* InsulinKit.framework */,
@@ -927,6 +940,7 @@
927940
"$(SRCROOT)/Carthage/Build/iOS/ShareClient.framework",
928941
"$(SRCROOT)/Carthage/Build/iOS/NightscoutUploadKit.framework",
929942
"$(SRCROOT)/Carthage/Build/iOS/Crypto.framework",
943+
"$(SRCROOT)/Carthage/Build/iOS/G4ShareSpy.framework",
930944
);
931945
outputPaths = (
932946
);
@@ -944,6 +958,7 @@
944958
434F54571D287FDB002A9274 /* NibLoadable.swift in Sources */,
945959
4315D28A1CA5F45E00589052 /* DiagnosticLogger+LoopKit.swift in Sources */,
946960
43C418B51CE0575200405B6A /* ShareGlucose+GlucoseKit.swift in Sources */,
961+
430DA58E1D4AEC230097D1CA /* NSBundle.swift in Sources */,
947962
434F24C91CFCA8940004498F /* TransmitterGlucose.swift in Sources */,
948963
434F24CB1CFCB7AB0004498F /* GlucoseRxMessage.swift in Sources */,
949964
43776F901B8022E90074EA36 /* AppDelegate.swift in Sources */,
@@ -980,6 +995,8 @@
980995
43DBF04C1C93B8D700B3C386 /* BolusViewController.swift in Sources */,
981996
4328E0351CFC0AE100E199AA /* WatchDataManager.swift in Sources */,
982997
437CCAE01D285C7B0075D2C3 /* ServiceAuthentication.swift in Sources */,
998+
430DA5901D4B0E4C0097D1CA /* MySentryPumpStatusMessageBody.swift in Sources */,
999+
4D5B7A4B1D457CCA00796CA9 /* GlucoseG4.swift in Sources */,
9831000
438849EC1D29EC34003B3F23 /* AmplitudeService.swift in Sources */,
9841001
43DBF0571C93F6EB00B3C386 /* ReservoirTableViewController.swift in Sources */,
9851002
435400341C9F878D00D5819C /* SetBolusUserInfo.swift in Sources */,
@@ -1121,7 +1138,7 @@
11211138
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
11221139
CODE_SIGN_IDENTITY = "iPhone Developer: loudnate@gmail.com (XZN842LDLT)";
11231140
COPY_PHASE_STRIP = NO;
1124-
CURRENT_PROJECT_VERSION = 13;
1141+
CURRENT_PROJECT_VERSION = 14;
11251142
DEBUG_INFORMATION_FORMAT = dwarf;
11261143
ENABLE_STRICT_OBJC_MSGSEND = YES;
11271144
ENABLE_TESTABILITY = YES;
@@ -1169,7 +1186,7 @@
11691186
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
11701187
CODE_SIGN_IDENTITY = "iPhone Developer: loudnate@gmail.com (XZN842LDLT)";
11711188
COPY_PHASE_STRIP = NO;
1172-
CURRENT_PROJECT_VERSION = 13;
1189+
CURRENT_PROJECT_VERSION = 14;
11731190
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
11741191
ENABLE_NS_ASSERTIONS = NO;
11751192
ENABLE_STRICT_OBJC_MSGSEND = YES;

Loop/Extensions/NSBundle.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// NSBundle.swift
3+
// Loop
4+
//
5+
// Created by Nate Racklyeft on 7/28/16.
6+
// Copyright © 2016 Nathan Racklyeft. All rights reserved.
7+
//
8+
9+
import Foundation
10+
11+
12+
extension NSBundle {
13+
var shortVersionString: String {
14+
return objectForInfoDictionaryKey("CFBundleShortVersionString") as! String
15+
}
16+
17+
var bundleDisplayName: String {
18+
return objectForInfoDictionaryKey("CFBundleDisplayName") as! String
19+
}
20+
}

Loop/Extensions/NSUserDefaults.swift

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ extension NSUserDefaults {
1919
case DosingEnabled = "com.loudnate.Naterade.DosingEnabled"
2020
case InsulinActionDuration = "com.loudnate.Naterade.InsulinActionDuration"
2121
case InsulinSensitivitySchedule = "com.loudnate.Naterade.InsulinSensitivitySchedule"
22+
case G4ReceiverEnabled = "com.loudnate.Loop.G4ReceiverEnabled"
23+
case G5TransmitterID = "com.loudnate.Naterade.TransmitterID"
24+
case G5TransmitterStartTime = "com.loudnate.Naterade.TransmitterStartTime"
2225
case GlucoseTargetRangeSchedule = "com.loudnate.Naterade.GlucoseTargetRangeSchedule"
2326
case MaximumBasalRatePerHour = "com.loudnate.Naterade.MaximumBasalRatePerHour"
2427
case MaximumBolus = "com.loudnate.Naterade.MaximumBolus"
2528
case PreferredInsulinDataSource = "com.loudnate.Loop.PreferredInsulinDataSource"
2629
case PumpID = "com.loudnate.Naterade.PumpID"
2730
case PumpModelNumber = "com.loudnate.Naterade.PumpModelNumber"
2831
case PumpTimeZone = "com.loudnate.Naterade.PumpTimeZone"
29-
case TransmitterID = "com.loudnate.Naterade.TransmitterID"
30-
case TransmitterStartTime = "com.loudnate.Naterade.TransmitterStartTime"
3132
}
3233

3334
var basalRateSchedule: BasalRateSchedule? {
@@ -192,27 +193,36 @@ extension NSUserDefaults {
192193
}
193194
}
194195

196+
var receiverEnabled: Bool {
197+
get {
198+
return boolForKey(Key.G4ReceiverEnabled.rawValue)
199+
}
200+
set {
201+
setBool(newValue, forKey: Key.G4ReceiverEnabled.rawValue)
202+
}
203+
}
204+
195205
var transmitterStartTime: NSTimeInterval? {
196206
get {
197-
let value = doubleForKey(Key.TransmitterStartTime.rawValue)
207+
let value = doubleForKey(Key.G5TransmitterStartTime.rawValue)
198208

199209
return value > 0 ? value : nil
200210
}
201211
set {
202212
if let value = newValue {
203-
setDouble(value, forKey: Key.TransmitterStartTime.rawValue)
213+
setDouble(value, forKey: Key.G5TransmitterStartTime.rawValue)
204214
} else {
205-
removeObjectForKey(Key.TransmitterStartTime.rawValue)
215+
removeObjectForKey(Key.G5TransmitterStartTime.rawValue)
206216
}
207217
}
208218
}
209219

210220
var transmitterID: String? {
211221
get {
212-
return stringForKey(Key.TransmitterID.rawValue)
222+
return stringForKey(Key.G5TransmitterID.rawValue)
213223
}
214224
set {
215-
setObject(newValue, forKey: Key.TransmitterID.rawValue)
225+
setObject(newValue, forKey: Key.G5TransmitterID.rawValue)
216226
}
217227
}
218228

Loop/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.7.1</string>
20+
<string>0.8.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)