mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-18 22:20:06 +08:00
go 1.24 & fix
This commit is contained in:
parent
1d5c8e8ff5
commit
5ff4eb011c
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.23.6"
|
||||
go-version: ^1.24
|
||||
- name: Native Build
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: ./run lib core
|
||||
|
||||
@ -124,7 +124,7 @@ object DataStore : OnPreferenceDataStoreChangeListener {
|
||||
get() = getLocalPort(Key.MIXED_PORT, 2080)
|
||||
set(value) = saveLocalPort(Key.MIXED_PORT, value)
|
||||
|
||||
fun initGlobal() {
|
||||
fun initGlobal() {
|
||||
if (configurationStore.getString(Key.MIXED_PORT) == null) {
|
||||
mixedPort = mixedPort
|
||||
}
|
||||
|
||||
@ -37,7 +37,6 @@ import io.nekohasekai.sagernet.group.GroupUpdater
|
||||
import io.nekohasekai.sagernet.ktx.*
|
||||
import io.nekohasekai.sagernet.widget.ListHolderListener
|
||||
import moe.matsuri.nb4a.utils.Util
|
||||
import java.util.*
|
||||
|
||||
class MainActivity : ThemedActivity(),
|
||||
SagerConnection.Callback,
|
||||
|
||||
@ -64,6 +64,7 @@ func init() {
|
||||
if err := g.Open(filepath.Join(externalAssetsPath, "geoip.db")); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer g.geoipReader.Close()
|
||||
return g.Rules(name)
|
||||
}
|
||||
}
|
||||
|
||||
@ -20,8 +20,6 @@ import (
|
||||
//go:linkname resourcePaths github.com/sagernet/sing-box/constant.resourcePaths
|
||||
var resourcePaths []string
|
||||
|
||||
var isBgProcess bool
|
||||
|
||||
func NekoLogPrintln(s string) {
|
||||
log.Println(s)
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ var intfBox BoxPlatformInterface
|
||||
var intfNB4A NB4AInterface
|
||||
|
||||
var useProcfs bool
|
||||
var isBgProcess bool
|
||||
|
||||
type NB4AInterface interface {
|
||||
UseOfficialAssets() bool
|
||||
|
||||
Loading…
Reference in New Issue
Block a user