8000 Abstracting services by guyluz11 · Pull Request #183 · osociety/network_tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Abstracting services #183

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

Merged
merged 7 commits into from
Feb 22, 2024
Merged

Conversation

guyluz11
Copy link
Collaborator
@guyluz11 guyluz11 commented Feb 11, 2024

Made services singleton to not use static everywhere and to support instances for the flutter overrides.

Also removed the use of injection and getit packages.

Changed class names:
HostScanner --> HostScannerService
PortScanner --> PortScannerService

Usage example
Old:
HostScanner.x();
ARPService.x();
PortScanner.x();

New:
HostScannerService.instance.x();
ARPService.instance.x();
PortScannerService.instance.x();

Fix: osociety/network_tools_flutter#38

This pr does not change the package logic.

Copy link
codecov bot commented Feb 11, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (4332cd4) 76.39% compared to head (be62b4a) 74.14%.
Report is 1 commits behind head on dev.

Files Patch % Lines
.../src/services/impls/mdns_scanner_service_impl.dart 28.57% 5 Missing ⚠️
lib/src/models/mdns_info.dart 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #183      +/-   ##
==========================================
- Coverage   76.39%   74.14%   -2.26%     
==========================================
  Files          19       23       +4     
  Lines         538      553      +15     
==========================================
- Hits          411      410       -1     
- Misses        127      143      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@git-elliot git-elliot merged commit 698abf2 into osociety:dev Feb 22, 2024
@git-elliot git-elliot mentioned this pull request Mar 14, 2024
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.

Improve architecture
2 participants
0