Documentation
¶
Index ¶
- Constants
- Variables
- func IsXcodeManaged(profileName string) bool
- func MatchTargetAndProfileEntitlements(targetEntitlements plistutil.PlistData, ...) []string
- type DefaultTimeProvider
- type PlistData
- func (profile PlistData) GetApplicationIdentifier() string
- func (profile PlistData) GetBundleIdentifier() string
- func (profile PlistData) GetCreationDate() time.Time
- func (profile PlistData) GetDeveloperCertificateInfo() []certificateutil.CertificateInfoModel
- func (profile PlistData) GetDeveloperCertificates() [][]byte
- func (profile PlistData) GetEntitlements() plistutil.PlistData
- func (profile PlistData) GetExpirationDate() time.Time
- func (profile PlistData) GetExportMethod() exportoptions.Method
- func (profile PlistData) GetName() string
- func (profile PlistData) GetProfileType() (ProfileType, error)
- func (profile PlistData) GetProvisionedDevices() []string
- func (profile PlistData) GetProvisionsAllDevices() bool
- func (profile PlistData) GetTeamID() string
- func (profile PlistData) GetTeamName() string
- func (profile PlistData) GetUUID() string
- type ProfilePrinter
- type ProfileReader
- func (reader ProfileReader) InstalledProvisioningProfileInfos(profileType ProfileType) ([]ProvisioningProfileInfoModel, error)
- func (reader ProfileReader) ListProfiles(profileType ProfileType, uuid string) ([]string, error)
- func (reader ProfileReader) ProvisioningProfileInfoFromFile(pth string) (ProvisioningProfileInfoModel, error)
- func (reader ProfileReader) ProvisioningProfilesDirPath(xcodeMajorVersion int64) (string, error)
- type ProfileType
- type ProvisioningProfileInfoModel
- type TimeProvider
Constants ¶
const ( // IOSExtension is the iOS provisioning profile extension IOSExtension = ".mobileprovision" // MacExtension is the macOS provisioning profile extension MacExtension = ".provisionprofile" )
Variables ¶
var KnownProfileCapabilitiesMap = map[ProfileType]map[string]bool{ ProfileTypeMacOs: { "com.apple.developer.networking.networkextension": true, "com.apple.developer.icloud-container-environment": true, "com.apple.developer.icloud-container-development-container-identifiers": true, "com.apple.developer.aps-environment": true, "keychain-access-groups": true, "com.apple.developer.icloud-services": true, "com.apple.developer.icloud-container-identifiers": true, "com.apple.developer.networking.vpn.api": true, "com.apple.developer.ubiquity-kvstore-identifier": true, "com.apple.developer.ubiquity-container-identifiers": true, "com.apple.developer.game-center": true, "com.apple.application-identifier": true, "com.apple.developer.team-identifier": true, "com.apple.developer.maps": true, }, ProfileTypeIos: { "com.apple.developer.in-app-payments": true, "com.apple.security.application-groups": true, "com.apple.developer.default-data-protection": true, "com.apple.developer.healthkit": true, "com.apple.developer.homekit": true, "com.apple.developer.networking.HotspotConfiguration": true, "inter-app-audio": true, "keychain-access-groups": true, "com.apple.developer.networking.multipath": true, "com.apple.developer.nfc.readersession.formats": true, "com.apple.developer.networking.networkextension": true, "aps-environment": true, "com.apple.developer.associated-domains": true, "com.apple.developer.siri": true, "com.apple.developer.networking.vpn.api": true, "com.apple.external-accessory.wireless-configuration": true, "com.apple.developer.pass-type-identifiers": true, "com.apple.developer.icloud-container-identifiers": true, }, }
KnownProfileCapabilitiesMap ...
Functions ¶
func MatchTargetAndProfileEntitlements ¶
func MatchTargetAndProfileEntitlements(targetEntitlements plistutil.PlistData, profileEntitlements plistutil.PlistData, profileType ProfileType) []string
MatchTargetAndProfileEntitlements ...
Types ¶
type PlistData ¶
PlistData ...
func (PlistData) GetApplicationIdentifier ¶
GetApplicationIdentifier ...
func (PlistData) GetBundleIdentifier ¶
GetBundleIdentifier ...
func (PlistData) GetCreationDate ¶
GetCreationDate ...
func (PlistData) GetDeveloperCertificateInfo ¶
func (profile PlistData) GetDeveloperCertificateInfo() []certificateutil.CertificateInfoModel
GetDeveloperCertificateInfo ...
func (PlistData) GetDeveloperCertificates ¶
GetDeveloperCertificates ...
func (PlistData) GetEntitlements ¶
GetEntitlements ...
func (PlistData) GetExpirationDate ¶
GetExpirationDate ...
func (PlistData) GetExportMethod ¶
func (profile PlistData) GetExportMethod() exportoptions.Method
GetExportMethod ...
func (PlistData) GetProfileType ¶
func (profile PlistData) GetProfileType() (ProfileType, error)
GetProfileType ...
func (PlistData) GetProvisionedDevices ¶
GetProvisionedDevices ...
func (PlistData) GetProvisionsAllDevices ¶
GetProvisionsAllDevices ...
type ProfilePrinter ¶
type ProfilePrinter struct {
// contains filtered or unexported fields
}
ProfilePrinter ...
func NewProfilePrinter ¶
func NewProfilePrinter(logger log.Logger, timeProvider TimeProvider) *ProfilePrinter
NewProfilePrinter ...
func (ProfilePrinter) PrintableProfile ¶
func (printer ProfilePrinter) PrintableProfile(profile ProvisioningProfileInfoModel, installedCertificates ...certificateutil.CertificateInfoModel) string
PrintableProfile ...
type ProfileReader ¶
type ProfileReader struct {
// contains filtered or unexported fields
}
ProfileReader ...
func NewProfileReader ¶
func NewProfileReader(logger log.Logger, fileManager fileutil.FileManager, pathModifier pathutil.PathModifier, pathProvider pathutil.PathProvider) ProfileReader
NewProfileReader ...
func (ProfileReader) InstalledProvisioningProfileInfos ¶
func (reader ProfileReader) InstalledProvisioningProfileInfos(profileType ProfileType) ([]ProvisioningProfileInfoModel, error)
InstalledProvisioningProfileInfos ...
func (ProfileReader) ListProfiles ¶
func (reader ProfileReader) ListProfiles(profileType ProfileType, uuid string) ([]string, error)
ListProfiles ...
func (ProfileReader) ProvisioningProfileInfoFromFile ¶
func (reader ProfileReader) ProvisioningProfileInfoFromFile(pth string) (ProvisioningProfileInfoModel, error)
ProvisioningProfileInfoFromFile ...
func (ProfileReader) ProvisioningProfilesDirPath ¶
func (reader ProfileReader) ProvisioningProfilesDirPath(xcodeMajorVersion int64) (string, error)
ProvisioningProfilesDirPath returns the provisioning profile directory path based on the Xcode major version.
type ProfileType ¶
type ProfileType string
ProfileType ...
const ( ProfileTypeIos ProfileType = "ios" ProfileTypeMacOs ProfileType = "osx" ProfileTypeTvOs ProfileType = "tvos" )
ProfileTypes ...
type ProvisioningProfileInfoModel ¶
type ProvisioningProfileInfoModel struct {
UUID string
Name string
TeamName string
TeamID string
BundleID string
ExportType exportoptions.Method
ProvisionedDevices []string
DeveloperCertificates []certificateutil.CertificateInfoModel
CreationDate time.Time
ExpirationDate time.Time
Entitlements plistutil.PlistData
ProvisionsAllDevices bool
Type ProfileType
}
ProvisioningProfileInfoModel ...
func NewProvisioningProfileInfo ¶
func NewProvisioningProfileInfo(profilePKCS7 pkcs7.PKCS7) (ProvisioningProfileInfoModel, error)
NewProvisioningProfileInfo ...
func NewProvisioningProfileInfoFromPKCS7Content ¶
func NewProvisioningProfileInfoFromPKCS7Content(content []byte) (ProvisioningProfileInfoModel, error)
NewProvisioningProfileInfoFromPKCS7Content ...
func (ProvisioningProfileInfoModel) CheckValidity ¶
func (info ProvisioningProfileInfoModel) CheckValidity(currentTime func() time.Time) error
CheckValidity ...
func (ProvisioningProfileInfoModel) HasInstalledCertificate ¶
func (info ProvisioningProfileInfoModel) HasInstalledCertificate(installedCertificates []certificateutil.CertificateInfoModel) bool
HasInstalledCertificate ...
func (ProvisioningProfileInfoModel) IsXcodeManaged ¶
func (info ProvisioningProfileInfoModel) IsXcodeManaged() bool
IsXcodeManaged ...