Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
36a2a53
Omnikit
ps2 Sep 2, 2018
5746df1
Add OmniKit frameworks
ps2 Sep 11, 2018
6988bb8
fix cartfile
ps2 Sep 12, 2018
1b23177
Track lastAddedPumpData, including lastAddedPumpEvents
ps2 Sep 15, 2018
6b4544c
Fix carthage copy frameworks script
ps2 Sep 19, 2018
5e9f41a
rebase
ps2 Sep 20, 2018
096b347
update deps
ps2 Sep 25, 2018
65e3c9e
Initialize setupViewController with existing pump settings
ps2 Sep 26, 2018
2ee5feb
Suspend/Resume
ps2 Sep 28, 2018
ad73ea8
Use normal separator behavior
ps2 Sep 28, 2018
230a441
Reload pump section after adding pumpmanager
ps2 Sep 29, 2018
83f2943
LoopKit PumpManagerStatus updates
ps2 Oct 11, 2018
ff978b4
Merge in dev
ps2 Oct 11, 2018
7009e32
IRC-discrepancy-timeline
dm61 Oct 14, 2018
d0c4a91
PumpManagerUI vended HUD views
ps2 Oct 18, 2018
4311919
IRC as separate class
dm61 Oct 21, 2018
d7a17fe
Merge pull request #8 from dm61/IRC-class
dm61 Oct 21, 2018
b2a68e0
Add missing file
ps2 Oct 22, 2018
63932d1
Update to LoopKit naming changes
ps2 Oct 22, 2018
9eae122
IRC class in a separate file, with comments
dm61 Oct 22, 2018
b653a7c
Merge pull request #9 from dm61/IRC-class
dm61 Oct 23, 2018
8524093
Push instead of present pumpmanager vended vc in response to HUD view…
ps2 Oct 23, 2018
37ef4aa
Add prep_workspace.sh script
ps2 Oct 23, 2018
d774f4c
IRC issue report
dm61 Oct 25, 2018
b2beb20
Merge pull request #10 from dm61/IRC-class
dm61 Oct 25, 2018
996bc3d
HUDProvider updates
ps2 Oct 26, 2018
17468f1
refactor RC to generic protocol
dm61 Oct 27, 2018
d3a4d06
reorganize RC protocol
dm61 Oct 28, 2018
c32cd8c
Fix hud clearing after removing pump manager. Show boluses that take …
ps2 Oct 31, 2018
5bb4eab
settings moved to RC/IRC calcs
dm61 Nov 1, 2018
76c8f26
PumpManager returns DoseEntry for requested bolus, including duration
ps2 Nov 4, 2018
bdaea1d
Example jumpstart
ps2 Nov 6, 2018
ca9bd27
IRC unit tests
dm61 Nov 3, 2018
908d755
standard retrospective correction always enabled
dm61 Nov 6, 2018
b535cfc
Suspend/Resume with new PumpManager status updates
ps2 Nov 20, 2018
3a12b02
Fix issue with DeviceDataManager missing from issue report
ps2 Nov 26, 2018
b4276a1
Handle LoopKit and rileylink_ios updates
ps2 Dec 2, 2018
511f0c2
Cleanup testing code
ps2 Dec 5, 2018
fb006e5
Update Loop today widget when HUD views change
ps2 Dec 9, 2018
2649cee
Merge remote-tracking branch 'upstream/dev' into integral-retrospecti…
dm61 Dec 20, 2018
3624d1a
Renaming updates from LoopKit
ps2 Jan 11, 2019
8598af6
Updates for recent LoopKit pumpmanager-changes branch
ps2 Jan 22, 2019
6a9ce73
update prep script for CGMBLEKit branch change
Kdisimone Jan 22, 2019
0334c23
Merge pull request #12 from ps2/Kdisimone-patch-1
ps2 Jan 22, 2019
574ecbc
Bump version for dev
ps2 Jan 27, 2019
6ce3673
Merge branch 'IRC-backup' into integral-retrospective-correction
dm61 Jan 28, 2019
849916d
Updates for hud provider delegate change
ps2 Jan 29, 2019
a7f89ca
Merge branch 'omnikit' of github.com:ps2/loop-priv into omnikit
ps2 Jan 29, 2019
7d1cb86
Revamped temporary override mode
mpangburn Jan 30, 2019
8a152ee
Pumpmanager updates
ps2 Jan 30, 2019
dd2e2c3
Update prep script
ps2 Jan 30, 2019
a18cfb4
Fix permissions on prep workspace script
ps2 Jan 30, 2019
2683aa5
Merge in dev
ps2 Jan 31, 2019
e22f4b0
Pumpmanager changes
ps2 Feb 2, 2019
c0c2242
Update to pumpmanager-updates
ps2 Feb 3, 2019
7cff7b4
Back out DEVELOPMENT_TEAM settings
ps2 Feb 5, 2019
ebd1e2b
Context object does not need HUDProvider reference
ps2 Feb 5, 2019
ba571a7
Include dose in enactBolus completion
ps2 Feb 5, 2019
f209407
Add omnikit back to Loop
ps2 Feb 6, 2019
e54617a
Bump dependency revisions
ps2 Feb 6, 2019
23fe392
Watch integration, remove remnants of old workout mode
mpangburn Feb 7, 2019
75464a3
Update Cartfile
mpangburn Feb 7, 2019
6a24216
Update HUD set of views only on PumpManager change
ps2 Feb 7, 2019
9a6f219
Merge branch 'pumpmanager-changes' of github.com:LoopKit/Loop into pu…
ps2 Feb 7, 2019
8a893b6
Remove unused file
ps2 Feb 7, 2019
5147bfd
Merge branch 'pumpmanager-changes' of github.com:LoopKit/Loop into om…
ps2 Feb 7, 2019
b43dd68
Update Watch preset selection interface
mpangburn Feb 7, 2019
23842de
synchronize deviceDataManager.pumpManagerStatus access
ps2 Feb 8, 2019
9a729c6
Bump dep revisions
ps2 Feb 8, 2019
509573c
Remove unused files
ps2 Feb 8, 2019
26e0ea5
Remove unneeded reloadSections calls
ps2 Feb 8, 2019
3e8f83c
Merge branch 'pumpmanager-changes' of github.com:LoopKit/Loop into pu…
ps2 Feb 8, 2019
d020d86
Merge branch 'pumpmanager-changes' of github.com:LoopKit/Loop into om…
ps2 Feb 8, 2019
2493df5
Add script for workspace prep
ps2 Feb 8, 2019
538e337
Bump rileylink_ios rev
ps2 Feb 8, 2019
ac68688
Link in OmniKit frameworks
ps2 Feb 8, 2019
14ae518
Fix build issue when carthage is run from Xcode
ps2 Feb 8, 2019
f9cfb82
removing signing team
Kdisimone Feb 8, 2019
15bee0c
Merge pull request #1 from Kdisimone/override-mode
mpangburn Feb 8, 2019
bbd36d1
Only allow BLE to trigger looping every 5 minutes
ps2 Feb 9, 2019
995c3e2
Use bolus end date to clear lastRequestedBolus
ps2 Feb 11, 2019
83b1e2e
present instead of show settings vc
ps2 Feb 11, 2019
82e66f0
small refactorings
ps2 Feb 11, 2019
4f652a8
Improvements from @mpangburn's review
ps2 Feb 13, 2019
81e83aa
Clear charts override after finishing
mpangburn Feb 14, 2019
2985424
Update active flag on HUDProvider when hud is visible and app is active
ps2 Feb 15, 2019
be5f843
Remove signing team changes
ps2 Feb 15, 2019
a14d597
Merge remote-tracking branch 'origin/pumpmanager-changes' into omnikit
ps2 Feb 15, 2019
9e27c6b
HUDProvider active -> visible
ps2 Feb 16, 2019
e12cb26
Merge remote-tracking branch 'origin/pumpmanager-changes' into omnikit
ps2 Feb 16, 2019
92d9d43
Account for optional target range
mpangburn Feb 18, 2019
2e3b25d
Optional target range updates
mpangburn Feb 18, 2019
9cdefeb
Update to dev LoopKit
ps2 Feb 19, 2019
9d9e6e2
Update to dev LoopKit
ps2 Feb 19, 2019
8de3796
Pumpmanager changes (#877)
ps2 Feb 19, 2019
9591ddf
Use new basal picker interface
ps2 Mar 4, 2019
0a61a8a
Merge pull request #3 from tidepool-org/basal-picker
ps2 Mar 5, 2019
d467165
Merge remote-tracking branch 'origin' into dev
ps2 Mar 5, 2019
849813c
Merge branch 'dev' of github.com:tidepool-org/Loop into dev
ps2 Mar 5, 2019
8d48ada
Merge in basal-picker
ps2 Mar 5, 2019
b03d42b
Back active flag with actual applicationState (#892)
ps2 Mar 6, 2019
ad179b6
Only present non-zero bolus suggestion on watch after carb entry (#893)
elnjensen Mar 6, 2019
1c54ae6
Update dependency revs
ps2 Mar 6, 2019
2478961
Limit recommended temp basals to supported rates.
ps2 Mar 6, 2019
d204ca2
Merge branch 'supported-temp-basal-rates' of github.com:tidepool-org/…
ps2 Mar 6, 2019
3212f6e
Merge remote-tracking branch 'origin/supported-temp-basal-rates' into…
ps2 Mar 6, 2019
93c20c5
Limit recommended temp basals to supported rates. (#5)
ps2 Mar 9, 2019
5e004b2
Merge remote-tracking branch 'tidepool/dev' into dev
ps2 Mar 9, 2019
1e0e121
Merge branch 'dev' of github.com:LoopKit/Loop into dev
ps2 Mar 9, 2019
1afb294
Merge remote-tracking branch 'origin/dev' into omnikit
ps2 Mar 9, 2019
c36cc77
Unset DEVELOPMENT_TEAM
ps2 Mar 9, 2019
8a22271
Learn app target and LoopCore framework (#900)
ps2 Mar 9, 2019
d350e23
Merge remote-tracking branch 'origin/dev' into omnikit
ps2 Mar 9, 2019
ef67244
Remove lockedSupportedTempBasalRates
ps2 Mar 9, 2019
00fd4b6
Update to new GlucoseRangeSchedule.Override initializer signature
ps2 Mar 9, 2019
cc1ae81
Mock managers (#4)
mpangburn Mar 15, 2019
81b8a34
Link WatchApp extension with ClockKit for Series 0 watches (#899)
ps2 Mar 19, 2019
79b5451
Fix target range charting unit mismatch (#903)
ps2 Mar 19, 2019
80dd1fe
Merge branch 'tidepool-dev' into override-mode
mpangburn Mar 20, 2019
e0d2ff3
Fix missing comma from merge
mpangburn Mar 20, 2019
6bb26d7
Update SwiftCharts to 0.6.3 (#879)
ps2 Mar 20, 2019
2f2a1e6
Merge remote-tracking branch 'tidepool/dev' into dev
ps2 Mar 20, 2019
1c9fb59
Merge branch 'dev' of github.com:LoopKit/Loop into dev
ps2 Mar 20, 2019
83edb4b
Bump LoopKit revision
ps2 Mar 20, 2019
a2109d1
Merge remote-tracking branch 'origin/dev' into omnikit
ps2 Mar 20, 2019
f18417f
Copy LoopTestingKit framework to Loop app bundle
ps2 Mar 20, 2019
25f0457
Copy LoopTestingKit, MockKit, and MockKitUI frameworks to Loop app bu…
ps2 Mar 20, 2019
afc3585
Corrected German strings - rebased to head of dev
UlricusR Mar 20, 2019
a7b01e1
Merge remote-tracking branch 'origin/dev' into omnikit
ps2 Mar 20, 2019
f809c6f
Merge branch 'dev' of https://github.com/UlricusR/Loop into UlricusR-dev
ps2 Mar 22, 2019
4cd801d
Merge branch 'UlricusR-dev' into dev
ps2 Mar 22, 2019
816bf7e
Override history tracking
mpangburn Mar 27, 2019
ed24bd6
Renaming
mpangburn Mar 27, 2019
0d397c4
Bolus progress and quick cancellation (#6)
ps2 Mar 27, 2019
5127822
Merge remote-tracking branch 'tidepool/dev' into dev
ps2 Mar 27, 2019
78260ca
Use Locked implementation from LoopKit
ps2 Mar 27, 2019
06a78a9
Merge branch 'master' into dev
ps2 Mar 28, 2019
8ef386a
Merge branch 'tidepool-dev' into override-mode
mpangburn Mar 28, 2019
8da83aa
Fix StatusTableViewController for overrides
mpangburn Mar 28, 2019
40b599a
Merge remote-tracking branch 'origin/dev' into omnikit
ps2 Mar 29, 2019
ebfe284
SwiftCharts 0.6.5
ps2 Mar 31, 2019
282bc52
Use Xcode 10.2 for travis builds
ps2 Mar 31, 2019
1939632
Turn code signing off for travis
ps2 Mar 31, 2019
8c6b9c6
update swift charts for Xcode 10.2
Kdisimone Apr 1, 2019
a7d90cd
Updated cartfile.resolved for swift charts 0.6.5
Kdisimone Apr 1, 2019
3716343
Merge pull request #15 from ps2/Kdisimone-patch-2
ps2 Apr 1, 2019
5377f3c
Bump bolus ring width down a point
ps2 Apr 2, 2019
dd1d9ae
Merge branch 'override-mode' into omni-overrides
mpangburn Apr 3, 2019
781df4a
Fixes for omni+overrides
mpangburn Apr 3, 2019
f0b9429
Display recently-entered carbs in Watch app (#908)
ps2 Apr 4, 2019
1a96620
Update status row if bolus progress finishes offscreen (#914)
ps2 Apr 5, 2019
4f84a81
Merge branch 'dev' into omnikit
ps2 Apr 6, 2019
574fc80
Handle notifications scheduled by DeviceManagers
ps2 Apr 12, 2019
76676d9
Merge remote-tracking branch 'origin/devicemanager-notifications' int…
ps2 Apr 12, 2019
9956125
Checkout notification-identifiers branch of LoopKit
ps2 Apr 12, 2019
00c78e0
Perform UNUserNotificationCenter calls on main queue
ps2 Apr 12, 2019
bcb0eaa
Use omnipod-testing branches
ps2 Apr 21, 2019
ed12f3c
Update project.pbxproj
dm61 Apr 21, 2019
d90252a
Bump rileylink_ios/omnipod-testing rev
ps2 Apr 22, 2019
aa2140b
Merge branch 'integral-retrospective-correction' into IRC-rebase-to-v…
dm61 Apr 24, 2019
1b8cecd
update IRC code to v1.10.0dev
dm61 Apr 24, 2019
f948b3f
Merge branch 'omnipod-testing' into omni-overrides
mpangburn Apr 26, 2019
32c62aa
holly features
Kdisimone Apr 26, 2019
cee1356
missing line in MDT meter upload fix
Kdisimone Apr 26, 2019
b7249bb
first commit
kenstack Apr 30, 2019
f6310f7
fix notifications, code cleanup, max bg target = 400 mg/dl
kenstack Apr 30, 2019
06f85bf
Merge pull request #6 from kenstack/ken-overrides
t1dloop Apr 30, 2019
f32ffa0
remove old signing team
May 3, 2019
06b668d
move call to setNStemp: belore the loop, instead of when we get a res…
jasoncalabrese May 3, 2019
77a1cfa
include pump manufacturer and model in the pump status
jasoncalabrese May 4, 2019
3cec2f3
only upload the reservoir units if they're current
jasoncalabrese May 5, 2019
1fe3af7
Merge pull request #7 from t1dloop/IRC
t1dloop May 5, 2019
02d4752
Merge branch 'jojo' into omni-IRC-merge
t1dloop May 5, 2019
2ae341e
Merge pull request #9 from t1dloop/omni-IRC-merge
t1dloop May 5, 2019
6ffcdc3
fixes for IRC edits
Kdisimone May 5, 2019
ca2a54f
duration is nil for infinite overrides, fixed currentCorrectionRange
kenstack May 6, 2019
178f340
add upload of name of override
kenstack May 7, 2019
0fd553e
Merge pull request #13 from jasoncalabrese/nsuploader
t1dloop May 7, 2019
c1c96b8
Merge pull request #14 from jasoncalabrese/omnipod-testing-pump-status
t1dloop May 7, 2019
fba6010
round duration upload of active override to an integer
kenstack May 8, 2019
206e94a
cartfile.resolved update for rileylink_ios update
Kdisimone May 8, 2019
cafa008
info.plists for Loop version info "jojo"
Kdisimone May 9, 2019
fd94e52
simple loop name, since we have the override plugin now
jasoncalabrese May 9, 2019
355fa07
Merge pull request #16 from jasoncalabrese/simple-loop-name
t1dloop May 9, 2019
5aa1d65
fix for units for overrides to ns
Kdisimone May 9, 2019
426dab9
cartfile
Kdisimone May 9, 2019
9f9e306
cartfile.resolved updated
Kdisimone May 16, 2019
8e1ffe0
cartfile.resolved updated
Kdisimone May 30, 2019
cf10c6c
IRC off by default
Kdisimone Jun 14, 2019
a4c6d1e
cartfile and cartfile.resolved updated
Kdisimone Jul 2, 2019
4734bed
version to 1.10.0dev-jojo-beeps
Kdisimone Jul 2, 2019
a21e4e7
Update Cartfile.resolved
Kdisimone Jul 20, 2019
cc3ec0c
Update Cartfile
Kdisimone Jul 20, 2019
bf702f1
fix for ios13 bluetooth always info.plist
Kdisimone Sep 20, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
language: objective-c
osx_image: xcode10
osx_image: xcode10.2
# xcode_sdk: iphonesimulator11
# xcode_project: Loop.xcodeproj
# xcode_scheme: Loop

addons:
homebrew:
packages:
- carthage
update: true
before_script:
- git config --global protocol.version 1
- set -o pipefail && xcodebuild -project Loop.xcodeproj -target Cartfile
script:
# Build the app target
- set -o pipefail && xcodebuild -project Loop.xcodeproj -scheme Loop build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- set -o pipefail && xcodebuild -project Loop.xcodeproj -scheme Loop build CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO | xcpretty
- set -o pipefail && xcodebuild -project Loop.xcodeproj -scheme Learn build CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO | xcpretty
# Run the test target
- set -o pipefail && xcodebuild -project Loop.xcodeproj -scheme LoopTests -destination 'name=iPhone SE' test | xcpretty
- set -o pipefail && xcodebuild -project Loop.xcodeproj -scheme DoseMathTests -destination 'name=iPhone SE' test | xcpretty
13 changes: 6 additions & 7 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

github "LoopKit/LoopKit" ~> 2.2
github "LoopKit/CGMBLEKit" == 3.0
github "ps2/SwiftCharts" "hotfix-xcode10.2"
github "LoopKit/dexcom-share-client-swift" == 1.0
github "LoopKit/G4ShareSpy" == 1.0
github "ps2/rileylink_ios" ~> 2.1
github "kdisimone/LoopKit" "jojo"
github "kdisimone/CGMBLEKit" "jojo-firefly"
github "i-schuetz/SwiftCharts" == 0.6.5
github "kdisimone/dexcom-share-client-swift" "jojo"
github "kdisimone/G4ShareSpy" "jojo"
github "kdisimone/rileylink_ios" "jojo-beeps"
github "LoopKit/Amplitude-iOS" "decreepify"
13 changes: 7 additions & 6 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
github "LoopKit/Amplitude-iOS" "2137d5fd44bf630ed33e1e72d7af6d8f8612f270"
github "LoopKit/CGMBLEKit" "v3.0"
github "LoopKit/G4ShareSpy" "v1.0"
github "LoopKit/LoopKit" "v2.2.2"
github "LoopKit/dexcom-share-client-swift" "v1.0"
github "ps2/SwiftCharts" "cc8c401171d5ccb638ec6c87f6c410ee31fa774d"
github "ps2/rileylink_ios" "v2.1.1"
github "i-schuetz/SwiftCharts" "0.6.5"
github "kdisimone/CGMBLEKit" "9ffe6455cd7f9d39a3f89c34ff77f435a6f3db53"
github "kdisimone/G4ShareSpy" "86007af69a378a3235cc67895ab913dbd495f193"
github "kdisimone/LoopKit" "42d3afac724aab4d9b5ff17bead2f3cef68c30ba"
github "kdisimone/dexcom-share-client-swift" "9810c126d2dc94ae4ffdc6350dd7057e859b7ad1"
github "kdisimone/rileylink_ios" "1e8fbe0443dc203e181bd76a524b3de4636492a3"
github "maxkonovalov/MKRingProgressView" "2.2.2"
54 changes: 8 additions & 46 deletions Common/Extensions/GlucoseRangeSchedule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,20 @@ import HealthKit


extension GlucoseRangeSchedule {
func overrideEnabledForContext(_ context: Override.Context) -> Bool? {
guard let override = override, override.context == context else {
guard let value = overrideRanges[context], !value.isZero else {
// Unavailable to set
return nil
}

return false
}

return override.isActive()
}

var activeOverride: GlucoseRangeSchedule.Override? {
guard let override = override, override.isActive() else {
return nil
}

return override
}

var activeOverrideContext: GlucoseRangeSchedule.Override.Context? {
return activeOverride?.context
}

var activeOverrideQuantityRange: Range<HKQuantity>? {
guard let activeOverride = activeOverride else {
return nil
}

let lowerBound = HKQuantity(unit: unit, doubleValue: activeOverride.value.minValue)
let upperBound = HKQuantity(unit: unit, doubleValue: activeOverride.value.maxValue)
return lowerBound..<upperBound
}

var configuredOverrideContexts: [GlucoseRangeSchedule.Override.Context] {
var contexts: [GlucoseRangeSchedule.Override.Context] = []
for (context, range) in overrideRanges where !range.isZero {
contexts.append(context)
}

return contexts
}

func minQuantity(at date: Date) -> HKQuantity {
return HKQuantity(unit: unit, doubleValue: value(at: date).minValue)
}

func maxQuantity(at date: Date) -> HKQuantity {
return HKQuantity(unit: unit, doubleValue: value(at: date).maxValue)
}
}


extension DoubleRange {
var averageValue: Double {
extension Range where Bound == HKQuantity {
func averageValue(for unit: HKUnit) -> Double {
let minValue = lowerBound.doubleValue(for: unit)
let maxValue = upperBound.doubleValue(for: unit)
return (maxValue + minValue) / 2
}
}
9 changes: 1 addition & 8 deletions Common/Extensions/HKUnit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import HealthKit
import LoopCore

// Code in this extension is duplicated from:
// https://github.com/LoopKit/LoopKit/blob/master/LoopKit/HKUnit.swift
Expand All @@ -21,14 +22,6 @@ extension HKUnit {
}
}

static let milligramsPerDeciliter: HKUnit = {
return HKUnit.gramUnit(with: .milli).unitDivided(by: HKUnit.literUnit(with: .deci))
}()

static let millimolesPerLiter: HKUnit = {
return HKUnit.moleUnit(with: .milli, molarMass: HKUnitMolarMassBloodGlucose).unitDivided(by: HKUnit.liter())
}()

var localizedShortUnitString: String {
if self == HKUnit.millimolesPerLiter {
return NSLocalizedString("mmol/L", comment: "The short unit display string for millimoles of glucose per liter")
Expand Down
8 changes: 8 additions & 0 deletions Common/Extensions/NSTimeInterval.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ extension TimeInterval {
return TimeInterval(hours: hours)
}

static func days(_ days: Double) -> TimeInterval {
return TimeInterval(days: days)
}

init(minutes: Double) {
self.init(minutes * 60)
}
Expand All @@ -30,6 +34,10 @@ extension TimeInterval {
self.init(minutes: hours * 60)
}

init(days: Double) {
self.init(hours: days * 24)
}

var minutes: Double {
return self / 60.0
}
Expand Down
1 change: 1 addition & 0 deletions Common/Extensions/NewCarbEntryIntent+Loop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import LoopCore

@available(iOS 12.0, watchOSApplicationExtension 5.0, *)
extension NewCarbEntryIntent: IdentifiableClass { }
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import LoopKitUI
import LoopUI


extension TextFieldTableViewCell: NibLoadable { }
90 changes: 0 additions & 90 deletions Common/Models/CarbEntryUserInfo.swift

This file was deleted.

90 changes: 0 additions & 90 deletions Common/Models/LoopSettings.swift

This file was deleted.

2 changes: 2 additions & 0 deletions Common/Models/LoopSettingsUserInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Copyright © 2018 LoopKit Authors. All rights reserved.
//

import LoopCore


struct LoopSettingsUserInfo {
let settings: LoopSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
import Foundation
import LoopKit
import MinimedKit
import OmniKit
import MockKit


let allPumpManagers: [PumpManager.Type] = [
MinimedPumpManager.self
OmnipodPumpManager.self,
MinimedPumpManager.self,
MockPumpManager.self,
]

private let managersByIdentifier: [String: PumpManager.Type] = allPumpManagers.reduce(into: [:]) { (map, Type) in
Expand Down
Loading