migrating Preferences and Messages to stand-alone version#1130
migrating Preferences and Messages to stand-alone version#1130AhmedMagedC wants to merge 0 commit into
Conversation
|
so for the language display issue, i suspect it happened when i renamed it's fixed now |
Sorry, something went wrong.
|
Hi @AhmedMagedC Thank you for the PR! Sorry I got a little busy, hope to get to this soon! |
Sorry, something went wrong.
Stefterv
left a comment
There was a problem hiding this comment.
Hi @AhmedMagedC Thank you again for the work! It is heading very much in the right direction. I have added some comments as suggestions to help further improve
Sorry, something went wrong.
|
Hi @AhmedMagedC Sorry it took me so long to take a look at your PR again! and again thank you for your efforts, it's helping me a lot trying figure out how to refactor some of these intertwined elements. Looking at your PR and #1164 I think it is important moving forward that we only migrate one class at a time. I would suggest that any functionality in the |
Sorry, something went wrong.
Hi @Stefterv , It's okay it's also the first time for me trying to refactor a codebase by decoupling tightly-coupled classes im not sure i follow you, also for the change of getting the setting folder for each OS is now independent of |
Sorry, something went wrong.
|
Yes exactly, instead of migrating |
Sorry, something went wrong.
|
Hi @Stefterv , Sorry for the late reply i was busy for the last couple of weeks i see now that we should currently focus on migrating for the paths, i dont undetstand why i should undo it |
Sorry, something went wrong.
|
Hi @AhmedMagedC! Again your work on this has been invaluable in figuring out a strategy for starting to untangle some of these parts. I’m recommending we tackle one class at a time to avoid regressions and the risk of having to undo a PR because of an unforeseen side effect in the existing code. For me, an important part of these decoupling steps is making the coupling between classes more visible. That way, we can gradually refine each class to have clearer inputs and outputs. |
Sorry, something went wrong.
d71cd9d to
3f36db5
Compare
August 14, 2025 13:45
Resolves #1104
Changes
Preferencesto:app:utilsmodule making it independent ofappmodule by also moving the functionalities that depends onapptoAppPreferencesclassMessagesclass to be able to use it (for example in debugging) in different areas of ProcessingUtilsinto:app:utils, because why keeping it inappit doesn't need any functionalities from there, and also can be used in:app:utilswithout the need to depend onappgetSettingsFolder()method for each platform from:appto:app:utils, without duplication the code i madeapp.Platformclass to depend onSettingsResolverin:app:utilsto get the correct location for each platformdefaults.txtnow by using JAR resource system instead ofPlatform.getContentFile()(which is also marked as deprecated in the codebase encouraging to migrate to JAR RS)Todo
Tests
I tried to compile and run, as for now preferences are loaded and saved correctly
but for some reason some languages aren't displayed properly like: arabic , chinese, but languages like: english, japanese properly displayed.
I will look into it, but any help or suggestion of why that happens is very much appreciated