Help us shape the future of Go! Take the 2026 Go Developer Survey

apps

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppBundle

type AppBundle struct {
	ApplicationType     string `plist:"ApplicationType"`
	BuildMachineOSBuild string `plist:"BuildMachineOSBuild"`
	CFBundleDisplayName string `plist:"CFBundleDisplayName"`
	CFBundleExecutable  string `plist:"CFBundleExecutable"`
	CFBundleIcons       struct {
		CFBundleAlternateIcons map[string]*struct {
			CFBundleIconFiles []string `plist:"CFBundleIconFiles"`
			UIPrerenderedIcon any      `plist:"UIPrerenderedIcon"`
		}
	} `plist:"CFBundleIcons"`
	CFBundleIdentifier            string   `plist:"CFBundleIdentifier"`
	CFBundleInfoDictionaryVersion string   `plist:"CFBundleInfoDictionaryVersion"`
	CFBundleName                  string   `plist:"CFBundleName"`
	CFBundleNumericVersion        int      `plist:"CFBundleNumericVersion"`
	CFBundlePackageType           string   `plist:"CFBundlePackageType"`
	CFBundleShortVersionString    string   `plist:"CFBundleShortVersionString"`
	CFBundleSupportedPlatforms    []string `plist:"CFBundleSupportedPlatforms"`
	CFBundleURLTypes              []*struct {
		CFBundleURLSchemes []string `plist:"CFBundleURLSchemes"`
		CFBundleTypeRole   string   `plist:"CFBundleTypeRole,omitempty"`
	} `plist:"CFBundleURLTypes"`
	CFBundleVersion                          string            `plist:"CFBundleVersion"`
	Container                                string            `plist:"Container"`
	DTAppStoreToolsBuild                     string            `plist:"DTAppStoreToolsBuild"`
	DTCompiler                               string            `plist:"DTCompiler"`
	DTPlatformBuild                          string            `plist:"DTPlatformBuild"`
	DTPlatformName                           string            `plist:"DTPlatformName"`
	DTPlatformVersion                        string            `plist:"DTPlatformVersion"`
	DTSDKBuild                               string            `plist:"DTSDKBuild"`
	DTSDKName                                string            `plist:"DTSDKName"`
	DTXcode                                  string            `plist:"DTXcode"`
	DTXcodeBuild                             string            `plist:"DTXcodeBuild"`
	Entitlements                             map[string]any    `plist:"Entitlements"`
	EnvironmentVariables                     map[string]string `plist:"EnvironmentVariables"`
	GroupContainers                          map[string]string `plist:"GroupContainers"`
	ITSAppUsesNonExemptEncryption            any               `plist:"ITSAppUsesNonExemptEncryption"`
	IsDemotedApp                             bool              `plist:"IsDemotedApp"`
	IsUpgradeable                            bool              `plist:"IsUpgradeable"`
	LSApplicationQueriesSchemes              any               `plist:"LSApplicationQueriesSchemes"`
	LSRequiresIPhoneOS                       bool              `plist:"LSRequiresIPhoneOS"`
	MinimumOSVersion                         string            `plist:"MinimumOSVersion"`
	NSUserActivityTypes                      any               `plist:"NSUserActivityTypes"`
	ParallelPlaceholderPath                  bool              `plist:"ParallelPlaceholderPath"`
	Path                                     string            `plist:"Path"`
	ProfileValidated                         bool              `plist:"ProfileValidated"`
	SequenceNumber                           int               `plist:"SequenceNumber"`
	SignerIdentity                           string            `plist:"SignerIdentity"`
	UIAppFonts                               []string          `plist:"UIAppFonts"`
	UIBackgroundModes                        []string          `plist:"UIBackgroundModes"`
	UIDeviceFamily                           []int             `plist:"UIDeviceFamily"`
	UILaunchStoryboardName                   string            `plist:"UILaunchStoryboardName"`
	UIRequiredDeviceCapabilities             []string          `plist:"UIRequiredDeviceCapabilities"`
	UIStatusBarHidden                        bool              `plist:"UIStatusBarHidden"`
	UIStatusBarStyle                         string            `plist:"UIStatusBarStyle"`
	UISupportedDevices                       []string          `plist:"UISupportedDevices"`
	UISupportedInterfaceOrientations         []string          `plist:"UISupportedInterfaceOrientations"`
	UIViewControllerBasedStatusBarAppearance any               `plist:"UIViewControllerBasedStatusBarAppearance,omitempty"`
}

