Conversation
…lement direct pairing/connection logic with socket verification.
…hability logic, and update UI component transitions and sizing
…ize service authentication tracking in BLE central manager
…disconnect logic upon stable Wi-Fi connection
… with configurable settings
…OKit for battery status retrieval
…lls with PATH environment variable iteration
…vals for background tasks
…n WebSocket server using new data-based decryption methods
…d encryption and messaging
…switching reliability
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces significant improvements to device connection management, BLE stability, and clipboard synchronization in the
AppStateandBLECentralManagerclasses. The main focus is on making BLE and Wi-Fi connections more robust and user-friendly, optimizing clipboard sync, and improving device name and wallpaper handling for BLE connections.Connection management and BLE stability:
BLECentralManagerto ensure BLE is only disconnected after Wi-Fi has been stably connected for 5 seconds, preventing premature BLE disconnects if Wi-Fi is unstable. (F973f901L41R41)isRegularConnectionproperty, improving code clarity and reliability for distinguishing between BLE and Wi-Fi connections. [1] [2] [3] [4] [5]Clipboard synchronization improvements:
NSPasteboard.changeCountto avoid unnecessary syncs and reduce CPU usage. [1] [2] [3]Device name and wallpaper handling:
AppState.getPreferredDeviceName(fallback:)to consistently use the last regular device name for BLE connections, improving device identification. [1] [2]Settings and user defaults:
isAutoSwitchWithBLEEnabledsetting, persisted in UserDefaults and integrated withDiscoveryManager, giving users more control over BLE auto-switch behavior. [1] [2]BLE service discovery and authentication:
These changes collectively improve connection reliability, user experience, and code maintainability.