codesign

package
v2.0.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectConnectionCredentials

func SelectConnectionCredentials(authType AuthType, conn *devportalservice.AppleDeveloperConnection, logger log.Logger) (appleauth.Credentials, error)

SelectConnectionCredentials ...

Types

type Archive

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

Archive ...

func NewArchive

func NewArchive(archive xcarchive.IosArchive) Archive

NewArchive ...

func (Archive) GetAppLayout

func (a Archive) GetAppLayout(uiTestTargets bool) (autocodesign.AppLayout, error)

GetAppLayout ...

func (Archive) IsSigningManagedAutomatically

func (a Archive) IsSigningManagedAutomatically() (bool, error)

IsSigningManagedAutomatically ...

func (Archive) Platform

func (a Archive) Platform() (autocodesign.Platform, error)

Platform ...

type AssetWriter

type AssetWriter interface {
	ForceCodesignAssets(distribution autocodesign.DistributionType, codesignAssetsByDistributionType map[autocodesign.DistributionType]autocodesign.AppCodesignAssets) error
}

AssetWriter ...

type AuthType

type AuthType int

AuthType ...

const (
	// APIKeyAuth ...
	APIKeyAuth AuthType = iota
	// AppleIDAuth ...
	AppleIDAuth
)

type Config

type Config struct {
	CertificatesAndPassphrases []certdownloader.CertificateAndPassphrase
	Keychain                   keychain.Keychain
	DistributionMethod         autocodesign.DistributionType
}

Config ...

func ParseConfig

func ParseConfig(input Input, cmdFactory command.Factory) (Config, error)

ParseConfig validates and parses step inputs related to code signing and returns with a Config

type DetailsProvider

type DetailsProvider interface {
	IsSigningManagedAutomatically() (bool, error)
	Platform() (autocodesign.Platform, error)
	GetAppLayout(uiTestTargets bool) (autocodesign.AppLayout, error)
}

DetailsProvider ...

type Input

type Input struct {
	AuthType                  AuthType
	DistributionMethod        string
	CertificateURLList        string
	CertificatePassphraseList stepconf.Secret
	KeychainPath              string
	KeychainPassword          stepconf.Secret
}

Input ...

type Manager

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

Manager ...

func NewManagerWithArchive

func NewManagerWithArchive(
	opts Opts,
	appleAuth appleauth.Credentials,
	connection *devportalservice.AppleDeveloperConnection,
	clientFactory devportalclient.Factory,
	certDownloader autocodesign.CertificateProvider,
	assetInstaller autocodesign.AssetWriter,
	localCodeSignAssetManager autocodesign.LocalCodeSignAssetManager,
	archive Archive,
	logger log.Logger,
) Manager

NewManagerWithArchive creates a codesign manager, which reads the code signing asset requirements from an XCArchive file.

func NewManagerWithProject

func NewManagerWithProject(
	opts Opts,
	appleAuth appleauth.Credentials,
	connection *devportalservice.AppleDeveloperConnection,
	clientFactory devportalclient.Factory,
	certDownloader autocodesign.CertificateProvider,
	assetInstaller autocodesign.AssetWriter,
	localCodeSignAssetManager autocodesign.LocalCodeSignAssetManager,
	project projectmanager.Project,
	logger log.Logger,
) Manager

NewManagerWithProject creates a codesign manager, which reads the code signing asset requirements from an Xcode Project.

func (*Manager) PrepareCodesigning

func (m *Manager) PrepareCodesigning() (*devportalservice.APIKeyConnection, error)

PrepareCodesigning selects a suitable code signing strategy based on the step and project configuration, then downloads code signing assets (profiles, certificates) and registers test devices if needed

type Opts

type Opts struct {
	AuthType                   AuthType
	ShouldConsiderXcodeSigning bool
	TeamID                     string

	ExportMethod      autocodesign.DistributionType
	XcodeMajorVersion int

	RegisterTestDevices    bool
	SignUITests            bool
	MinDaysProfileValidity int
	IsVerboseLog           bool
}

Opts ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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