func AppBundleFromAppBundle

func AppBundleFromAppBundle(appBundle string) (*AppBundle, error)

func AppBundleFromIPA

func AppBundleFromIPA(ipa string) (*AppBundle, error)

func (AppBundle) String

func (i AppBundle) String() string

type AppInfo

type AppInfo struct {
	ApplicationDSID              int
	ApplicationType              string
	CFBundleDisplayName          string
	CFBundleExecutable           string
	CFBundleIdentifier           string
	CFBundleName                 string
	CFBundleShortVersionString   string
	CFBundleVersion              string
	Container                    string
	Entitlements                 map[string]any
	EnvironmentVariables         map[string]any
	MinimumOSVersion             string
	Path                         string
	ProfileValidated             bool
	SBAppTags                    []string
	SignerIdentity               string
	UIDeviceFamily               []int
	UIRequiredDeviceCapabilities []string
}

func (AppInfo) String

func (i AppInfo) String() string

type ApplicationIdentifierRequest

type ApplicationIdentifierRequest struct {
	Command
	ApplicationIdentifier string `plist:"ApplicationIdentifier"`
}

type Browse

type Browse struct {
	Command
}

type Client

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

func NewClient

func NewClient(udid string) (*Client, error)

func (*Client) Archive

func (c *Client) Archive(bundleId string, progressCb ProgressFunc) error

func (*Client) Browse

func (c *Client) Browse() (any, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) CopyAndInstall

func (c *Client) CopyAndInstall(pkgPath string, progressCb ProgressFunc) error

func (*Client) Install

func (c *Client) Install(packagePath string, progressCb ProgressFunc) error

func (*Client) InstalledApps

func (c *Client) InstalledApps() ([]AppInfo, error)

func (*Client) Lookup

func (c *Client) Lookup() (map[string]*AppBundle, error)

func (*Client) LookupArchives

func (c *Client) LookupArchives() error

func (*Client) LookupContainer

func (c *Client) LookupContainer(bundleId string) (string, error)

func (*Client) LookupDisplayName

func (c *Client) LookupDisplayName(bundleId string) (string, error)

func (*Client) LookupExePath

func (c *Client) LookupExePath(bundleId string) (string, error)

func (*Client) LookupRaw

func (c *Client) LookupRaw(keys ...string) (map[string]any, error)

func (*Client) RemoveArchive

func (c *Client) RemoveArchive(bundleId string, progressCb ProgressFunc) error

func (*Client) RestoreArchive

func (c *Client) RestoreArchive(bundleId string, progressCb ProgressFunc) error

func (*Client) Uninstall

func (c *Client) Uninstall(bundleId string, progressCb ProgressFunc) error

func (*Client) Upgrade

func (c *Client) Upgrade(packagePath string, progressCb ProgressFunc) error

type ClientOptions

type ClientOptions struct {
	ReturnAttributes []string `plist:"ReturnAttributes,omitempty"`
}

type Command

type Command struct {
	Command       string         `plist:"Command"`
	ClientOptions *ClientOptions `plist:"ClientOptions,omitempty"`
}

func NewCommand

func NewCommand(cmd string, returnAttributes ...string) Command

type InstallOrUpgradeRequest

type InstallOrUpgradeRequest struct {
	Command
	PackagePath string `plist:"PackagePath"`
}

type Lookup

type Lookup struct {
	Command
	ApplicationIdentifier string `plist:"ApplicationIdentifier"`
}

type LookupArchivesRequest

type LookupArchivesRequest struct {
	Command
}

type LookupResult

type LookupResult struct {
	LookupResult map[string]*AppBundle `plist:"LookupResult"`
}

type ProgressEvent

type ProgressEvent struct {
	Status          string `plist:"Status"`
	PercentComplete int    `plist:"PercentComplete"`
}

type ProgressFunc

type ProgressFunc func(*ProgressEvent)

Jump to

Keyboard shortcuts

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