Commit c04f7005 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Update dependencies

parent 1d6aa910
......@@ -151,12 +151,12 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1'
implementation 'com.frostnerd.utilskt:lifecycle:1.2.2'
implementation 'com.frostnerd.utilskt:preferences:1.5.31' // https://git.frostnerd.com/AndroidUtils/preferenceskt
implementation 'com.frostnerd.utilskt:navigationdraweractivity:1.4.3' // https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
implementation 'com.frostnerd.utilskt:encrypteddnstunnelproxy:2.1.31' // https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
implementation 'com.frostnerd.utilskt:general:1.0.26' // https://git.frostnerd.com/AndroidUtils/generalkt
implementation 'com.frostnerd.utilskt:adapters:1.3.5' // https://git.frostnerd.com/AndroidUtils/Adapters
implementation 'com.frostnerd.utilskt:lifecycle:1.2.3'
implementation 'com.frostnerd.utilskt:preferences:1.5.32' // https://git.frostnerd.com/AndroidUtils/preferenceskt
implementation 'com.frostnerd.utilskt:navigationdraweractivity:1.4.4' // https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
implementation 'com.frostnerd.utilskt:encrypteddnstunnelproxy:2.2.0' // https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
implementation 'com.frostnerd.utilskt:general:1.0.27' // https://git.frostnerd.com/AndroidUtils/generalkt
implementation 'com.frostnerd.utilskt:adapters:1.3.6' // https://git.frostnerd.com/AndroidUtils/Adapters
storeImplementation 'com.google.android.gms:play-services-cronet:17.0.1'
fdroidImplementation 'com.google.android.gms:play-services-cronet:17.0.1'
......
......@@ -5,6 +5,7 @@ import android.app.PendingIntent
import android.app.Service
import android.content.*
import android.content.pm.PackageManager
import android.hardware.display.DisplayManager
import android.net.*
import android.os.*
import android.system.OsConstants
......@@ -597,6 +598,7 @@ class DnsVpnService : VpnService(), Runnable, CoroutineScope {
builder.addAction(NotificationCompat.Action(null, getString(R.string.notification_service_killed_ignore), ignorePendingIntent))
(getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).notify(Notifications.ID_BAD_SERVER_CONNECTION, builder.build())
log("Showing bad connection notification.")
}
private fun hideBadConnectionNotification() {
......@@ -1498,6 +1500,7 @@ class DnsVpnService : VpnService(), Runnable, CoroutineScope {
bypassHandlers.add(
NoConnectionDnsHandle(
getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager,
getSystemService(Context.DISPLAY_SERVICE) as DisplayManager,
NoConnectionDnsHandle.Behavior.DROP_PACKETS,
regularConnectionCheckIntervalMs = 60000,
connectionListener = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment