android

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildObjcopyPath

func BuildObjcopyPath(path string) (string, error)

BuildObjcopyPath - Builds the path to the Objcopy binary within the NDK root path

func BuildVariantsList

func BuildVariantsList(path string) ([]string, error)

BuildVariantsList - Returns a list of variants from a given path

func GetAndroidNDKRoot

func GetAndroidNDKRoot(path string) (string, error)

GetAndroidNDKRoot - Returns a valid Android NDK root path

func GetNdkVersion

func GetNdkVersion(path string) (int, error)

GetNdkVersion - Returns the major NDK version

func GetVariantDirectory added in v1.2.1

func GetVariantDirectory(path string) (string, error)

func Objcopy

func Objcopy(objcopyPath string, file string, outputPath string) (string, error)

Objcopy - Processes files using objcopy

func ReadAabManifest

func ReadAabManifest(path string) (map[string]string, error)

Types

type Application

type Application struct {
	XMLName  xml.Name `xml:"application"`
	MetaData MetaData `xml:"meta-data"`
}

type Manifest

type Manifest struct {
	XMLName       xml.Name    `xml:"manifest"`
	ApplicationId string      `xml:"package,attr"`
	VersionCode   string      `xml:"versionCode,attr"`
	VersionName   string      `xml:"versionName,attr"`
	Application   Application `xml:"application"`
}

func ParseAndroidManifestXML

func ParseAndroidManifestXML(manifestFile string) (*Manifest, error)

ParseAndroidManifestXML - Pulls information from a human-readable xml file into a struct

type MetaData

type MetaData struct {
	XMLName xml.Name `xml:"meta-data"`
	Name    []string `xml:"name,attr"`
	Value   []string `xml:"value,attr"`
}

Jump to

Keyboard shortcuts

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