mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 22:50:05 +08:00
Fix
This commit is contained in:
parent
d44438df8b
commit
8a6cc26c50
@ -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", "")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -162,12 +162,16 @@ func (b *BoxInstance) Close() (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (b *BoxInstance) Sleep() {
|
func (b *BoxInstance) Sleep() {
|
||||||
|
if b.pauseManager != nil {
|
||||||
b.pauseManager.DevicePause()
|
b.pauseManager.DevicePause()
|
||||||
|
}
|
||||||
// _ = b.Box.Router().ResetNetwork()
|
// _ = b.Box.Router().ResetNetwork()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BoxInstance) Wake() {
|
func (b *BoxInstance) Wake() {
|
||||||
|
if b.pauseManager != nil {
|
||||||
b.pauseManager.DeviceWake()
|
b.pauseManager.DeviceWake()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BoxInstance) SetAsMain() {
|
func (b *BoxInstance) SetAsMain() {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user