destination

package
v2.0.0-alpha.44 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 12 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	ID     string
	Status string
	Type   string

	Platform string
	Name     string
	OS       string
	Arch     string
}

Device is an available device

func (Device) XcodebuildDestination

func (d Device) XcodebuildDestination() string

XcodebuildDestination returns the required xcodebuild -destination flag value for a device

type DeviceFinder

type DeviceFinder interface {
	FindDevice(destination Simulator) (Device, error)
}

DeviceFinder is an interface that find a matching device for a given destination

func NewDeviceFinder

func NewDeviceFinder(log log.Logger, commandFactory command.Factory, xcodeVersion xcodeversion.Version) DeviceFinder

NewDeviceFinder retruns the default implementation of DeviceFinder

type Platform

type Platform string

Platform ...

const (
	MacOS             Platform = "macOS"
	IOS               Platform = "iOS"
	IOSSimulator      Platform = "iOS Simulator"
	WatchOS           Platform = "watchOS"
	WatchOSSimulator  Platform = "watchOS Simulator"
	TvOS              Platform = "tvOS"
	TvOSSimulator     Platform = "tvOS Simulator"
	DriverKit         Platform = "DriverKit"
	VisionOS          Platform = "visionOS"
	VisionOSSimulator Platform = "visionOS Simulator"
)

Platforms ...

type Simulator

type Simulator struct {
	Platform string
	Name     string
	OS       string
	Arch     string
}

Simulator ...

func NewSimulator

func NewSimulator(destination string) (*Simulator, error)

NewSimulator ...

type Specifier

type Specifier map[string]string

Specifier ...

func NewSpecifier

func NewSpecifier(destination string) (Specifier, error)

NewSpecifier ...

func (Specifier) Arch

func (s Specifier) Arch() string

Arch ...

func (Specifier) Name

func (s Specifier) Name() string

Name ...

func (Specifier) OS

func (s Specifier) OS() string

OS ...

func (Specifier) Platform

func (s Specifier) Platform() (Platform, bool)

Platform returns the platform part of the specifier and true if it's the generic platform

Jump to

Keyboard shortcuts

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