Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
7009e32
IRC-discrepancy-timeline
dm61 Oct 14, 2018
4311919
IRC as separate class
dm61 Oct 21, 2018
d7a17fe
Merge pull request #8 from dm61/IRC-class
dm61 Oct 21, 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
d774f4c
IRC issue report
dm61 Oct 25, 2018
b2beb20
Merge pull request #10 from dm61/IRC-class
dm61 Oct 25, 2018
17468f1
refactor RC to generic protocol
dm61 Oct 27, 2018
d3a4d06
reorganize RC protocol
dm61 Oct 28, 2018
5bb4eab
settings moved to RC/IRC calcs
dm61 Nov 1, 2018
ca9bd27
IRC unit tests
dm61 Nov 3, 2018
908d755
standard retrospective correction always enabled
dm61 Nov 6, 2018
2649cee
Merge remote-tracking branch 'upstream/dev' into integral-retrospecti…
dm61 Dec 20, 2018
6ce3673
Merge branch 'IRC-backup' into integral-retrospective-correction
dm61 Jan 28, 2019
3435d85
Updates from @mpangburn's review
ps2 Apr 10, 2019
cb0fe28
Updates from @darinkrauss' review
ps2 Apr 10, 2019
51d73c0
Remove unused days from TimeInterval extension; days do not always ha…
ps2 Apr 10, 2019
dabd36a
Merge pull request #10 from tidepool-org/diy-dev-sync
ps2 Apr 11, 2019
81984d7
Used closed ranges for target ranges and glucose ranges
ps2 Apr 12, 2019
6c9337b
Merge pull request #11 from tidepool-org/closed-range
ps2 Apr 12, 2019
7ae4cf2
Refactor charting to be composable (#13)
ps2 Apr 19, 2019
c301285
Handle notifications scheduled by DeviceManagers (#12)
ps2 Apr 19, 2019
ed12f3c
Update project.pbxproj
dm61 Apr 21, 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
5feea7f
Merge pull request #920 from LoopKit/tidepool-dev-sync
ps2 Apr 25, 2019
6904284
DeviceManager updates for thread-safety (#15)
ps2 May 6, 2019
8acb0c9
Merge remote-tracking branch 'tidepool/dev' into dev
ps2 May 6, 2019
9aadbdd
Update dependency revisions in carthage
ps2 May 6, 2019
b63f7b6
Do not automatically create schemes
darinkrauss Apr 11, 2019
0db0aa6
Specify explicit dependencies; update Copy Frameworks with Carthage
darinkrauss Apr 11, 2019
37cba97
Update schemes to not build with implicit dependencies
darinkrauss Apr 12, 2019
6886d30
Remove direct Carthage build path for frameworks; rely on framework s…
darinkrauss Apr 12, 2019
2cb98b4
Add Cartfile target to Loop scheme; do not parallelize build
darinkrauss Apr 16, 2019
b0efe6e
Merge branch 'workspace-build-last.1' into dev
darinkrauss May 9, 2019
c48a5be
Show 12h or 24h time on chart x-axis depending on locale
ps2 May 11, 2019
e344671
Merge remote-tracking branch 'tidepool/dev' into merge-tidepool
ps2 May 19, 2019
f61942b
Update Cartfile.resolved revisions
ps2 May 19, 2019
1b5705d
Merge pull request #961 from LoopKit/merge-tidepool
ps2 May 20, 2019
3abfc9f
Merge pull request #952 from LoopKit/non-english-chart-times
ps2 May 28, 2019
b78798d
update Nightscout URL placeholder to Heroku
seanknox May 31, 2019
8c1dfdb
Testing scenarios (#17)
mpangburn Jun 8, 2019
d7cbd41
IRC disabled by default
dm61 Jun 11, 2019
cb15f90
Temporary overrides 🏃‍♀️🤒 (#18)
mpangburn Jun 18, 2019
01653f4
Use build config to specify feature flags (#19)
ps2 Jun 24, 2019
10f21e3
Cleanup and add Modal Day lesson
ps2 Jun 29, 2019
8d4662e
Merge pull request #994 from LoopKit/learn-cleanup
ps2 Jun 30, 2019
bb5635b
Merge remote-tracking branch 'tidepool/dev' into merge-tidepool-dev
ps2 Jun 30, 2019
e2c6bd5
Update dependency revisions
ps2 Jun 30, 2019
9e68991
Merge pull request #995 from LoopKit/merge-tidepool-dev
ps2 Jun 30, 2019
a809785
Do not create testingScenariosManager in release
ps2 Jun 30, 2019
01fd7c7
Merge pull request #996 from LoopKit/release-build-fixes
ps2 Jun 30, 2019
76e0bac
Refactor Retrospective Correction to allow for future enhancements
ps2 Jul 1, 2019
fefd994
Merge pull request #999 from LoopKit/retrospective-correction-refactor
ps2 Jul 9, 2019
0c03e03
Merge pull request #978 from seanknox/update-nightscout-url-placehold…
ps2 Jul 9, 2019
b6b27d6
Bump CGMBLEKit and LoopKit revs
ps2 Jul 18, 2019
eecc718
G6 hotfix (#1014)
ps2 Jul 18, 2019
324ef2f
Use new ISF and Correction Range interfaces with guardrails
ps2 Jul 19, 2019
21ecb97
Bump LoopKit rev
ps2 Jul 19, 2019
7ed3194
Omnipod testing integrate (#997)
ps2 Jul 20, 2019
f2c56fb
Bump rileylink_ios rev
ps2 Jul 20, 2019
5c63135
Point to rileylink_ios dev branch
ps2 Jul 20, 2019
11c71fe
Remove Cartfile dependency
ps2 Jul 20, 2019
7f4402a
Update watch data in response to adding carbs, bolus (#1019)
ps2 Jul 20, 2019
3f84455
Merge pull request #1022 from tidepool-org/isf-and-target-guardrails
ps2 Jul 21, 2019
97cff3e
Bump LoopKit rev
ps2 Jul 21, 2019
a6af00c
Fix display of correction range override
ps2 Jul 21, 2019
6191ccf
Merge pull request #1023 from LoopKit/overrides-unit-display-fix
ps2 Jul 21, 2019
bbe1587
Bump LoopKit rev to bring in significant digits for basal schedule ed…
ps2 Jul 22, 2019
2157223
Update to Swift 5
ps2 Jul 22, 2019
406c6f9
Use new ISF and Correction Range interfaces with guardrails (#21)
ps2 Jul 22, 2019
86006a7
Merge pull request #1027 from LoopKit/swift5
ps2 Jul 24, 2019
5b61607
Tweaks to device manager
ps2 Jul 25, 2019
9113393
Merge pull request #1033 from LoopKit/pump-manager-tweaks
ps2 Jul 27, 2019
50fba8c
Remove legacy workspace setup script
ps2 Jul 28, 2019
e441d29
sign
dm61 Jul 29, 2019
5a9da10
Merge branch 'integral-retrospective-correction' into IRC-rebase-to-d…
dm61 Jul 29, 2019
f3e6ab5
refactor IRC
dm61 Jul 31, 2019
2afff92
IRC off by default
dm61 Jul 31, 2019
a8bb1c3
remove signing
dm61 Jul 31, 2019
00c3edc
Bump LoopKit carthage rev
ps2 Jul 31, 2019
c6c0a6f
Track lastReconciliation, show last temp basal on start
ps2 Aug 5, 2019
b345dfc
Update basal rate hud for suspends and resumes
ps2 Aug 6, 2019
65e0487
Generate notification on new doses available
ps2 Aug 6, 2019
e174b3f
Show even long delivery time boluses as boluses in dose chart
ps2 Aug 6, 2019
dc17179
Update to renamed isSupended var
ps2 Aug 11, 2019
cba0095
Prevent showing user same bolus recommendation after bolusing.
ps2 Aug 13, 2019
0be3b48
Add transition for engaging manual temp basals in status bar
ps2 Aug 15, 2019
e13ef56
Track units for overrides target ranges
ps2 Aug 16, 2019
ccbcc52
Update resolved dependencies
ps2 Aug 16, 2019
9b86c07
Merge branch 'dev' into temp-basal-delivery
ps2 Aug 16, 2019
0d17f97
Merge pull request #1059 from LoopKit/temp-basal-delivery
ps2 Aug 16, 2019
518df65
Merge remote-tracking branch 'origin/overrides-units' into dev
ps2 Aug 16, 2019
15d48bb
Track units for overrides target ranges (#1058)
ps2 Aug 16, 2019
28c73e8
Merge branch 'dev' of github.com:LoopKit/Loop into dev
ps2 Aug 16, 2019
b30b25c
Merge branch 'integral-retrospective-correction' into irc-rebase-to-d…
dm61 Aug 17, 2019
204ce76
Update Cartfile.resolved
dm61 Aug 17, 2019
514f701
Bump LoopKit rev in Cartfile.resolved
ps2 Aug 17, 2019
a9fdd4d
Upload Loop settings to NS when they change (#1064)
ps2 Aug 17, 2019
7677e54
Update dependency revisions
ps2 Aug 18, 2019
fd8377e
Remove dev string for testflight distribution, bump version
ps2 Aug 18, 2019
2322c30
Merge branch 'integral-retrospective-correction' into irc-rebase-to-d…
dm61 Aug 19, 2019
a1f9fa0
Upload enabled override as part of status (#1070)
ps2 Aug 19, 2019
cdb2c13
Avoid extra conversions of temp target ranges (#1072)
ps2 Aug 20, 2019
800c921
Update Cartfile.resolved revisions
ps2 Aug 21, 2019
615f06a
Plugins (#22)
ps2 Aug 23, 2019
1711cb9
Merge remote-tracking branch 'tidepool/dev' into tidepool-sync
ps2 Aug 23, 2019
64ce539
Resolve conflict lines
ps2 Aug 23, 2019
184582d
Update copy-frameworks to test presence correctly, and follow symlink…
ps2 Aug 24, 2019
c5899b0
Fix chartHashValue for GlucoseChartValueHashable (#1073)
ps2 Aug 24, 2019
1286353
Add translations for New Carb Entry intent, fix plugins for app exten…
ps2 Aug 24, 2019
7ee0471
Revert temp basal enact ui in status bar
ps2 Aug 24, 2019
a102e60
Update carthage revs
ps2 Aug 24, 2019
364d778
Merge pull request #1077 from LoopKit/tidepool-sync
ps2 Aug 24, 2019
91a2f04
Merge pull request #1078 from LoopKit/revert-temp-basal-enact-ui
ps2 Aug 24, 2019
c96e0b1
Use Minimed and Omnipod PumpManagers as Plugins (#1079)
ps2 Aug 27, 2019
fb34191
Add syncidentifiers to NS treatments (#1089)
ps2 Sep 3, 2019
e0492e2
Merge branch 'integral-retrospective-correction' into irc-rebase-to-d…
dm61 Sep 7, 2019
c2cbca3
Use non-integer time duration (#1095)
ps2 Sep 8, 2019
f531549
Upload delivered volume for temp basals to Nightscout (#1090)
ps2 Sep 8, 2019
aadc3d9
Xcode11 (#1081)
ps2 Sep 13, 2019
fac1955
Bump rileylink rev
ps2 Sep 13, 2019
e5024f8
Capture build details for issue report (#1106)
ps2 Sep 14, 2019
d7391b8
Add capture-build-details script
ps2 Sep 14, 2019
d6105aa
Fix build details for non-git builds
ps2 Sep 15, 2019
01023e8
Make ClockKit link optionally for Series 0 Watch installs
ps2 Sep 15, 2019
76d1ccf
Only run Carthage copy-frameworks when needed.
ps2 Sep 15, 2019
d716e5c
Assume we need to strip filename from input file
ps2 Sep 15, 2019
f798c8e
Update input files for DoseMathTests copy frameworks
ps2 Sep 16, 2019
e601692
Merge branch 'integral-retrospective-correction' into irc-rebase-to-d…
dm61 Sep 21, 2019
9794a98
Update project.pbxproj
dm61 Sep 21, 2019
901164b
fix irc switch
dm61 Sep 21, 2019
5df0b4c
info.plist fix for BT for ios13 (#1124)
Kdisimone Sep 23, 2019
75f8965
duration is no longer set only for square wave boluses
ps2 Sep 23, 2019
7b19571
Bump cartfile revisions
ps2 Sep 23, 2019
511cce1
Merge branch 'integral-retrospective-correction' into irc-rebase-to-d…
dm61 Sep 26, 2019
6fe9848
Quote dirname output to handle parens in path
ps2 Sep 26, 2019
67ebb47
Bump carthage revs
ps2 Sep 27, 2019
a4568c4
Add confirmation for watch bolus, and start at full recommendation. (…
ps2 Oct 6, 2019
0a8feea
bump carthage revisions
ps2 Oct 7, 2019
0ed6a63
hide the saved API secret by default in NS services display (#1142)
Kdisimone Oct 13, 2019
af58beb
display - for HUD CGM when value is >15 min old (#1140)
Kdisimone Oct 13, 2019
66c8773
Fix issue with PumpManager ble update coming in right after cgm updat…
ps2 Oct 13, 2019
3139262
New strategy for asset overrides. Fixes popup warnings (#1145)
ps2 Oct 13, 2019
14191ad
Remote overrides (#1131)
ps2 Oct 13, 2019
ee120da
Merge branch 'integral-retrospective-correction' into irc-rebase-to-d…
dm61 Oct 19, 2019
b42c91b
Update carthage revs
ps2 Oct 26, 2019
9407f8c
Update travis to use iPhone 8
ps2 Oct 26, 2019
2c50733
Notification names changed in LoopKit (#1165)
ps2 Nov 7, 2019
6d15f59
Fixed building from directories containing spaces (#1153)
Nov 13, 2019
49412b6
Bump carthage revisions
ps2 Nov 15, 2019
c379322
Merge branch 'integral-retrospective-correction' into irc-rebase-to-d…
dm61 Nov 17, 2019
ac31e0b
Bump carthage revs
ps2 Nov 26, 2019
d22b837
Pause launch if launching before first unlock (#1198)
ps2 Dec 19, 2019
650ffd4
Bump version for dev to 1.10.3 (#1204)
ps2 Dec 19, 2019
052034f
Merge branch 'dev' into integral-retrospective-correction
dm61 Dec 21, 2019
94d3279
One !
mpangburn Nov 27, 2019
d0eec98
Remove override presets cell in settings
mpangburn Nov 18, 2019
a098d6a
Revert dev team change
mpangburn Nov 18, 2019
2c47962
Bump carthage revs
ps2 Dec 24, 2019
0a26361
Bump carthage revs
ps2 Dec 24, 2019
fd22ca0
Bump cartfile revs
ps2 Dec 28, 2019
b4189bc
Translation updates (#1167)
Kdisimone Dec 28, 2019
dd69222
Bump carthage revs
ps2 Dec 28, 2019
be121ca
clear development team signing (#1216)
Kdisimone Dec 28, 2019
f0cc33c
Bump carthage revs
ps2 Dec 28, 2019
caf87ed
Remove LoopCore's Localizable.strings from Learn app
ps2 Dec 29, 2019
6144a00
Track cgm device when uploading BG data (#1222)
ps2 Dec 31, 2019
db9b05a
Use release versions of LoopKit, CGMBLEKit, rileylink_ios
ps2 Dec 31, 2019
f324a51
Merge remote-tracking branch 'origin/master' into dev
ps2 Dec 31, 2019
e623b4b
Remove extra NSBluetoothAlwaysUsageDescription key
ps2 Dec 31, 2019
a03629d
Merge pull request #1223 from LoopKit/dev
ps2 Dec 31, 2019
b04a8ab
Bump xcconfig version
ps2 Jan 1, 2020
8eae264
Bump Loop version to 2.1 for dev
ps2 Jan 8, 2020
71b4f41
Increase history interval for carb cache
ps2 Jan 12, 2020
0a19eff
Include current bg when considering suspend threshold and dosing thre…
ps2 Jan 12, 2020
012aa23
Include insulin model delay in computation of dose
dm61 Jan 14, 2020
c45caaa
Fix dose math tests
dm61 Jan 14, 2020
169b429
Merge pull request #1234 from LoopKit/carb-cache-length
ps2 Jan 16, 2020
b944488
Merge pull request #1235 from LoopKit/current-bg-dosing-thresholds
ps2 Jan 16, 2020
40ae183
add delay to insulin model presets
dm61 Jan 18, 2020
824fe6a
Merge pull request #1242 from dm61/insulin-model-delay
ps2 Jan 19, 2020
08a6f35
Bump carthage revs
ps2 Jan 19, 2020
a1fc115
Unify carb entry + bolus flow
mpangburn Dec 28, 2019
50562ca
Alert on bolus recommendation change
mpangburn Dec 29, 2019
ca8d2fa
Recompute RC when considering past carb entry
mpangburn Jan 8, 2020
4e6eef5
Update comments re carb entry chart
mpangburn Jan 8, 2020
25f87d1
Visual updates per review
mpangburn Jan 15, 2020
3a608dc
Include pending insulin in prediction charts
mpangburn Jan 16, 2020
df69421
Don't predict glucose with stale data
mpangburn Jan 18, 2020
824f90a
Updates for merge with dev.
ps2 Jan 20, 2020
f5aaf1e
Update Loop to compile with LoopKit carb effects update
ps2 Jan 21, 2020
1fab955
Bump LoopKit cartfile rev
ps2 Jan 21, 2020
27ae33a
Merge remote-tracking branch 'upstream/dev' into irc-save
dm61 Jan 23, 2020
c21180d
Bolus recommendations include pending insulin
mpangburn Jan 21, 2020
9faec59
Updates from review
mpangburn Jan 23, 2020
7964109
Bump carthage revisions
ps2 Jan 26, 2020
9728519
Merge dev
ps2 Jan 26, 2020
49977fc
Fix log style
ps2 Jan 26, 2020
044781f
Merge pull request #1244 from LoopKit/carb-entry-flow
ps2 Jan 27, 2020
ebd939a
Fix interval multiple for dose chart y axis (#1245)
ps2 Jan 27, 2020
ffd40d7
Include pending insulin in watch prediction (#47)
mpangburn Jan 31, 2020
78f4bea
Visual tweaks from DIY
mpangburn Jan 29, 2020
b6c1573
Align continue button text
mpangburn Jan 29, 2020
05af23d
Incorporate sleep data into complication user info transfer calculati…
novalegra Feb 4, 2020
b278507
Fix incorrect carb effect in bolus prediction
mpangburn Feb 7, 2020
ed7bf7f
fix nightscout trend arrows (#1274)
dabear Feb 25, 2020
9da678d
Denote stale glucose as three dashes (#1275)
ps2 Feb 29, 2020
149216c
Support enacting manual loop if loop error (#1252)
mpangburn Feb 29, 2020
e7139a3
Merge remote-tracking branch 'upstream/dev' into integral-retrospecti…
dm61 Mar 22, 2020
a1e9ef6
Chore: Updated Swedish (sv) translations. (#1280)
hummelstrand Mar 22, 2020
e5d788a
Update cartfile revs
ps2 Mar 22, 2020
9d2623b
fix irc description
dm61 Mar 23, 2020
55766fa
Persistent device logs (#1289)
ps2 Apr 1, 2020
b18f0c1
Put device logs database files in separate directory
ps2 Apr 1, 2020
298a9cc
Bump carthage revs
ps2 Apr 1, 2020
eb0277d
Add warning when user attempts to edit basal schedule without a confi…
novalegra Apr 1, 2020
0d66a8a
Finnish translations update (#1291)
mylma Apr 1, 2020
13b35e2
Update HealthKit usage description (#1294)
novalegra Apr 3, 2020
ac77834
Bump carthage revs
ps2 Apr 4, 2020
02b7b5a
Merge remote-tracking branch 'upstream/dev' into integral-retrospecti…
dm61 Apr 5, 2020
445ae98
FI: Add a missing Carb Entry translation (#1303)
mylma Apr 18, 2020
3d42779
Dispatch dosestore completions back to main (#1302)
ps2 Apr 18, 2020
d14a282
Bump carthage revs
ps2 Apr 18, 2020
8850217
Merge branch 'master' into dev
ps2 Apr 18, 2020
2388969
Bump version for release
ps2 Apr 18, 2020
c6c0839
Reset DEVELOPMENT_TEAM
ps2 Apr 18, 2020
185866c
Bump version for dev
ps2 Apr 18, 2020
0d021fc
Add Spanish translations
novalegra Apr 18, 2020
24fa6fd
Add back comment
novalegra Apr 18, 2020
6f6ec5b
Updated French translations
Jean-Phi37 Apr 18, 2020
2cedd1b
Updated French translations (Watch)
Jean-Phi37 Apr 18, 2020
68a826c
Updated French translations (carb-entry-title-add title)
Jean-Phi37 Apr 18, 2020
5f696c7
Merge remote-tracking branch 'upstream/dev' into integral-retrospecti…
dm61 Apr 23, 2020
c834f5b
Bump carthage rev
ps2 May 4, 2020
4b4192b
Bump carthage revisions
ps2 May 9, 2020
64c40a5
Bump cartfile revs
ps2 May 11, 2020
c0745b7
Merge pull request #1306 from novalegra/spanish-translations
ps2 May 18, 2020
5084359
Merge pull request #1308 from Jean-Phi37/dev
ps2 May 18, 2020
584be5c
Swedish translation update (#1317)
MatteB May 18, 2020
4ba2cce
Update HealthKit usage Finnish description (#1295)
mylma May 18, 2020
fbccf45
Bump cartfile revisions
ps2 May 18, 2020
6686ecd
Bump carthage revisions for translation updates
ps2 May 18, 2020
8642f4c
Use prediction that includes pending insulin
ps2 May 20, 2020
d6edfad
Update DeviceDataManager.swift (#1328)
marionbarker May 21, 2020
e159db3
Adding Arabic translation (#1332)
abutmim May 31, 2020
01484b7
Bump carthage revisions
ps2 May 31, 2020
5636c77
Merge remote-tracking branch 'upstream/dev' into integral-retrospecti…
dm61 Aug 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ xcuserdata
*.moved-aside
*.xcuserstate
*.xcscmblueprint
project.xcworkspace

## Obj-C/Swift specific
*.hmap
Expand Down Expand Up @@ -55,7 +54,7 @@ Carthage/

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
Expand All @@ -71,3 +70,7 @@ RemoteSettings.plist

# Framework development
Loop.xcworkspace

# Avoid checking in built assets
Loop/DerivedAssets.xcassets/
WatchApp/DerivedAssets.xcassets/
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode10.2
osx_image: xcode11
# xcode_sdk: iphonesimulator11
# xcode_project: Loop.xcodeproj
# xcode_scheme: Loop
Expand All @@ -17,5 +17,5 @@ script:
- 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
- set -o pipefail && xcodebuild -project Loop.xcodeproj -scheme LoopTests -destination 'name=iPhone 8' test | xcpretty
- set -o pipefail && xcodebuild -project Loop.xcodeproj -scheme DoseMathTests -destination 'name=iPhone 8' test | xcpretty
3 changes: 1 addition & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
github "LoopKit/LoopKit" "dev"
github "LoopKit/CGMBLEKit" "dev"
github "i-schuetz/SwiftCharts" == 0.6.5
github "LoopKit/dexcom-share-client-swift" "dev"
github "LoopKit/G4ShareSpy" "dev"
github "ps2/rileylink_ios" "dev"
github "i-schuetz/SwiftCharts" == 0.6.5
github "LoopKit/Amplitude-iOS" "decreepify"
github "maxkonovalov/MKRingProgressView" ~> 2.2
12 changes: 6 additions & 6 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github "LoopKit/Amplitude-iOS" "2137d5fd44bf630ed33e1e72d7af6d8f8612f270"
github "LoopKit/CGMBLEKit" "ea1267791c66e884f1013fffd36faf4555cc6eaf"
github "LoopKit/G4ShareSpy" "fed5a389e3e47e3a1953878dd21852aa5f44b360"
github "LoopKit/LoopKit" "e386a24577244ee6b2add52e8b2aff0385c2200b"
github "LoopKit/dexcom-share-client-swift" "b0419edf55c7f389b36cb47dd5c376bbd3d03d69"
github "LoopKit/CGMBLEKit" "7b4c1022eb6b91ae3975bfc8ce93fde8e496b4f3"
github "LoopKit/G4ShareSpy" "3b749bc7f6323ad8303af6c755ba9b5649eff816"
github "LoopKit/LoopKit" "953b58e617379354b89ea33e0fd8f220ccc2d366"
github "LoopKit/MKRingProgressView" "f548a5c64832be2d37d7c91b5800e284887a2a0a"
github "LoopKit/dexcom-share-client-swift" "146cccfe4eba5f536487777a72e0e47834fff64e"
github "i-schuetz/SwiftCharts" "0.6.5"
github "maxkonovalov/MKRingProgressView" "2.2.1"
github "ps2/rileylink_ios" "e0dc72050510fb8bf7fc85f655b8d24dc4de0097"
github "ps2/rileylink_ios" "802cc005e3eb10cb5e407586210ceb62a57f8c22"
8 changes: 5 additions & 3 deletions Common/Base.lproj/Intents.intentdefinition
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@
<key>INIntentDefinitionModelVersion</key>
<string>1.0</string>
<key>INIntentDefinitionSystemVersion</key>
<string>17G65</string>
<string>18G87</string>
<key>INIntentDefinitionToolsBuildVersion</key>
<string>10L232m</string>
<string>10G8</string>
<key>INIntentDefinitionToolsVersion</key>
<string>10.0</string>
<string>10.3</string>
<key>INIntents</key>
<array>
<dict>
<key>INIntentCategory</key>
<string>create</string>
<key>INIntentDescription</key>
<string>Add a carb entry to Loop</string>
<key>INIntentDescriptionID</key>
<string>yc02Yq</string>
<key>INIntentLastParameterTag</key>
Expand Down
36 changes: 5 additions & 31 deletions Common/Extensions/GlucoseRangeSchedule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,17 @@ 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
func minQuantity(at date: Date) -> HKQuantity {
return HKQuantity(unit: unit, doubleValue: value(at: date).minValue)
}

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

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


extension Range where Bound == HKQuantity {
extension ClosedRange where Bound == HKQuantity {
func averageValue(for unit: HKUnit) -> Double {
let minValue = lowerBound.doubleValue(for: unit)
let maxValue = upperBound.doubleValue(for: unit)
Expand Down
9 changes: 0 additions & 9 deletions Common/Extensions/HKUnit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ extension HKUnit {
}
}

/// An example value for the "ideal" target
var glucoseExampleTargetValue: Double {
if self == .milligramsPerDeciliter {
return 100
} else {
return 5.5
}
}

/// The smallest value expected to be visible on a chart
var chartableIncrement: Double {
if self == .milligramsPerDeciliter {
Expand Down
24 changes: 24 additions & 0 deletions Common/Extensions/NSBundle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,35 @@ extension Bundle {
return object(forInfoDictionaryKey: "AppGroupIdentifier") as! String
}

var isAppExtension: Bool {
return bundleURL.pathExtension == "appex"
}

var mainAppUrl: URL? {
if let mainAppBundleIdentifier = mainAppBundleIdentifier {
return URL(string: "\(mainAppBundleIdentifier)://")
} else {
return nil
}
}

var gitRevision: String? {
return object(forInfoDictionaryKey: "com-loopkit-Loop-git-revision") as? String
}

var gitBranch: String? {
return object(forInfoDictionaryKey: "com-loopkit-Loop-git-branch") as? String
}

var sourceRoot: String? {
return object(forInfoDictionaryKey: "com-loopkit-Loop-srcroot") as? String
}

var buildDateString: String? {
return object(forInfoDictionaryKey: "com-loopkit-Loop-build-date") as? String
}

var xcodeVersion: String? {
return object(forInfoDictionaryKey: "com-loopkit-Loop-xcode-version") as? String
}
}
9 changes: 1 addition & 8 deletions Common/Extensions/NSTimeInterval.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ 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 @@ -34,15 +30,12 @@ extension TimeInterval {
self.init(minutes: hours * 60)
}

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

var minutes: Double {
return self / 60.0
}

var hours: Double {
return minutes / 60.0
}

}
4 changes: 2 additions & 2 deletions Common/Extensions/SampleValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import LoopKit

extension Collection where Element == SampleValue {
/// O(n)
var quantityRange: Range<HKQuantity>? {
var quantityRange: ClosedRange<HKQuantity>? {
var lowest: HKQuantity?
var highest: HKQuantity?

Expand All @@ -33,6 +33,6 @@ extension Collection where Element == SampleValue {
return nil
}

return l..<h
return l...h
}
}
34 changes: 1 addition & 33 deletions Common/Extensions/UIColor+HIG.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,8 @@ extension UIColor {
// MARK: - HIG colors
// See: https://developer.apple.com/ios/human-interface-guidelines/visual-design/color/

static func HIGTealBlueColor() -> UIColor {
return UIColor(red: 90 / 255, green: 200 / 255, blue: 250 / 255, alpha: 1)
}

static func HIGYellowColor() -> UIColor {
return UIColor(red: 1, green: 204 / 255, blue: 0, alpha: 1)
}

static func HIGOrangeColor() -> UIColor {
return UIColor(red: 1, green: 149 / 255, blue: 0 / 255, alpha: 1)
}

static func HIGPinkColor() -> UIColor {
return UIColor(red: 1, green: 45 / 255, blue: 85 / 255, alpha: 1)
}

static func HIGBlueColor() -> UIColor {
return UIColor(red: 0, green: 122 / 255, blue: 1, alpha: 1)
}

// HIG Green has changed for iOS 13. This is the legacy color.
static func HIGGreenColor() -> UIColor {
return UIColor(red: 76 / 255, green: 217 / 255, blue: 100 / 255, alpha: 1)
}

static func HIGRedColor() -> UIColor {
return UIColor(red: 1, green: 59 / 255, blue: 48 / 255, alpha: 1)
}

static func HIGPurpleColor() -> UIColor {
return UIColor(red: 88 / 255, green: 86 / 255, blue: 214 / 255, alpha: 1)
}

static func HIGGrayColor() -> UIColor {
return UIColor(red: 142 / 255, green: 143 / 255, blue: 147 / 255, alpha: 1)
}

}
54 changes: 45 additions & 9 deletions Common/Extensions/UIColor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,57 @@ import UIKit


extension UIColor {
@nonobjc static var tintColor: UIColor? = nil
@nonobjc static let secondaryLabelColor: UIColor = {
if #available(iOSApplicationExtension 13.0, iOS 13.0, *) {
return UIColor.secondaryLabel
} else {
return UIColor.systemGray
}
}()

@nonobjc static let secondaryLabelColor = UIColor.HIGGrayColor()
@nonobjc static let cellBackgroundColor: UIColor = {
if #available(iOSApplicationExtension 13.0, iOS 13.0, *) {
return .secondarySystemBackground
} else {
return UIColor(white: 239 / 255, alpha: 1)
}
}()

@nonobjc static let cellBackgroundColor = UIColor(white: 239 / 255, alpha: 1)
@nonobjc static let IOBTintColor = UIColor.systemOrange

@nonobjc static let IOBTintColor = UIColor.HIGOrangeColor()
@nonobjc static let COBTintColor: UIColor = {
if #available(iOSApplicationExtension 13.0, iOS 13.0, *) {
return UIColor(dynamicProvider: { (traitCollection) in
// If we're in accessibility mode, return the system color
guard case .normal = traitCollection.accessibilityContrast else {
return .systemGreen
}

@nonobjc static let COBTintColor = UIColor(red: 99 / 255, green: 218 / 255, blue: 56 / 255, alpha: 1)
switch traitCollection.userInterfaceStyle {
case .unspecified, .light:
return UIColor(red: 99 / 255, green: 218 / 255, blue: 56 / 255, alpha: 1)
case .dark:
return UIColor(red: 89 / 255, green: 228 / 255, blue: 51 / 255, alpha: 1)
@unknown default:
return UIColor(red: 99 / 255, green: 218 / 255, blue: 56 / 255, alpha: 1)
}
})
} else {
return UIColor(red: 99 / 255, green: 218 / 255, blue: 56 / 255, alpha: 1)
}
}()

@nonobjc static let agingColor = UIColor.HIGYellowColor()
@nonobjc static let agingColor = UIColor.systemYellow

@nonobjc static let staleColor = UIColor.HIGRedColor()
@nonobjc static let staleColor = UIColor.systemRed

@nonobjc static let unknownColor = UIColor(red: 198 / 255, green: 199 / 255, blue: 201 / 255, alpha: 1)
@nonobjc static let unknownColor: UIColor = {
if #available(iOSApplicationExtension 13.0, iOS 13.0, *) {
return .systemGray4
} else {
return UIColor(red: 198 / 255, green: 199 / 255, blue: 201 / 255, alpha: 1)
}
}()

static let delete = UIColor.HIGRedColor()
static let delete = UIColor.systemRed
}
25 changes: 25 additions & 0 deletions Common/FeatureFlags.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// FeatureFlags.swift
// Loop
//
// Created by Michael Pangburn on 5/19/19.
// Copyright © 2019 LoopKit Authors. All rights reserved.
//

import Foundation


let FeatureFlags = FeatureFlagConfiguration()

struct FeatureFlagConfiguration: Decodable {
let sensitivityOverridesEnabled: Bool

fileprivate init() {
// Swift compiler config is inverse, since the default state is enabled.
#if FEATURE_OVERRIDES_DISABLED
self.sensitivityOverridesEnabled = false
#else
self.sensitivityOverridesEnabled = true
#endif
}
}
Loading