bootstrap

This commit is contained in:
problematicconsumer
2023-08-16 15:16:02 +03:30
parent e250a17491
commit d0fe323068
10 changed files with 699 additions and 0 deletions

12
mobile/mobile.go Normal file
View File

@@ -0,0 +1,12 @@
package mobile
import (
"github.com/hiddify/libcore/shared"
_ "github.com/sagernet/gomobile/event/key"
)
func ConvertToSingbox(path string) (string, error) {
options := shared.ConfigTemplateOptions{IncludeTunInbound: true, IncludeMixedInbound: false, IncludeLogOutput: false}
config, err := shared.ConvertToSingbox(path, options)
return string(config), err
}