Compare commits
3
Commits
daf8e2de2f
...
601429d63d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
601429d63d | ||
|
|
f27b2f7e08 | ||
|
|
9932774a1d |
Binary file not shown.
@@ -2,6 +2,7 @@ package io.nekohasekai.sfa.bg
|
|||||||
|
|
||||||
import android.app.Service
|
import android.app.Service
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
import io.nekohasekai.libbox.NeighborUpdateListener
|
||||||
import io.nekohasekai.libbox.Notification
|
import io.nekohasekai.libbox.Notification
|
||||||
|
|
||||||
class ProxyService :
|
class ProxyService :
|
||||||
@@ -14,6 +15,12 @@ class ProxyService :
|
|||||||
override fun onBind(intent: Intent) = service.onBind()
|
override fun onBind(intent: Intent) = service.onBind()
|
||||||
|
|
||||||
override fun onDestroy() = service.onDestroy()
|
override fun onDestroy() = service.onDestroy()
|
||||||
|
override fun closeNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
||||||
|
override fun startNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import android.net.VpnService
|
|||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
import io.nekohasekai.libbox.NeighborUpdateListener
|
||||||
import io.nekohasekai.libbox.Notification
|
import io.nekohasekai.libbox.Notification
|
||||||
import io.nekohasekai.libbox.TunOptions
|
import io.nekohasekai.libbox.TunOptions
|
||||||
import io.nekohasekai.sfa.database.Settings
|
import io.nekohasekai.sfa.database.Settings
|
||||||
@@ -51,6 +52,9 @@ class VPNService :
|
|||||||
protect(fd)
|
protect(fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun closeNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
}
|
||||||
|
|
||||||
var systemProxyAvailable = false
|
var systemProxyAvailable = false
|
||||||
var systemProxyEnabled = false
|
var systemProxyEnabled = false
|
||||||
|
|
||||||
@@ -182,4 +186,6 @@ class VPNService :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
||||||
|
override fun startNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
org.gradle.jvmargs=-Xmx8192m -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
|
|||||||
Reference in New Issue
Block a user