exportoptions

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 5 Imported by: 18

Documentation

Index

Constants

View Source
const (
	// ThinningNone ...
	ThinningNone = "none"
	// ThinningThinForAllVariants ...
	ThinningThinForAllVariants = "thin-for-all-variants"
	// ThinningDefault ...
	ThinningDefault = ThinningNone
)
View Source
const CompileBitcodeDefault = true

CompileBitcodeDefault ...

View Source
const CompileBitcodeKey = "compileBitcode"

CompileBitcodeKey ...

View Source
const DestinationKey = "destination"
View Source
const DistributionBundleIdentifier = "distributionBundleIdentifier"

DistributionBundleIdentifier ...

View Source
const EmbedOnDemandResourcesAssetPacksInBundleDefault = true

EmbedOnDemandResourcesAssetPacksInBundleDefault ...

View Source
const EmbedOnDemandResourcesAssetPacksInBundleKey = "embedOnDemandResourcesAssetPacksInBundle"

EmbedOnDemandResourcesAssetPacksInBundleKey ...

View Source
const ICloudContainerEnvironmentKey = "iCloudContainerEnvironment"

ICloudContainerEnvironmentKey ...

View Source
const InstallerSigningCertificateKey = "installerSigningCertificate"

InstallerSigningCertificateKey ...

View Source
const ManifestAppURLKey = "appURL"

ManifestAppURLKey ...

View Source
const ManifestAssetPackManifestURLKey = "assetPackManifestURL"

ManifestAssetPackManifestURLKey ...

View Source
const ManifestDisplayImageURLKey = "displayImageURL"

ManifestDisplayImageURLKey ...

View Source
const ManifestFullSizeImageURLKey = "fullSizeImageURL"

ManifestFullSizeImageURLKey ...

View Source
const ManifestKey = "manifest"

ManifestKey ...

View Source
const MethodKey = "method"

MethodKey ...

View Source
const OnDemandResourcesAssetPacksBaseURLKey = "onDemandResourcesAssetPacksBaseURL"

OnDemandResourcesAssetPacksBaseURLKey ....

View Source
const ProvisioningProfilesKey = "provisioningProfiles"

ProvisioningProfilesKey ...

View Source
const SigningCertificateKey = "signingCertificate"

SigningCertificateKey ...

View Source
const SigningStyleKey = "signingStyle"

SigningStyleKey ...

View Source
const TeamIDKey = "teamID"

TeamIDKey ...

View Source
const TestFlightInternalTestingOnlyDefault = false
View Source
const TestFlightInternalTestingOnlyKey = "testFlightInternalTestingOnly"
View Source
const ThinningKey = "thinning"

ThinningKey ...

View Source
const UploadBitcodeDefault = true

UploadBitcodeDefault ...

View Source
const UploadBitcodeKey = "uploadBitcode"

UploadBitcodeKey ....

View Source
const UploadSymbolsDefault = true

UploadSymbolsDefault ...

View Source
const UploadSymbolsKey = "uploadSymbols"

UploadSymbolsKey ...

Variables

This section is empty.

Functions

func WritePlistToFile

func WritePlistToFile(options map[string]interface{}, pth string) error

WritePlistToFile ...

func WritePlistToTmpFile

func WritePlistToTmpFile(options map[string]interface{}) (string, error)

WritePlistToTmpFile ...

Types

type AppStoreOptionsModel

type AppStoreOptionsModel struct {
	Method                             Method
	TeamID                             string
	BundleIDProvisioningProfileMapping map[string]string
	SigningCertificate                 string
	InstallerSigningCertificate        string
	SigningStyle                       SigningStyle
	Destination                        Destination
	ICloudContainerEnvironment         ICloudContainerEnvironment
	DistributionBundleIdentifier       string

	// for app-store exports
	UploadBitcode bool
	UploadSymbols bool
	// Should Xcode manage the app's build number when uploading to App Store Connect? Defaults to YES.
	ManageAppVersion bool

	TestFlightInternalTestingOnly bool
}

AppStoreOptionsModel ...

func NewAppStoreConnectOptions added in v1.3.0

func NewAppStoreConnectOptions(method Method) AppStoreOptionsModel

NewAppStoreConnectOptions sets either "app-store" or "app-store-connect" as the export method

func NewAppStoreOptions

func NewAppStoreOptions() AppStoreOptionsModel

NewAppStoreOptions sets "app-store" as the export method deprecated: use NewAppStoreConnectOptions instead

func (AppStoreOptionsModel) Hash

func (options AppStoreOptionsModel) Hash() map[string]interface{}

Hash ...

func (AppStoreOptionsModel) String

func (options AppStoreOptionsModel) String() (string, error)

String ...

func (AppStoreOptionsModel) WriteToFile

func (options AppStoreOptionsModel) WriteToFile(pth string) error

WriteToFile ...

func (AppStoreOptionsModel) WriteToTmpFile

