-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Migrate K9.isDebugLoggingEnabled to PreferenceDataStore #9509
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
Conversation
dfd3b63 to
111fd27
Compare
rafaeltonholo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contributtion, but there are a few comments that needs to be addressed before merging this
legacy/core/src/main/java/com/fsck/k9/controller/MessagingController.java
Outdated
Show resolved
Hide resolved
legacy/core/src/main/java/com/fsck/k9/message/MessageBuilder.java
Outdated
Show resolved
Hide resolved
legacy/core/src/main/java/com/fsck/k9/preferences/DebugLogConfigurator.kt
Show resolved
Hide resolved
legacy/core/src/main/java/com/fsck/k9/service/DatabaseUpgradeService.java
Show resolved
Hide resolved
legacy/storage/src/main/java/com/fsck/k9/storage/notifications/K9NotificationStoreProvider.kt
Show resolved
Hide resolved
4322638 to
7f5cfc5
Compare
…'s DEBUG value via expect-actual in commonMain
7f5cfc5 to
c697ac6
Compare
rafaeltonholo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the previous comments, however, there are a few still missing:
- Revert AttachmentProvider.java changes
- Revert RawMessageProvider.java changes
- Revert MlfUtils.java changes.
Additionally, with the introduction of the DebugLogConfiguration into :logging/impl-legacy, you need to remove the legacy/core/src/main/java/com/fsck/k9/preferences/DebugLogConfigurator.kt, to avoid code duplication.
legacy/core/src/main/java/com/fsck/k9/preferences/DebugLogConfigurator.kt
Show resolved
Hide resolved
c697ac6 to
0b5cf43
Compare
0b5cf43 to
a8d90f5
Compare
rafaeltonholo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! Thanks for addressing all the comments and for this contribution!
Implementation Highlights
core.preferencemodule and shared BuildConfig'sDEBUGflag throughexpect-actualpattern incommonMain.K9.isDebugLoggingEnabledtoPreferenceDataStore.