Skip to content

Fix Swift warnings and avoid null HID property writes - #1397

Merged
lujjjh merged 1 commit into
mainfrom
fix/swift-warnings
Sep 14, 2026
Merged

lujjjh merged 1 commit into
mainfrom
fix/swift-warnings

Conversation

@lujjjh

@lujjjh lujjjh commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Resolve Swift compiler warnings across the app, local packages, and tests with Xcode 27. Make intentional conformances and captures explicit, correct availability handling, and clean up ambiguous test expressions while preserving the existing deployment targets.

Skip missing acceleration values when reapplying pointer settings, and reject null HID property values before they reach IOKit's binary plist serializer. Add five regression tests covering missing and nested optional values, explicit nulls, and valid numeric/string values.

Preserve existing system-key posting through IOHIDPostEvent, with its deprecation suppression confined to a small C wrapper.

Validation

  • Debug: 920 application tests passed, with no Swift compiler warnings.
  • Release: arm64 and x86_64 build passed, with no Swift compiler warnings.
  • PointerKit: 14 tests passed; HIDPP: 20 passed; KeyKit: 10 passed and 3 integration tests skipped.
  • make lint and git diff --check passed. Non-Swift build and existing lint warnings remain.

@lujjjh
lujjjh merged commit 7394804 into main Sep 14, 2026
1 check passed
@lujjjh
lujjjh deleted the fix/swift-warnings branch September 14, 2026 15:28
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.

1 participant