androidartifact

package
v0.0.0-...-5ae9364 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSameArtifact

func FindSameArtifact(pth string, pths []string) string

FindSameArtifact returns the first artifact which is the same variant as the reference artifact, code signing differences does not matter.

func ParsePackageInfos

func ParsePackageInfos(aaptOut string, isAAB bool) (string, string, string)

ParsePackageInfos parses package name, version code and name from `aapt dump badging` command output.

Types

type ApkInfo

type ApkInfo struct {
	AppName           string
	PackageName       string
	VersionCode       string
	VersionName       string
	MinSDKVersion     string
	RawPackageContent string
}

ApkInfo ...

func GetAPKInfo

func GetAPKInfo(apkPth string) (ApkInfo, error)

GetAPKInfo returns infos about the APK.

type Artifact

type Artifact struct {
	APK string // set if a single APK represents the app

	AAB          string
	Split        []string // split apk paths including the universal apk path, excluding the bundle path
	UniversalApk string
}

Artifact ...

type ArtifactInfo

type ArtifactInfo struct {
	Module         string
	ProductFlavour string
	BuildType      string

	SigningInfo ArtifactSigningInfo
	SplitInfo   ArtifactSplitInfo
}

ArtifactInfo ...

func ParseArtifactPath

func ParseArtifactPath(pth string) ArtifactInfo

ParseArtifactPath parses an android artifact path.

type ArtifactMap

type ArtifactMap map[string]map[string]map[string]Artifact

ArtifactMap module/buildType/flavour/artifacts

type ArtifactSigningInfo

type ArtifactSigningInfo struct {
	Unsigned      bool
	BitriseSigned bool
}

ArtifactSigningInfo ...

type ArtifactSplitInfo

type ArtifactSplitInfo struct {
	SplitParams []string
	Universal   bool
}

ArtifactSplitInfo ...

type SplitArtifactMeta

type SplitArtifactMeta Artifact

SplitArtifactMeta ...

func CreateSplitArtifactMeta

func CreateSplitArtifactMeta(pth string, pths []string) (SplitArtifactMeta, error)

CreateSplitArtifactMeta ...

Jump to

Keyboard shortcuts

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