Commit Graph

2103 Commits

Author SHA1 Message Date
Paul Plant 2adc5384ec correction to watchManager() forceComplicationRefreshTimeInMinutes 2024-04-13 09:18:03 +02:00
Paul Plant a3bb69b87e rename NumberImageView to ContactImageView and move to SwiftUIViews folder 2024-04-12 21:01:27 +02:00
Paul Plant 8040eb44d8 rename "Contact Trick" to "Contact Image" in the whole project 2024-04-12 13:54:07 +02:00
Paul Plant ed3a3d84e7 remove old self. references from previous closure in processWatchState() 2024-04-11 19:43:48 +02:00
Paul Plant 9a737c8c74
Merge pull request #527 from yurique/feature/contact-trick
contact trick - missed file
2024-04-11 18:10:26 +02:00
Iurii Malchenko 29a40169c6 Merge remote-tracking branch 'yurique/feature/contact-trick' into feature/contact-trick
# Conflicts:
#	xdrip.xcodeproj/project.pbxproj
2024-04-11 17:43:28 +02:00
Iurii Malchenko 931f918278 uncommitted change 2024-04-11 17:41:20 +02:00
Paul Plant e4977cf1c7
Merge pull request #505 from yurique/feature/contact-trick
adding the "contact trick"
2024-04-11 17:40:51 +02:00
Paul Plant 31a3c42cb5
Merge branch 'staging-5.2' into feature/contact-trick 2024-04-11 17:38:45 +02:00
Paul Plant cd0c6f8c7d
Merge pull request #526 from paulplant/develop
Merge into staging to work on adding external PRs
2024-04-11 17:27:24 +02:00
Iurii Malchenko 9d4d58ab12 dropping some settings 2024-04-11 16:43:40 +02:00
Iurii Malchenko da1d5ab74a Merge branch 'develop' into feature/contact-trick
# Conflicts:
#	xdrip.xcodeproj/project.pbxproj
#	xdrip/Constants/ConstantsLog.swift
#	xdrip/View Controllers/Root View Controller/RootViewController.swift
2024-04-11 15:52:13 +02:00
Paul Plant 65bd945ac3 Update GlucoseChartView to change upper bounds for y axis when on readings
- if there are no BG readings passed to the view, the chart was scaling from 40->400mg/dL which looks stretched for an empty chart.
- modified the upper bounding, in case of bgReadings array being nil, to use the user urgent high value
2024-04-11 11:42:57 +02:00
Paul Plant 7103c3ba31 colour updates/corrections for all widgets
- colour updates/corrections for all widgets

- remove gray color for not recent readings in watch complications

