Easily Connect to WiFi Networks
Time for a new Release
Finally migrated to maven central #115 Repository url is now changed to:
dependencies {
implementation("io.github.thanosfisherman.wifiutils:wifiutils:1.6.6")
}
Connecting by SSID prefix #111 call patternMatch()
like so WifiUtils.withContext(context).patternMatch()
Updated AGP plugin to 7.0.2
Updated Kotlin to 1.5.30
Updated Gradle wrapper to 7.2
Hopefully resolves Elvis without the need of including it as an extra dependency
isWifiConnected
convenience method for checking whether you are connected against a specific SSID or simply connected to a wifi network regardless of its SSID. Check the sample project for an example.Disconnect Improvements.
Support both disconnecting or removing network config for pre android 10.
Brought back connectivityManager.bindProcessToNetwork(network);
required to be able to use internet from wifi network.
CAUTION Breaking changes in onConnectionResult
class documentation needs an update. For now check the MainActivity
class to see what's changed.
Small fix: bindProcessToNetwork actually wasn't needed. This is only required when you want to execute api calls to a wifi network that has no internet access, and should not be part of WifiUtils library.
Added basic support for Android 10