network_settings_state 0.1.6
network_settings_state: ^0.1.6 copied to clipboard
Check whether Wi-Fi and mobile data are enabled in device settings — not just which network is currently active.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.6 - 2026-07-23 #
Added #
- Swift Package Manager support via
ios/network_settings_state/Package.swift, silencing Flutter's "does not support Swift Package Manager" build warning. The CocoaPodspodspecis retained for apps not yet migrated to SPM.
0.1.5 - 2026-07-07 #
Fixed #
- Fixed (iOS):
isWifiEnabled()andgetSnapshot()could incorrectly report Wi-Fi as disabled when called before any stream listener had subscribed toonChanged, since the underlying network path monitor was only started reactively on stream subscription. It now starts once at plugin initialization, independent of streaming.
0.1.4 - 2026-07-06 #
Fixed #
homepage/repository/issue_trackerURLs inpubspec.yamlpointed to a non-existent repository, and the description exceeded pub.dev's recommended length. Both are now corrected.
0.1.3 - 2026-07-06 #
Fixed #
- Declare the
ACCESS_WIFI_STATEpermission, required byWifiManager.isWifiEnabled().
0.1.2 - 2026-07-06 #
Fixed #
android/build.gradlefailed to compile in consuming apps due to invalid statement ordering around theplugins {}block.
0.1.1 - 2026-07-06 #
Fixed #
android/build.gradleused a legacy Kotlin version declaration that could conflict with a consuming app's own Kotlin/AGP resolution. Now uses the Plugin DSL and inherits the version from the host app.
0.1.0 - 2026-07-03 #
Added #
NetworkSettingsState.isWifiEnabled(): reliable on Android and iOS (iOS is best-effort via interface availability; see README).NetworkSettingsState.isMobileDataEnabled(): reliable on Android; returnsnullon iOS (no public API exists).NetworkSettingsState.getSnapshot(): combined one-shot read.NetworkSettingsState.onChanged: stream ofNetworkSettingsSnapshotupdates.