- when using standard apple widgetkit constraints, changing the colour of the bg value and delta to gray when > x minutes old makes no sense as it doesn't indicate that the bg readings are old, rather than that the complication hasn't gotten new data yet (which can be normal for the Watch complication updates).
96ec614a
2024-04-11 11:42:57 +02:00
Paul Plant a3ba279dbf revert internal complication update constraint limits 2024-04-09 23:50:05 +02:00
Paul Plant 1107ac6ac1 improvements to trace file logging
- reworked to include new settings layout since 5.1.0
- watchManager logging updated
2024-04-09 19:27:36 +02:00
Paul Plant d2daad8b9a initial implementation of watch/complications background refresh 2024-04-09 18:54:16 +02:00
Paul Plant bfe1e9dcb4 Correction to live activity compactTrailing text color when no recent BG values 2024-04-07 10:00:32 +02:00
Paul Plant 5828804ad5 correctly show "1 day" in statistics view instead of "1 days"
- this will only affect new installations in the first 24 hours of use.
2024-04-06 12:01:43 +02:00
Johan Degraeve 90c80a7724 version 5.1.5 - build 4197 2024-04-03 08:53:53 +02:00
Paul Plant 72abe3f315
complication widget scaling for 40mm watch (#524) 2024-04-01 13:08:27 +02:00
Paul Plant 1f274188b0
add keep alive icon to iOS widgets for follower modes (#520) 2024-04-01 13:08:15 +02:00
Deniz Cengiz 338a9c2886
Fix browser build for v5.1.4 (#522)
* Remove Package.resolved from xcsharedata

* Add Package.resolved to gitignore
2024-04-01 13:07:59 +02:00
Johan Degraeve 6e944789f4 version 5.1.4 - version 4196 2024-03-31 16:01:05 +02:00
Paul Plant 29200cf41e
fix merge errors (#519)
fix errors caused by bad merging of conflicted files
take advantage to fix a small complier issue left over in the widget provider
2024-03-30 20:50:44 +01:00
Johan Degraeve 678b2b7b02
Merge pull request #515 from paulplant/5.1.4-staging
5.1.4 staging
2024-03-30 10:56:17 +01:00
Samuli Tamminen 16529885b3 Live Activity downsampling: improvements (#518)
* lower the number of readings to send to live activity to stay under 4kB

* change some widget attributes to be computed on demand

* change private widget attributes naming convention to match others
2024-03-30 09:24:59 +01:00
Samuli Tamminen a1bac3f3fd downsample data if needed before sending it to live activity (#517)
Live Activities have maximum payload size of 4kB.
At least Libre 2 EU produces so many values that they cannot be pushed to Live Activity unfiltered,
causing Live Activity start to fail with error: Payload maximum size exceeded.

Fix by downsampling (just pick every nth reading) to maximum of 100 readings.
The threshold value is got by trial and error, then tuning it down a bit to leave some room for different length strings.
2024-03-30 09:23:05 +01:00
Paul Plant d2ce2b4ec0 add instructions when adding a heartbeat
- instructions will be specific to the heartbeat type being added
- change alert title for heartbeat to "Device Name" instead of "Transmitter ID" to avoid confusion
2024-03-30 09:16:49 +01:00
Paul Plant cccfd32135 Update "Libre 3 Heartbeat" to show just "Libre Heartbeat" 2024-03-30 09:16:49 +01:00
Paul Plant aea2404611 changes to try to minimize crashes
- corrections to Live Activity and Widget control
- NightscoutSyncRequired changes
2024-03-30 09:16:49 +01:00
Paul Plant 89b60ffc5c correction to logging in checkAlertAndFire() 2024-03-30 09:16:49 +01:00
Paul Plant 38dcd54b76 watch app corrections
- for 40mm watch size
- slightly reduce bg value size to prevent truncating when xx.x values in mmol/L
2024-03-30 09:16:49 +01:00
Paul Plant a565919a7d
Revert "fix Payload maximum size exceeded error for Live Activities (#513)" (#516)
This reverts commit 67cf698766.
2024-03-29 19:00:53 +01:00
Samuli Tamminen 67cf698766
fix Payload maximum size exceeded error for Live Activities (#513)
Live Activities have maximum payload size of 4kB.
At least Libre 2 EU produces so many values that they cannot be pushed to Live Activity unfiltered,
causing Live Activity start to fail with error: Payload maximum size exceeded.

Fix by downsampling (just pick every nth reading) to maximum of 100 readings.
The threshold value is got by trial and error, then tuning it down a bit to leave some room for different length strings.
2024-03-29 14:43:27 +01:00
Johan Degraeve 0465f2f398 just a version upgrade, was forgotten version 5.1.3 - build 4195 2024-03-27 14:17:52 +01:00
Johan Degraeve 490a6cf84d
Merge pull request #512 from dnzxy/extend-fastfile
Fix Browser Build for v5.1
2024-03-24 22:22:12 +01:00
dnzxy f8f46a76ea Fastfile additions and changes
* Add new xDrip Widget Extension bundle ID
* Change bundle ID and target for Watch Complication Extension
* Change bundle ID and target for Watch App
* Change bundle ID and target for Widget Extension
* Resolve packages
* Update Testflight.md
2024-03-24 22:03:09 +01:00
Johan Degraeve 8410f68fce
Merge pull request #511 from dnzxy/bump-node
Bump node version for github action workflows
2024-03-24 20:03:54 +01:00
dnzxy 699251f69d
Bump node version for github action workflows 2024-03-24 19:10:00 +01:00
Johan Degraeve 8eed36ac4e version 5.1.0 - build 4194 2024-03-24 15:52:20 +01:00
Johan Degraeve ddbdbb1a6f
Merge pull request #508 from paulplant/5.2.0-staging
5.2.0 staging
2024-03-24 15:23:51 +01:00
Johan Degraeve 4cb6203605 add missing strings in language folders 2024-03-24 15:16:23 +01:00
Paul Plant ddd37d40cb update set iOS deployment targets and correct live activity type logic 2024-03-23 22:22:56 +01:00
Paul Plant df65085ca6 add documentation and clean-up some comments/code 2024-03-23 21:15:10 +01:00
Paul Plant d97528b04c refactor some variables names related to heartbeat
- also update package version for CryptoSwift
2024-03-23 20:50:24 +01:00
Paul Plant 9571aa1982 .normal size live activity correction 2024-03-23 15:57:47 +01:00
Paul Plant 00ac34d298 UI updates to live activity and system widgets 2024-03-23 15:04:58 +01:00
Iurii Malchenko 455ad441df contact update error logging 2024-03-23 13:03:24 +01:00
Johan Degraeve 60b13942a2 not using thread.sleep
Not tested by me!

Co-Authored-By: bjornoleh <63544115+bjornoleh@users.noreply.github.com>
Co-Authored-By: Liroy van Hoewijk <4643445+liroyvh@users.noreply.github.com>
2024-03-23 12:34:35 +01:00