mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
17 lines
417 B
Go
17 lines
417 B
Go
//go:build android && cmfa
|
|
|
|
package process
|
|
|
|
import "github.com/metacubex/mihomo/constant"
|
|
|
|
type PackageNameResolver func(metadata *constant.Metadata) (string, error)
|
|
|
|
var DefaultPackageNameResolver PackageNameResolver
|
|
|
|
func FindPackageName(metadata *constant.Metadata) (string, error) {
|
|
if resolver := DefaultPackageNameResolver; resolver != nil {
|
|
return resolver(metadata)
|
|
}
|
|
return "", ErrPlatformNotSupport
|
|
}
|