Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
574ecbc
Bump version for dev
ps2 Jan 27, 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
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
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
8a22271
Learn app target and LoopCore framework (#900)
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
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
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
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
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
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
5377f3c
Bump bolus ring width down a point
ps2 Apr 2, 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
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
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
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
cbaf4c9
Lola
cyoung1024 Apr 3, 2019
630031a
Loop
cyoung1024 Apr 3, 2019
59c8cfb
Loop
cyoung1024 Apr 3, 2019
7a7e601
spike-master
cyoung1024 Apr 17, 2019
2c7d8d6
spike-master
cyoung1024 Apr 18, 2019
6372177
loop
cyoung1024 Apr 24, 2019
30ac90e
loop
cyoung1024 Apr 24, 2019
03aa712
loop
cyoung1024 Apr 24, 2019
e4fb96f
loop
cyoung1024 Apr 27, 2019
4a5f4ff
G6 update
cyoung1024 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
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
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
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
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
5df0b4c
info.plist fix for BT for ios13 (#1124)
Kdisimone Sep 23, 2019
3a3e7a2
Merge master 1124, info.plist fix for BT for ios13
cyoung1024 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
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
4ea8332
Add Siri back in
cyoung1024 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
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
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
2a525f9
Merge dev 1223, Release 2.0
cyoung1024 Jan 1, 2020
b04a8ab
Bump xcconfig version
ps2 Jan 1, 2020
0d7863d
Merge master, Bump xcconfig version
cyoung1024 Jan 1, 2020
43a9384
Update SpikeClient version for 2.0
cyoung1024 Jan 1, 2020
1e86a3a
Add Spike refresh fix and French translation touchups
cyoung1024 Jan 4, 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
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
a1e9ef6
Chore: Updated Swedish (sv) translations. (#1280)
hummelstrand Mar 22, 2020
e5d788a
Update cartfile revs
ps2 Mar 22, 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
83d328b
Bump SpikeClient version
cyoung1024 Apr 3, 2020
ac77834
Bump carthage revs
ps2 Apr 4, 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
b498923
Merge pull request #1305 from LoopKit/dev
ps2 Apr 18, 2020
1edc1d4
Merge dev, 1302, 1303, 1305, bump version
cyoung1024 Apr 18, 2020
a8f70a2
Bump SpikeClient version
cyoung1024 Apr 18, 2020
5b3f10a
Fix app icon link in README.md (#1311)
jwoglom May 18, 2020
dba0f79
Merge master 1311, Fix app icon link in README.md
cyoung1024 May 18, 2020
3b3f374
Open loop if there is a jump > 50mg/dl between 2 consecutive readings
Andrei0105 May 28, 2020
bd7412a
Merge pull request #5 from Andrei0105/spike-master
cyoung1024 Jul 9, 2020
b6e96de
Release 2.2.1 (#1354)
ps2 Aug 9, 2020
6c55257
Release 2.2.1
cyoung1024 Aug 9, 2020
488de8f
Fix release version
cyoung1024 Aug 9, 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/
16 changes: 12 additions & 4 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: xcode11
# 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
- 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
14 changes: 7 additions & 7 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

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 "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 "LoopKit/Amplitude-iOS" "decreepify"
github "cyoung1024/spike-client-swift-195" "dev"
14 changes: 8 additions & 6 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
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 "LoopKit/CGMBLEKit" "7b4c1022eb6b91ae3975bfc8ce93fde8e496b4f3"
github "LoopKit/G4ShareSpy" "3b749bc7f6323ad8303af6c755ba9b5649eff816"
github "LoopKit/LoopKit" "953b58e617379354b89ea33e0fd8f220ccc2d366"
github "LoopKit/MKRingProgressView" "f548a5c64832be2d37d7c91b5800e284887a2a0a"
github "LoopKit/dexcom-share-client-swift" "146cccfe4eba5f536487777a72e0e47834fff64e"
github "cyoung1024/spike-client-swift-195" "cc896a76b1bd458473a8a58ccb320fefa7b37eb9"
github "i-schuetz/SwiftCharts" "0.6.5"
github "ps2/rileylink_ios" "3fc48c7c34f7870afc8504a1771ff9c96b97640f"
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
50 changes: 4 additions & 46 deletions Common/Extensions/GlucoseRangeSchedule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,16 @@ 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)
}
}


extension DoubleRange {
var averageValue: Double {
extension ClosedRange 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
}
}
18 changes: 1 addition & 17 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 All @@ -43,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
}
}
1 change: 1 addition & 0 deletions Common/Extensions/NSTimeInterval.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ extension TimeInterval {
var hours: Double {
return minutes / 60.0
}

}
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 { }
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
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import LoopKitUI
import LoopUI


extension TextFieldTableViewCell: NibLoadable { }
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
}
Loading