Skip to content
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

Refactor #530

Merged
merged 12 commits into from
Jan 24, 2023
Merged

Refactor #530

merged 12 commits into from
Jan 24, 2023

Conversation

sbs20
Copy link
Owner

@sbs20 sbs20 commented Jan 24, 2023

No description provided.

sbs20 added 12 commits January 3, 2023 17:08
Converted most of the code to standard classes and removed dependencies on service instances (like `Config`). This makes each class much cleaner, and consistent and above all more unit testable on its own.

There is a new `Application` class which is a singleton service which provides factory methods for things like `config`, `context`, `deviceList` and all the stuff which happens at run time.

This impacted logging which should only be used after deliberate initialisation, but which was being prematurely initialised - so these have had their `require()`s moved inline with method calls where necessary.

This also tidies up a lot of unit tests, file names, class names and so on.
@sbs20 sbs20 self-assigned this Jan 24, 2023
@sbs20 sbs20 merged commit cd5f7f2 into master Jan 24, 2023
@sbs20 sbs20 deleted the refactor branch January 24, 2023 12:59
@sbs20 sbs20 added this to the v2.25.0 milestone Jan 24, 2023
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