src

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apk

type Apk struct {
	ErrorList []error
	Sdk       *Sdk
	// contains filtered or unexported fields
}

func NewApk

func NewApk(path string) *Apk

func (*Apk) Parse

func (a *Apk) Parse() (Info, error)

type Info

type Info struct {
	Md5            string
	Size           int64
	Label          string
	Package        string
	VersionCode    int32
	VersionName    string
	TargetSdk      int32
	TargetSdkName  string
	MinSdk         int32
	MinSdkName     string
	PermissionList []Permission
	Icon           []byte
}

type Permission

type Permission struct {
	Key   string `json:"Key"`
	Title string `json:"Title"`
	Memo  string `json:"Memo"`
	Level int    `json:"Level"`
}

type Sdk

type Sdk struct {
	// contains filtered or unexported fields
}

func NewSdk

func NewSdk() *Sdk

func (*Sdk) GetPermissionByKey

func (s *Sdk) GetPermissionByKey(key string) (Permission, error)

func (*Sdk) GetVersionByCode

func (s *Sdk) GetVersionByCode(code int) (Version, error)

func (*Sdk) LoadPermissionList

func (s *Sdk) LoadPermissionList()

func (*Sdk) LoadVersionList

func (s *Sdk) LoadVersionList()

type Version

type Version struct {
	Name string
	Code int
	Char string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL