Skip to content

feat(network): add NetworkService for network availability monitoring - #2

Merged
CowboyGH merged 3 commits into
developfrom
feature/network-service
Dec 19, 2025
Merged

CowboyGH merged 3 commits into
developfrom
feature/network-service

Conversation

@CowboyGH

Copy link
Copy Markdown
Owner

🚀 Summary

Adds a NetworkService abstraction (and NetworkServiceImpl) to monitor network availability via connectivity_plus, with unit tests.

✨ Changes

  • ✅ Added NetworkService API: init(), isConnected, connectionStream, hasNetwork().
  • ✅ Implemented NetworkServiceImpl with cached state and deduplicated stream emissions.
  • ✅ Registered the service in DI.
  • ✅ Added Android permissions: ACCESS_NETWORK_STATE, INTERNET.
  • ✅ Added unit tests for init, stream updates, deduplication, and dispose.

📱 iOS

  • Updated Podfile.lock and project.pbxproj due to dependency version upgrades (Firebase/Firestore pods) and adding connectivity_plus.

🧪 Verification

  • flutter analyze
  • flutter test
  • Built and launched on Android and iOS locally.

@CowboyGH
CowboyGH merged commit 65b0adf into develop Dec 19, 2025
3 checks passed
@CowboyGH
CowboyGH deleted the feature/network-service branch December 19, 2025 07:53
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