This commit is contained in:
armv9 2025-02-24 21:47:40 +09:00
parent d44438df8b
commit 8a6cc26c50
3 changed files with 8 additions and 3 deletions

View File

@ -214,7 +214,7 @@ fun Project.setupApp() {
applicationVariants.all { applicationVariants.all {
outputs.all { outputs.all {
this as BaseVariantOutputImpl this as BaseVariantOutputImpl
outputFileName = outputFileName.replace(project.name, "NB4A-$versionName") outputFileName = outputFileName.replace(project.name, "NekoBox-$versionName")
.replace("-release", "") .replace("-release", "")
.replace("-oss", "") .replace("-oss", "")
} }

View File

@ -162,12 +162,16 @@ func (b *BoxInstance) Close() (err error) {
} }
func (b *BoxInstance) Sleep() { func (b *BoxInstance) Sleep() {
b.pauseManager.DevicePause() if b.pauseManager != nil {
b.pauseManager.DevicePause()
}
// _ = b.Box.Router().ResetNetwork() // _ = b.Box.Router().ResetNetwork()
} }
func (b *BoxInstance) Wake() { func (b *BoxInstance) Wake() {
b.pauseManager.DeviceWake() if b.pauseManager != nil {
b.pauseManager.DeviceWake()
}
} }
func (b *BoxInstance) SetAsMain() { func (b *BoxInstance) SetAsMain() {

View File

@ -27,6 +27,7 @@ import (
"github.com/sagernet/sing-box/protocol/wireguard" "github.com/sagernet/sing-box/protocol/wireguard"
_ "github.com/sagernet/sing-box/experimental/clashapi" _ "github.com/sagernet/sing-box/experimental/clashapi"
_ "github.com/sagernet/sing-dns/quic"
) )
func nekoboxAndroidInboundRegistry() *inbound.Registry { func nekoboxAndroidInboundRegistry() *inbound.Registry {