androidartifact

package
v2.0.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 16 Imported by: 1

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 ParsePackageInfo

func ParsePackageInfo(input string, packageNameKey string) (string, string, string)

ParsePackageInfo parses package name, version code and name from the input string.

Types

type Artifact

type Artifact struct {
	APK          string   `json:"apk"` // set if a single APK represents the app
	AAB          string   `json:"aab"`
	Split        []string `json:"split"` // split apk paths including the universal apk path, excluding the bundle path
	UniversalApk string   `json:"universal"`
}

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 Info

type Info struct {
	AppName           string `json:"app_name"`
	PackageName       string `json:"package_name"`
	VersionCode       string `json:"version_code"`
	VersionName       string `json:"version_name"`
	MinSDKVersion     string `json:"min_sdk_version"`
	RawPackageContent string `json:"-"`
}

func GetAABInfo

func GetAABInfo(bt bundletool.Path, aabPath string) (Info, error)

GetAABInfo returns infos about the AAB.

func GetAPKInfo

func GetAPKInfo(apkPath string) (Info, error)

GetAPKInfo returns infos about the APK.

func GetAPKInfoWithAapt

func GetAPKInfoWithAapt(apkPth string) (Info, error)

func GetAPKInfoWithFallback

func GetAPKInfoWithFallback(logger Logger, apkPth string) (Info, error)

type Logger

type Logger interface {
	Warnf(format string, args ...interface{})
	AABParseWarnf(tag string, format string, v ...interface{})
	APKParseWarnf(tag string, format string, v ...interface{})
}

type SplitArtifactMeta

type SplitArtifactMeta Artifact

SplitArtifactMeta ...

func CreateSplitArtifactMeta

func CreateSplitArtifactMeta(logger log.Logger, 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