mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-18 22:20:06 +08:00
Fix
This commit is contained in:
parent
d44438df8b
commit
8a6cc26c50
@ -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", "")
|
||||
}
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user