diff --git a/build.gradle b/build.gradle index 47b1eae..16d6197 100644 --- a/build.gradle +++ b/build.gradle @@ -26,11 +26,11 @@ task clean(type: Delete) { ext { compileSdkVersion = 29 - buildToolsVersion = '29.0.0' + buildToolsVersion = '29.0.3' minSdkVersion = 15 targetSdkVersion = 29 - publishVersionName = '1.5.1' - publishVersionCode = 16 + publishVersionName = '1.6.0' + publishVersionCode = 17 currentVersionDesc = 'WifiUtils current version' bintrayRepo = 'maven' diff --git a/sample/build.gradle b/sample/build.gradle index 9a44022..b19db1e 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -33,6 +33,6 @@ dependencies { api project(':wifiutils') implementation "androidx.appcompat:appcompat:1.1.0" implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test.ext:junit:1.1.2-alpha05' + testImplementation 'junit:junit:4.13' + androidTestImplementation 'androidx.test.ext:junit:1.1.2-beta01' } diff --git a/wifiutils/build.gradle b/wifiutils/build.gradle index 89ccfde..dd2dd62 100644 --- a/wifiutils/build.gradle +++ b/wifiutils/build.gradle @@ -35,8 +35,8 @@ dependencies { }) implementation "androidx.annotation:annotation:1.1.0" implementation 'com.thanosfisherman.elvis:elvis:2.0' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test.ext:junit:1.1.2-alpha05' + testImplementation 'junit:junit:4.13' + androidTestImplementation 'androidx.test.ext:junit:1.1.2-beta01' } //apply from: 'install.gradle' //apply from: 'bintray.gradle' \ No newline at end of file diff --git a/wifiutils/src/main/java/com/thanosfisherman/wifiutils/ConfigSecurities.java b/wifiutils/src/main/java/com/thanosfisherman/wifiutils/ConfigSecurities.java index d6242d6..5464589 100644 --- a/wifiutils/src/main/java/com/thanosfisherman/wifiutils/ConfigSecurities.java +++ b/wifiutils/src/main/java/com/thanosfisherman/wifiutils/ConfigSecurities.java @@ -162,6 +162,7 @@ static WifiConfiguration getWifiConfiguration(@NonNull final WifiManager wifiMgr return null; } + @RequiresPermission(allOf = {ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE}) @Nullable static WifiConfiguration getWifiConfiguration(@NonNull final WifiManager wifiManager, @NonNull final String ssid) { final List configuredNetworks = wifiManager.getConfiguredNetworks();