Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.1.0 staging #508

Merged
merged 72 commits into from
Mar 24, 2024
Merged

5.1.0 staging #508

merged 72 commits into from
Mar 24, 2024

Conversation

paulplant
Copy link
Collaborator

@paulplant paulplant commented Mar 23, 2024

REQUISITES:

  • the minimum required iOS version is now 16.2 (Apple iPhone 8/SE 2nd gen and later)
  • the minimum required WatchOS version is 10.0 (Apple Watch Series 4/SE and later)

FEATURES/FIXES:

  • live activities added. Can select if they will be always running, or only when low/high or urgent low/high etc Live activity #446
  • live activity sizes can be chosen between minimal (bg value + delta only), normal (as minimal + 3hr chart) and large (8hr chart and data source info)
  • dynamic island added for compatible devices
  • the app will restart the live activity when the app is brought to the foreground after four hours since the activity was started
  • user will be asked to open the app to prevent the live activity from expiring when approaching 8 hours in the background
  • widgets added for all available system widget types to add xDrip4iOS glucose charts and data to the home screen
  • the old Today style widget has been completely removed and replaced
  • Dexcom battery drain in direct connection should now be fixed Dexcom connection loops and potential cause for battery drains #494
  • new Watch app added including glucose chart, sensor progress and data source information
  • Watch chart can be zoomed in/out by swiping left/right
  • force-fetch can be performed by double-tapping the glucose value on the top-left
  • debug overlay can be shown/hidden by quickly tapping the glucose chart five times
  • Watch app scales most content for small/large Watches
  • watch complications added for all available types
  • heartbeat option added to bluetooth devices screen to allow an external bluetooth device to trigger follower downloads (for example adding a Libre 3 as a heartbeat to trigger the download from LibreLinkUp)
  • the app will wait for a second after receiving the heartbeat before trying to download data from the follower data source (to allow readings to first be uploaded)
  • if a heartbeat is added, the user should select "Heartbeat" as the Follower Background Keep-alive option. This will use almost zero battery and reliably wake up the app without needing to use the standard "silent noise" background trick.
  • users can add a Libre 3, Dexcom G7, OmniPod as the heartbeat to wake the app up in the background
  • M5Stack connection will now automatically trigger a heartbeat if used with the latest M5Stack software. No need to add it as a heartbeat
  • when adding a Libre heartbeat, just enter the first 4-5 digits of the device name (from iPhone settings -> Bluetooth) and hit scan
  • Libre 2 US/CA/AU should also be working fine as a heartbeat but has (very) limited testing. Add them as Libre 3 and feedback to the development team
  • using a heartbeat as the follower background keep-alive will avoid CarPlay audio interruptions CarPlay - Application takes over audio source of the car in follower mode #498
  • home screen snooze icons updated to share common style
  • many, many small fixes and changes

TODO:

  • add background refresh for watch widgets/complications
  • add native notifications for Watch app
  • add translations of new strings

- remove old widget target
- remove references
- remove files
- keep a copy of the localized text files and extensions used by the old widget as they can be re-used (stored in TodayWidgetSaved folder)
- app builds cleanly without anything left of old widget
also added fallback for live activity settings ui to show as disabled when iOS16.2 is not available
removed widget/watch specific/duplicated extensions, moved common data models to xDrip target and made sure targets are set correctly for all common files.
paulplant and others added 27 commits March 13, 2024 23:06
…ype being used

- removed some heartbeat debugging
…e is changed

- this ensures that the live activities UI is enabled when heartbeat is selected but disabled otherwise
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
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
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.
- 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
Co-Authored-By: Johan Degraeve <13840461+johandegraeve@users.noreply.github.com>
- also comment out Nightscout treatment sync in RVC as still causing crashes
- also move small screen pixel limit to constants file
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
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>
- also update package version for CryptoSwift
@JohanDegraeve JohanDegraeve merged commit ddbdbb1 into JohanDegraeve:develop Mar 24, 2024
@paulplant paulplant changed the title 5.2.0 staging 5.1.0 staging Mar 29, 2024
@paulplant paulplant deleted the 5.2.0-staging branch March 29, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants