apkexporter

package
v0.0.0-...-5455537 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 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 UniversalAPKBase

func UniversalAPKBase(basedOnAAB string) string

UniversalAPKBase returns the aab's universal apk pair's base name.

Types

type APKBuilder

type APKBuilder interface {
	BuildAPKs(aabPath, apksPath string, keystoreCfg *bundletool.KeystoreConfig) *command.Model
}

APKBuilder represents a type that can run a commmand that generates an universal APK from AAB.

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 Exporter

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

Exporter can be used to export an universal APK from AAB.

func New

func New(apkBuilder APKBuilder, filedownloader FileDownloader) Exporter

New creates a new Exporter.

func (Exporter) ExportUniversalAPK

func (exporter Exporter) ExportUniversalAPK(aabPath, destDir string, keystoreConfig *bundletool.KeystoreConfig) (string, error)

ExportUniversalAPK generates a universal apk from an aab file.

type FileDownloader

type FileDownloader interface {
	Get(destination, source string) error
}

FileDownloader represents a type that can download a file.

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