Documentation
¶
Index ¶
- func InferArchivePlatform(archivePath string) (string, error)
- func IsDirectUploadMode(exportOptionsPlistPath string) bool
- func SupportsBuildStatusBundleID(ctx context.Context) bool
- func UniqueDiagnosticDetails(values []string) []string
- type ArchiveOptions
- type ArchiveResult
- type BuildStatusOptions
- type BuildStatusResult
- type BumpType
- type BumpVersionOptions
- type BumpVersionResult
- type ExportOptions
- type ExportResult
- type SetVersionOptions
- type SetVersionResult
- type ValidateOptions
- type ValidateResult
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferArchivePlatform ¶
InferArchivePlatform returns the App Store platform for the archived app by reading the embedded app Info.plist inside the .xcarchive.
func IsDirectUploadMode ¶
IsDirectUploadMode reports whether ExportOptions.plist uploads directly to App Store Connect instead of producing a local IPA artifact.
func SupportsBuildStatusBundleID ¶
SupportsBuildStatusBundleID reports whether the current altool help output advertises a dedicated --bundle-id flag for build-status lookups.
func UniqueDiagnosticDetails ¶
Types ¶
type ArchiveOptions ¶
type ArchiveResult ¶
type ArchiveResult struct {
ArchivePath string `json:"archive_path"`
BundleID string `json:"bundle_id,omitempty"`
Version string `json:"version,omitempty"`
BuildNumber string `json:"build_number,omitempty"`
Scheme string `json:"scheme,omitempty"`
Configuration string `json:"configuration,omitempty"`
}
func Archive ¶
func Archive(ctx context.Context, opts ArchiveOptions) (*ArchiveResult, error)
type BuildStatusOptions ¶
type BuildStatusResult ¶
type BuildStatusResult struct {
BuildStatus string `json:"build_status,omitempty"`
DeliveryUUID string `json:"delivery_uuid,omitempty"`
ImportStatus string `json:"import_status,omitempty"`
ProcessingErrors []string `json:"processing_errors,omitempty"`
}
func BuildStatus ¶
func BuildStatus(ctx context.Context, opts BuildStatusOptions) (*BuildStatusResult, error)
type BumpType ¶
type BumpType string
BumpType represents the version component to increment.
func ParseBumpType ¶
ParseBumpType validates and normalizes a bump type string.
type BumpVersionOptions ¶
BumpVersionOptions configures the bump operation.
type BumpVersionResult ¶
type BumpVersionResult struct {
BumpType string `json:"bumpType"`
OldVersion string `json:"oldVersion,omitempty"`
NewVersion string `json:"newVersion,omitempty"`
OldBuild string `json:"oldBuild,omitempty"`
NewBuild string `json:"newBuild,omitempty"`
ProjectDir string `json:"projectDir"`
}
BumpVersionResult holds the result of a bump operation.
func BumpVersion ¶
func BumpVersion(ctx context.Context, opts BumpVersionOptions) (*BumpVersionResult, error)
BumpVersion increments the version or build number.
type ExportOptions ¶
type ExportResult ¶
type ExportResult struct {
ArchivePath string `json:"archive_path"`
IPAPath string `json:"ipa_path"`
BundleID string `json:"bundle_id,omitempty"`
Version string `json:"version,omitempty"`
BuildNumber string `json:"build_number,omitempty"`
}
func Export ¶
func Export(ctx context.Context, opts ExportOptions) (*ExportResult, error)
type SetVersionOptions ¶
SetVersionOptions configures what to set.
type SetVersionResult ¶
type SetVersionResult struct {
Version string `json:"version,omitempty"`
BuildNumber string `json:"buildNumber,omitempty"`
ProjectDir string `json:"projectDir"`
}
SetVersionResult holds the result of a set operation.
func SetVersion ¶
func SetVersion(ctx context.Context, opts SetVersionOptions) (*SetVersionResult, error)
SetVersion sets the marketing version and/or build number.
type ValidateOptions ¶
type ValidateResult ¶
func Validate ¶
func Validate(ctx context.Context, opts ValidateOptions) (*ValidateResult, error)
type VersionInfo ¶
type VersionInfo struct {
Version string `json:"version"`
BuildNumber string `json:"buildNumber"`
ProjectDir string `json:"projectDir"`
Target string `json:"target,omitempty"`
Modern bool `json:"modern"` // true if project uses MARKETING_VERSION build setting
}
VersionInfo holds the current version and build number from an Xcode project.
func GetVersion ¶
func GetVersion(ctx context.Context, projectDir, target string) (*VersionInfo, error)
GetVersion reads the current marketing version and build number.