Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
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
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
933c0c5
Add Spike Client and change version
cyoung1024 Aug 15, 2019
305fa22
Add Spike as CGM source
cyoung1024 Aug 15, 2019
3b30754
Add Spike frameworks
cyoung1024 Aug 15, 2019
6e80270
Add Spike to LSApplicationQueriesSchemes
cyoung1024 Aug 15, 2019
e13ef56
Track units for overrides target ranges
ps2 Aug 16, 2019
7f96350
Update Cartfile.resolved
cyoung1024 Aug 16, 2019
df1278c
Add Spike Calibration guide
cyoung1024 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
892a465
Merge dev 1059, temp basal delivery
cyoung1024 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
627b24b
Merge branch 'dev' of https://github.com/LoopKit/Loop into dev-spike
cyoung1024 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
ae0546b
Merge dev 1064, upload loop settings to NS when they change
cyoung1024 Aug 18, 2019
529884f
Update Cartfile.resolved
cyoung1024 Aug 18, 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
7892c9d
Merge dev 1070, upload enabled override as part of status
cyoung1024 Aug 19, 2019
cdb2c13
Avoid extra conversions of temp target ranges (#1072)
ps2 Aug 20, 2019
8df77e8
Merge dev 1072, avoid extra conversions of temp target ranges
cyoung1024 Aug 20, 2019
800c921
Update Cartfile.resolved revisions
ps2 Aug 21, 2019
d59492f
Merge dev, update Cartfile.resolved
cyoung1024 Aug 21, 2019
cca9efc
Update Cartfile.resolved
cyoung1024 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
8050c55
Merge dev
cyoung1024 Aug 26, 2019
66ff96d
Update Cartfile.resolved
cyoung1024 Aug 26, 2019
c96e0b1
Use Minimed and Omnipod PumpManagers as Plugins (#1079)
ps2 Aug 27, 2019
0cd133a
Merge dev 1079, use Minimed and Omnipod PumpManagers as Plugins
cyoung1024 Aug 27, 2019
3193fc0
Update version
cyoung1024 Aug 27, 2019
fb34191
Add syncidentifiers to NS treatments (#1089)
ps2 Sep 3, 2019
0e05a80
Merge dev 1089, add syncidentifiers to NS treatments
cyoung1024 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
06bb1f7
Merge dev 1090 and 1095, upload delivered volume for temp basals to N…
cyoung1024 Sep 8, 2019
cc8dd00
Update Cartfile.resolved
cyoung1024 Sep 13, 2019
aadc3d9
Xcode11 (#1081)
ps2 Sep 13, 2019
fac1955
Bump rileylink rev
ps2 Sep 13, 2019
012a22f
Fixed delay between Spike update and Loop update
jbayart Sep 14, 2019
e5024f8
Capture build details for issue report (#1106)
ps2 Sep 14, 2019
d7391b8
Add capture-build-details script
ps2 Sep 14, 2019
c716aec
Merge pull request #1 from jbayart/fixrefresh-release
cyoung1024 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
ec30370
Merge dev, Xcode11
cyoung1024 Sep 16, 2019
27bdadf
Update Cartfile.resolved
cyoung1024 Sep 16, 2019
e5cd0e4
Copy frameworks with carthage
cyoung1024 Sep 17, 2019
65a79a5
Revert "Update Cartfile.resolved"
cyoung1024 Sep 17, 2019
6a6feff
Fix typo in Copy frameworks with Carthage
cyoung1024 Sep 17, 2019
75f8965
duration is no longer set only for square wave boluses
ps2 Sep 23, 2019
7b19571
Bump cartfile revisions
ps2 Sep 23, 2019
dfe8800
Update Cartfile.resolved
cyoung1024 Sep 24, 2019
dc858f4
Merge dev, duration is no longer set only for square wave boluses
cyoung1024 Sep 24, 2019
6fe9848
Quote dirname output to handle parens in path
ps2 Sep 26, 2019
03bc4a3
Merge dev, Quote dirname output to handle parens in path
cyoung1024 Sep 27, 2019
67ebb47
Bump carthage revs
ps2 Sep 27, 2019
83e0f6f
Merge dev, Bump carthage revs
cyoung1024 Sep 29, 2019
a4568c4
Add confirmation for watch bolus, and start at full recommendation. (…
ps2 Oct 6, 2019
aa2b582
Merge dev 1132, Add confirmation for watch bolus, and start at full r…
cyoung1024 Oct 6, 2019
0a8feea
bump carthage revisions
ps2 Oct 7, 2019
7fc630a
Merge dev, bump carthage revisions
cyoung1024 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
9574bce
Merge dev 1131, remote overrides
cyoung1024 Oct 13, 2019
02ba76f
Update Cartfile.resolved
cyoung1024 Oct 14, 2019
b42c91b
Update carthage revs
ps2 Oct 26, 2019
9407f8c
Update travis to use iPhone 8
ps2 Oct 26, 2019
2f8ec02
Merge dev, Update travis to use iPhone 8
cyoung1024 Oct 27, 2019
713bc8a
Update Cartfile.resolved
cyoung1024 Oct 27, 2019
2c50733
Notification names changed in LoopKit (#1165)
ps2 Nov 7, 2019
07707a5
Merge dev 1165, Notification names changed in LoopKit
cyoung1024 Nov 7, 2019
79e2c84
Update Cartfile.resolved for dev 1165, Notification names changed in …
cyoung1024 Nov 9, 2019
6d15f59
Fixed building from directories containing spaces (#1153)
Nov 13, 2019
49412b6
Bump carthage revisions
ps2 Nov 15, 2019
0dca3d9
Merge dev 1153, Fixed building from directories containing spaces, an…
cyoung1024 Nov 16, 2019
ac31e0b
Bump carthage revs
ps2 Nov 26, 2019
f30686e
Merge dev, Bump carthage revs
cyoung1024 Nov 26, 2019
92732a0
Update spike-client version for dev, Bump carthage revs
cyoung1024 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
be4f7d5
Merge dev 1198, Pause launch if launching before first unlock ; 1204 …
cyoung1024 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
801245c
Merge dev, One ! ; Remove override presets cell in settings ; Revert …
cyoung1024 Dec 22, 2019
2c47962
Bump carthage revs
ps2 Dec 24, 2019
0a26361
Bump carthage revs
ps2 Dec 24, 2019
afa92f7
Merge dev, Bump carthage revs
cyoung1024 Dec 24, 2019
fd22ca0
Bump cartfile revs
ps2 Dec 28, 2019
324a3b7
Merge dev, Bump cartfile revs
cyoung1024 Dec 28, 2019
b4189bc
Translation updates (#1167)
Kdisimone Dec 28, 2019
57bf262
Merge dev 1167, Translation updates
cyoung1024 Dec 28, 2019
3a6a904
Unsign targets
cyoung1024 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
9402b9b
Merge dev, Bump carthage revs
cyoung1024 Dec 29, 2019
13da316
Update SpikeClient rev for translations
cyoung1024 Dec 29, 2019
caf87ed
Remove LoopCore's Localizable.strings from Learn app
ps2 Dec 29, 2019
4e7544b
Merge dev, Remove LoopCore's Localizable.strings from Learn app
cyoung1024 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
62d326e
Merge dev : 1222, release versions, master into dev, and remove extra…
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
abf41ba
Merge dev, update version 2.1
cyoung1024 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
bcf4296
Merge dev, PR 1234 LoopKit/carb-cache-length, PR 1235 LoopKit/current…
cyoung1024 Jan 19, 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
0c3654b
Merge dev PR 1242 from dm61/insulin-model-delay, Update Loop to compi…
cyoung1024 Jan 21, 2020
b0834df
Bump SpikeClient version
cyoung1024 Jan 21, 2020
8fa3571
French translation touchups
cyoung1024 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
2977cd1
Merge dev, PR 1244 from LoopKit/carb-entry-flow
cyoung1024 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
a1c5426
Merge dev Include pending insulin in watch prediction, Visual tweaks …
cyoung1024 Feb 1, 2020
05af23d
Incorporate sleep data into complication user info transfer calculati…
novalegra Feb 4, 2020
300c296
Merge dev 1217, Incorporate sleep data into complication user info tr…
cyoung1024 Feb 4, 2020
234ff9d
Add French translation for Health Share Usage Description
cyoung1024 Feb 4, 2020
fe55f6f
Add period FR translation
cyoung1024 Feb 4, 2020
b278507
Fix incorrect carb effect in bolus prediction
mpangburn Feb 7, 2020
1bb99e7
Merge dev, Fix incorrect carb effect in bolus prediction
cyoung1024 Feb 11, 2020
ed7bf7f
fix nightscout trend arrows (#1274)
dabear Feb 25, 2020
091a077
Merge dev 1274, fix nightscout trend arrows
cyoung1024 Feb 25, 2020
9da678d
Denote stale glucose as three dashes (#1275)
ps2 Feb 29, 2020
ab528ad
Merge dev 1275, Denote stale glucose as three dashes
cyoung1024 Feb 29, 2020
85fdfcf
Remove signing
cyoung1024 Feb 29, 2020
149216c
Support enacting manual loop if loop error (#1252)
mpangburn Feb 29, 2020
47e3dc2
Merge dev 1252, Support enacting manual loop if loop error
cyoung1024 Feb 29, 2020
a1e9ef6
Chore: Updated Swedish (sv) translations. (#1280)
hummelstrand Mar 22, 2020
0b4817f
Merge dev 1280, Chore: Updated Swedish (sv) translations
cyoung1024 Mar 22, 2020
e5d788a
Update cartfile revs
ps2 Mar 22, 2020
d14c4f5
Bump cartfile revs
cyoung1024 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
0cf1ef3
Merge dev, PRs 1289 and 1291, device logs database in separate direct…
cyoung1024 Apr 1, 2020
13b35e2
Update HealthKit usage description (#1294)
novalegra Apr 3, 2020
4be0968
Merge dev 1294, Update HealthKit usage description
cyoung1024 Apr 3, 2020
bc614f1
Bump SpikeClient version
cyoung1024 Apr 3, 2020
ac77834
Bump carthage revs
ps2 Apr 4, 2020
439705a
Merge dev, Bump carthage revs
cyoung1024 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
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
b755231
Merge dev 1302, 1303, bump version
cyoung1024 Apr 18, 2020
dca33b9
Bump SpikeClient rev
cyoung1024 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
c834f5b
Bump carthage rev
ps2 May 4, 2020
4b4192b
Bump carthage revisions
ps2 May 9, 2020
f4415b5
Merge dev, Bump carthage revisions
cyoung1024 May 9, 2020
64c40a5
Bump cartfile revs
ps2 May 11, 2020
7c43452
Merge dev, Bump cartfile revs
cyoung1024 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
5b3f10a
Fix app icon link in README.md (#1311)
jwoglom May 18, 2020
fbccf45
Bump cartfile revisions
ps2 May 18, 2020
f5e0c9c
Merge dev translation updates and bump cartfile revisions
cyoung1024 May 18, 2020
6686ecd
Bump carthage revisions for translation updates
ps2 May 18, 2020
79b711c
Merge dev for translation updates
cyoung1024 May 18, 2020
8642f4c
Use prediction that includes pending insulin
ps2 May 20, 2020
40c4681
Merge dev, Use prediction that includes pending insulin
cyoung1024 May 20, 2020
d6edfad
Update DeviceDataManager.swift (#1328)
marionbarker May 21, 2020
7943595
Merge dev 1328, Update DeviceDataManager.swift
cyoung1024 May 21, 2020
7007472
Open loop if there is a jump > 50mg/dl between 2 consecutive readings
Andrei0105 May 28, 2020
e159db3
Adding Arabic translation (#1332)
abutmim May 31, 2020
01484b7
Bump carthage revisions
ps2 May 31, 2020
e9ca398
Merge dev, Add Arabic translations and bump carthage revisions
cyoung1024 May 31, 2020
147378d
Merge pull request #4 from Andrei0105/dev-spike
cyoung1024 Jul 9, 2020
d03f4b0
Dev-Complete ِArabic translations (#1334)
abutmim Aug 9, 2020
6fa7ca5
Merge branch 'master' into dev
ps2 Aug 9, 2020
8a725ed
Bump version to 2.3 for dev
ps2 Aug 9, 2020
b4b6f26
Bump version to 2.3 for dev
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.1
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.1"
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" "722b3c63fb11ec1e17f5dbe1c24c87680ce66715"
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