-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor logging settings to use DittoLogLevel directly
- Replaced `LoggingOptions` with `DittoLogLevel` from the Ditto SDK, removing the reference to custom wrapper type. - Added `isLoggingEnabled` state to separately track logging enablement alongside log levels. - Updated `SettingsModel`: - Refactored `storedLoggingOption` to migrate legacy `UserDefaults` values to `DittoLogLevel` and clean up old keys. - Simplified future storage/retrieval to use `DittoLogLevel` directly. - Modified `SettingsView` constructor to take a `Ditto` instance instead of `LoggingOptions`. These changes simplify logging logic, align with the updated Ditto SDK, and ensure backward compatibility.
- Loading branch information
1 parent
6c78740
commit d14398c
Showing
4 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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