ipa

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0, MIT Imports: 7 Imported by: 1

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name string
	// contains filtered or unexported fields
}

func (App) File

func (a App) File(name string) *zip.File

func (App) FileBytes

func (a App) FileBytes(name string) ([]byte, error)

func (App) Files

func (a App) Files() []*zip.File

func (App) Plist

func (a App) Plist() (*Plist, error)

type Package

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

func Open

func Open(path string) (*Package, error)
Example
pkg, err := Open("path/to/ipa")
if err != nil {
	panic(err)
}
defer pkg.Close()

fmt.Printf("Loaded IPA: %v\n", pkg)
Output:

func (*Package) Apps

func (p *Package) Apps() []*App

func (*Package) Close

func (p *Package) Close() error

func (Package) File

func (p Package) File(name string) *zip.File

func (Package) FileBytes

func (p Package) FileBytes(name string) ([]byte, error)

func (Package) Files

func (p Package) Files() []*zip.File

type Plist

type Plist struct {
	BuildMachineOSBuild                 string   `json:"BuildMachineOSBuild,omitempty"`
	BGTaskSchedulerPermittedIdentifiers []string `json:"BGTaskSchedulerPermittedIdentifiers,omitempty"`
	CFBundleDevelopmentRegion           string   `json:"CFBundleDevelopmentRegion,omitempty"`
	CFBundleDisplayName                 string   `json:"CFBundleDisplayName,omitempty"`
	CFBundleExecutable                  string   `json:"CFBundleExecutable,omitempty"`
	CFBundleIconName                    string   `json:"CFBundleIconName,omitempty"`
	CFBundleIcons                       struct {
		CFBundlePrimaryIcon struct {
			CFBundleIconFiles []string `json:"CFBundleIconFiles,omitempty"`
			CFBundleIconName  string   `json:"CFBundleIconName,omitempty"`
		} `json:"CFBundlePrimaryIcon,omitempty"`
	} `json:"CFBundleIcons,omitempty"`
	CFBundleIdentifier            string   `json:"CFBundleIdentifier,omitempty"`
	CFBundleInfoDictionaryVersion string   `json:"CFBundleInfoDictionaryVersion,omitempty"`
	CFBundleName                  string   `json:"CFBundleName,omitempty"`
	CFBundlePackageType           string   `json:"CFBundlePackageType,omitempty"`
	CFBundleShortVersionString    string   `json:"CFBundleShortVersionString,omitempty"`
	CFBundleSignature             string   `json:"CFBundleSignature,omitempty"`
	CFBundleSupportedPlatforms    []string `json:"CFBundleSupportedPlatforms,omitempty"`
	CFBundleURLTypes              []struct {
		CFBundleTypeRole   string   `json:"CFBundleTypeRole,omitempty"`
		CFBundleURLName    string   `json:"CFBundleURLName,omitempty"`
		CFBundleURLSchemes []string `json:"CFBundleURLSchemes,omitempty"`
	} `json:"CFBundleURLTypes,omitempty"`
	CFBundleVersion         string `json:"CFBundleVersion,omitempty"`
	DTCompiler              string `json:"DTCompiler,omitempty"`
	DTPlatformBuild         string `json:"DTPlatformBuild,omitempty"`
	DTPlatformName          string `json:"DTPlatformName,omitempty"`
	DTPlatformVersion       string `json:"DTPlatformVersion,omitempty"`
	DTSDKBuild              string `json:"DTSDKBuild,omitempty"`
	DTSDKName               string `json:"DTSDKName,omitempty"`
	DTXcode                 string `json:"DTXcode,omitempty"`
	DTXcodeBuild            string `json:"DTXcodeBuild,omitempty"`
	LSRequiresIPhoneOS      bool   `json:"LSRequiresIPhoneOS"`
	MinimumOSVersion        string `json:"MinimumOSVersion,omitempty"`
	NSHighResolutionCapable bool   `json:"NSHighResolutionCapable"`
	NSAppTransportSecurity  struct {
		NSAllowsArbitraryLoads bool `json:"NSAllowsArbitraryLoads,omitempty"`
		NSExceptionDomains     map[string]struct {
			NSExceptionAllowsInsecureHTTPLoads bool   `json:"NSExceptionAllowsInsecureHTTPLoads,omitempty"`
			NSIncludesSubdomains               bool   `json:"NSIncludesSubdomains,omitempty"`
			NSExceptionMinimumTLSVersion       string `json:"NSExceptionMinimumTLSVersion,omitempty"`
			NSExceptionRequiresForwardSecrecy  bool   `json:"NSExceptionRequiresForwardSecrecy,omitempty"`
			NSRequiresCertificateTransparency  bool   `json:"NSRequiresCertificateTransparency,omitempty"`
		} `json:"NSExceptionDomains,omitempty"`
	} `json:"NSAppTransportSecurity,omitempty"`
	NSAppleMusicUsageDescription                 string   `json:"NSAppleMusicUsageDescription,omitempty"`
	NSBluetoothAlwaysUsageDescription            string   `json:"NSBluetoothAlwaysUsageDescription,omitempty"`
	NSBluetoothPeripheralUsageDescription        string   `json:"NSBluetoothPeripheralUsageDescription,omitempty"`
	NSCalendarsUsageDescription                  string   `json:"NSCalendarsUsageDescription,omitempty"`
	NSCameraUsageDescription                     string   `json:"NSCameraUsageDescription,omitempty"`
	NSContactsUsageDescription                   string   `json:"NSContactsUsageDescription,omitempty"`
	NSFaceIDUsageDescription                     string   `json:"NSFaceIDUsageDescription,omitempty"`
	NSLocationAlwaysAndWhenInUseUsageDescription string   `json:"NSLocationAlwaysAndWhenInUseUsageDescription,omitempty"`
	NSLocationAlwaysUsageDescription             string   `json:"NSLocationAlwaysUsageDescription,omitempty"`
	NSLocationWhenInUseUsageDescription          string   `json:"NSLocationWhenInUseUsageDescription,omitempty"`
	NSMicrophoneUsageDescription                 string   `json:"NSMicrophoneUsageDescription,omitempty"`
	NSMotionUsageDescription                     string   `json:"NSMotionUsageDescription,omitempty"`
	NSPhotoLibraryUsageDescription               string   `json:"NSPhotoLibraryUsageDescription,omitempty"`
	NSRemindersUsageDescription                  string   `json:"NSRemindersUsageDescription,omitempty"`
	NSSpeechRecognitionUsageDescription          string   `json:"NSSpeechRecognitionUsageDescription,omitempty"`
	NSSiriUsageDescription                       string   `json:"NSSiriUsageDescription,omitempty"`
	NSUserTrackingUsageDescription               string   `json:"NSUserTrackingUsageDescription,omitempty"`
	UIAppFonts                                   []string `json:"UIAppFonts,omitempty"`
	UIBackgroundModes                            []string `json:"UIBackgroundModes,omitempty"`
	UIDeviceFamily                               []int    `json:"UIDeviceFamily,omitempty"`
	UILaunchStoryboardName                       string   `json:"UILaunchStoryboardName,omitempty"`
	UIRequiredDeviceCapabilities                 []string `json:"UIRequiredDeviceCapabilities,omitempty"`
	UISupportedInterfaceOrientations             []string `json:"UISupportedInterfaceOrientations,omitempty"`
	UIViewControllerBasedStatusBarAppearance     bool     `json:"UIViewControllerBasedStatusBarAppearance"`
	UIMainStoryboardFile                         string   `json:"UIMainStoryboardFile,omitempty"`

	// not standard
	Shake map[string]interface{}
}

Jump to

Keyboard shortcuts

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