diff --git a/build.gradle b/build.gradle index a68adc14..8e355c93 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ buildscript { } } dependencies { - classpath 'com.android.tools.build:gradle:3.5.0-beta05' + classpath 'com.android.tools.build:gradle:3.5.0-rc01' classpath 'com.github.ben-manes:gradle-versions-plugin:0.21.0' classpath 'com.google.gms:google-services:4.3.0' classpath 'io.fabric.tools:gradle:1.30.0' diff --git a/mobile/build.gradle b/mobile/build.gradle index b01418f0..58f63f88 100644 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -19,8 +19,8 @@ android { minSdkVersion 21 targetSdkVersion 29 resConfigs "ru", "zh-rCN" - versionCode 207 - versionName '2.5.0' + versionCode 208 + versionName '2.5.1' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/client/MacLookup.kt b/mobile/src/main/java/be/mygod/vpnhotspot/client/MacLookup.kt index 654be479..a1c5e785 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/client/MacLookup.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/client/MacLookup.kt @@ -15,7 +15,6 @@ import kotlinx.coroutines.launch import org.json.JSONException import org.json.JSONObject import timber.log.Timber -import java.io.IOException import java.net.HttpURLConnection import java.net.URL diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt index e1bbc715..0db85441 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt @@ -16,8 +16,8 @@ import timber.log.Timber import java.lang.IllegalArgumentException @RequiresApi(28) -class TetherTimeoutMonitor(private val context: Context, private val handler: Handler, private val onTimeout: () -> Unit): - ContentObserver(handler), AutoCloseable { +class TetherTimeoutMonitor(private val context: Context, private val handler: Handler, + private val onTimeout: () -> Unit) : ContentObserver(handler), AutoCloseable { /** * config_wifi_framework_soft_ap_timeout_delay was introduced in Android 9. * @@ -40,7 +40,8 @@ class TetherTimeoutMonitor(private val context: Context, private val handler: Ha app.resources.getInteger(Resources.getSystem().getIdentifier( "config_wifi_framework_soft_ap_timeout_delay", "integer", "android")).let { delay -> if (delay < MIN_SOFT_AP_TIMEOUT_DELAY_MS) { - Timber.w("Overriding timeout delay with minimum limit value: $delay < $MIN_SOFT_AP_TIMEOUT_DELAY_MS") + Timber.w( + "Overriding timeout delay with minimum limit value: $delay < $MIN_SOFT_AP_TIMEOUT_DELAY_MS") MIN_SOFT_AP_TIMEOUT_DELAY_MS } else delay }