Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSameArtifact ¶
FindSameArtifact returns the first artifact which is the same variant as the reference artifact, code signing differences does not matter.
func UniversalAPKBase ¶
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 ¶
ArtifactMap module/buildType/flavour/artifacts
type ArtifactSigningInfo ¶
ArtifactSigningInfo ...
type ArtifactSplitInfo ¶
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 ¶
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 ...