temporary fix for building

This commit is contained in:
n3t1zen
2026-05-05 12:03:23 +08:00
parent 9932774a1d
commit f27b2f7e08
2 changed files with 13 additions and 0 deletions
@@ -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?) {
}
} }