func (options AppStoreOptionsModel) WriteToTmpFile() (string, error)

WriteToTmpFile ...

type Destination added in v1.1.1

type Destination string
const (
	DestinationExport  Destination = "export"
	DestinationDefault Destination = DestinationExport
)

Destination ...

type ExportOptions

type ExportOptions interface {
	Hash() map[string]interface{}
	String() (string, error)
	WriteToFile(pth string) error
	WriteToTmpFile() (string, error)
}

ExportOptions ...

type ICloudContainerEnvironment

type ICloudContainerEnvironment string

ICloudContainerEnvironment ...

const (
	// ICloudContainerEnvironmentDevelopment ...
	ICloudContainerEnvironmentDevelopment ICloudContainerEnvironment = "Development"
	// ICloudContainerEnvironmentProduction ...
	ICloudContainerEnvironmentProduction ICloudContainerEnvironment = "Production"
)

type Manifest

type Manifest struct {
	AppURL               string
	DisplayImageURL      string
	FullSizeImageURL     string
	AssetPackManifestURL string
}

Manifest ...

func (Manifest) IsEmpty

func (manifest Manifest) IsEmpty() bool

IsEmpty ...

func (Manifest) ToHash

func (manifest Manifest) ToHash() map[string]string

ToHash ...

type Method

type Method string

Method ...

const (
	// MethodAppStore is deprecated since Xcode 15.3, its new name is MethodAppStoreConnect
	MethodAppStore Method = "app-store"
	// MethodAdHoc is deprecated since Xcode 15.3, its new name is MethodReleaseTesting
	MethodAdHoc Method = "ad-hoc"
	// MethodPackage ...
	MethodPackage Method = "package"
	// MethodEnterprise ...
	MethodEnterprise Method = "enterprise"
	// MethodDevelopment is deprecated since Xcode 15.3, its new name is MethodDebugging
	MethodDevelopment Method = "development"
	// MethodDeveloperID ...
	MethodDeveloperID Method = "developer-id"
	// MethodDebugging is the new name for MethodDevelopment since Xcode 15.3
	MethodDebugging Method = "debugging"
	// MethodAppStoreConnect is the new name for MethodAppStore since Xcode 15.3
	MethodAppStoreConnect Method = "app-store-connect"
	// MethodReleaseTesting is the new name for MethodAdHoc since Xcode 15.3
	MethodReleaseTesting Method = "release-testing"
	// MethodDefault ...
	MethodDefault Method = MethodDevelopment
)

func ParseMethod

func ParseMethod(method string) (Method, error)

ParseMethod parses Step input and returns the corresponding Method.

func UpgradeToXcode15_3MethodName added in v1.3.0

func UpgradeToXcode15_3MethodName(method Method) Method

UpgradeToXcode15_3MethodName replaces the legacy export method strings with the ones available in Xcode 15.3 and later.

func (Method) IsAdHoc added in v1.3.0

func (m Method) IsAdHoc() bool

func (Method) IsAppStore added in v1.3.0

func (m Method) IsAppStore() bool

func (Method) IsDevelopment added in v1.3.0

func (m Method) IsDevelopment() bool

func (Method) IsEnterprise added in v1.3.0

func (m Method) IsEnterprise() bool

type NonAppStoreOptionsModel

type NonAppStoreOptionsModel struct {
	Method                             Method
	TeamID                             string
	BundleIDProvisioningProfileMapping map[string]string
	SigningCertificate                 string
	SigningStyle                       SigningStyle
	Destination                        Destination
	ICloudContainerEnvironment         ICloudContainerEnvironment
	DistributionBundleIdentifier       string

	// for non app-store exports
	CompileBitcode                           bool
	EmbedOnDemandResourcesAssetPacksInBundle bool
	Manifest                                 Manifest
	OnDemandResourcesAssetPacksBaseURL       string
	Thinning                                 string
}

NonAppStoreOptionsModel ...

func NewNonAppStoreOptions

func NewNonAppStoreOptions(method Method) NonAppStoreOptionsModel

NewNonAppStoreOptions ...

func (NonAppStoreOptionsModel) Hash

func (options NonAppStoreOptionsModel) Hash() map[string]interface{}

Hash ...

func (NonAppStoreOptionsModel) String

func (options NonAppStoreOptionsModel) String() (string, error)

String ...

func (NonAppStoreOptionsModel) WriteToFile

func (options NonAppStoreOptionsModel) WriteToFile(pth string) error

WriteToFile ...

func (NonAppStoreOptionsModel) WriteToTmpFile

func (options NonAppStoreOptionsModel) WriteToTmpFile() (string, error)

WriteToTmpFile ...

type SigningStyle added in v1.1.1

type SigningStyle string

SigningStyle ...

const (
	SigningStyleManual    SigningStyle = "manual"
	SigningStyleAutomatic SigningStyle = "automatic"
)

SigningStyle ...

Jump to

Keyboard shortcuts

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