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 {
outputs.all {
this as BaseVariantOutputImpl
outputFileName = outputFileName.replace(project.name, "NB4A-$versionName")
outputFileName = outputFileName.replace(project.name, "NekoBox-$versionName")
.replace("-release", "")
.replace("-oss", "")
}

View File

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

View File

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