Commit Graph

2085 Commits

Author SHA1 Message Date
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
Johan Degraeve b67e7e1385 Fix for Dexcom G7
Expired Dexcom G7 transmitters usually stay 'paired' for a while, because the user doesn't delete them in the iOS bluetooth settings.
This changes makes sure that xDrip4iOS will not connected to those devices. It sets a timer waiting for an authentication response, if that's not received then it disconnects, forgets the devices and scans for a new one
2024-03-23 12:27:45 +01:00
Paul Plant 9fc843a849 improvements to Watch app in follower mode 2024-03-23 12:26:23 +01:00
Paul Plant b1773513e9 heartbeat UI implementation to Watch app. 3 hour option adding to chart hours swipe 2024-03-21 17:15:10 +01:00
Paul Plant 6e73d7834d Apple Watch - consider 44mm screens as "small"
- also move small screen pixel limit to constants file
2024-03-18 18:43:55 +01:00
Paul Plant 2f9818cee5 change restart logic for live activities to only allow foreground restarts to be forced once every 4 hours 2024-03-18 18:22:25 +01:00
Paul Plant ba8a8f2148 allow Libre 3 heartbeat to use other sources (L2 etc)
- also comment out Nightscout treatment sync in RVC as still causing crashes
2024-03-18 17:59:27 +01:00
Paul Plant f6cbd4a99b Dexcom G7 Heartbeat: call heartbeat at disconnect
Co-Authored-By: Johan Degraeve <13840461+johandegraeve@users.noreply.github.com>
2024-03-17 12:45:31 +01:00
Paul Plant e06d9173c8 scheduleNewDownload runs only if not heartbeat
- it *should* be disabled for KeepAliveType == .disabled as it will not actually run when the app is sleeping in the background until the app is re-opened
2024-03-17 09:25:29 +01:00
Paul Plant 317412fba5 Watch app header view update 2024-03-16 10:17:37 +01:00
Paul Plant 6b5a529728 apple watch debug enable change
was previously activated in the iOS app via dev settings and passed to the watch state, but now just handled by the Watch app. Can be activated/deactivated by tapping 5 times the glucose chart.
2024-03-16 10:03:04 +01:00
Paul Plant b84f318675 Merge branch '5.2.0-staging' of https://github.com/paulplant/xdripswift into 5.2.0-staging 2024-03-15 20:25:11 +01:00
Paul Plant a9a3d1d487 dynamically set watch view to screen size
using WKInterfaceDevice.current().screenBounds.size the chart size is modified together with text sizes in all views in order to make sure the view renders nicely in small watches
2024-03-15 20:24:36 +01:00
Paul Plant 284bbe0e18 dynamically set watch view to screen size
using WKInterfaceDevice.current().screenBounds.size the chart size is modified together with text sizes in all views in order to make sure the view renders nicely in small watches
2024-03-15 20:13:49 +01:00
Paul Plant 845a53300d improve some messages regarding live activities and heartbeat use 2024-03-15 19:14:44 +01:00
Paul Plant cc2df8213a force refresh of notification settings when background keep-alive type is changed
- this ensures that the live activities UI is enabled when heartbeat is selected but disabled otherwise
2024-03-15 19:08:35 +01:00
Paul Plant 67b566cd9d heartbeat disconnect warning (in seconds) now specific to heartbeat type being used
- removed some heartbeat debugging
2024-03-15 18:50:02 +01:00
Paul Plant 25d98f7632 correction to follower download scheduling 2024-03-15 17:01:08 +01:00
Paul Plant a245c21355 keepAlive download scheduling corrections. Heartbeat and network connection UI updates/fixes 2024-03-14 21:49:50 +01:00