Fix Watch App Color extensions and TidepoolService API compatibility errors #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The project had compilation errors preventing builds from succeeding:
Color.bgDarkBlue
andColor.bgDarkerDarkBlue
extensions causing "Type 'Color' has no member" errors across 5 Watch App view filesStoredSettings.swift
Solution
Watch App Color Extensions
Added missing Color static members to
Trio Watch App Extension/Helper/Helper+Extensions.swift
:These extensions were already defined in the main iOS app's
Color+Extensions.swift
but were not available to the Watch App Extension target.TidepoolService API Compatibility
Updated the TidepoolService submodule to align with the latest TidepoolKit API. The API no longer accepts
serialNumber
andautomatedDelivery
as constructor parameters forTCGMSettingsDatum
andTPumpSettingsDatum
:Before:
After:
Similar changes were made to
TPumpSettingsDatum
to remove bothautomatedDelivery
andserialNumber
parameters.Testing
All compilation errors mentioned in the issue have been resolved:
AcknowledgementPendingView.swift:9
- Color.bgDarkBlueBolusConfirmationView.swift:14
- Color.bgDarkBlue/bgDarkerDarkBlueBolusInputView.swift:20
- Color.bgDarkBlue/bgDarkerDarkBlueCarbsInputView.swift:19
- Color.bgDarkBlue/bgDarkerDarkBlueTrioMainWatchView.swift:57
- Color.bgDarkBlue/bgDarkerDarkBlueStoredSettings.swift:71
- Extra serialNumber argumentStoredSettings.swift:86
- Extra automatedDelivery and serialNumber argumentsOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.