From f27b2f7e0872adf1c6cb5d3037df28a2b4a58bf4 Mon Sep 17 00:00:00 2001 From: n3t1zen Date: Tue, 5 May 2026 12:03:23 +0800 Subject: [PATCH] temporary fix for building --- app/src/main/java/io/nekohasekai/sfa/bg/ProxyService.kt | 7 +++++++ app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/app/src/main/java/io/nekohasekai/sfa/bg/ProxyService.kt b/app/src/main/java/io/nekohasekai/sfa/bg/ProxyService.kt index 74c0412..95972c9 100644 --- a/app/src/main/java/io/nekohasekai/sfa/bg/ProxyService.kt +++ b/app/src/main/java/io/nekohasekai/sfa/bg/ProxyService.kt @@ -2,6 +2,7 @@ package io.nekohasekai.sfa.bg import android.app.Service import android.content.Intent +import io.nekohasekai.libbox.NeighborUpdateListener import io.nekohasekai.libbox.Notification class ProxyService : @@ -14,6 +15,12 @@ class ProxyService : override fun onBind(intent: Intent) = service.onBind() override fun onDestroy() = service.onDestroy() + override fun closeNeighborMonitor(listener: NeighborUpdateListener?) { + + } override fun sendNotification(notification: Notification) = service.sendNotification(notification) + override fun startNeighborMonitor(listener: NeighborUpdateListener?) { + + } } diff --git a/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt b/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt index 6b4c814..cfb7534 100644 --- a/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt +++ b/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt @@ -7,6 +7,7 @@ import android.net.VpnService import android.os.Build import android.os.IBinder import android.util.Log +import io.nekohasekai.libbox.NeighborUpdateListener import io.nekohasekai.libbox.Notification import io.nekohasekai.libbox.TunOptions import io.nekohasekai.sfa.database.Settings @@ -51,6 +52,9 @@ class VPNService : protect(fd) } + override fun closeNeighborMonitor(listener: NeighborUpdateListener?) { + } + var systemProxyAvailable = false var systemProxyEnabled = false @@ -182,4 +186,6 @@ class VPNService : } override fun sendNotification(notification: Notification) = service.sendNotification(notification) + override fun startNeighborMonitor(listener: NeighborUpdateListener?) { + } }