-
Notifications
You must be signed in to change notification settings - Fork 6
/
ProvisioningProfile.swift
69 lines (51 loc) · 2.39 KB
/
ProvisioningProfile.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// Created by James Sherlock on 10/04/2018.
//
import Foundation
/// Structure describing a Provisioning Profile and its contents
public struct ProvisioningProfile: Codable, Equatable {
enum CodingKeys: String, CodingKey {
case appIdName = "AppIDName"
case applicationIdentifierPrefixs = "ApplicationIdentifierPrefix"
case creationDate = "CreationDate"
case platforms = "Platform"
case developerCertificates = "DeveloperCertificates"
case entitlements = "Entitlements"
case expirationDate = "ExpirationDate"
case name = "Name"
case provisionedDevices = "ProvisionedDevices"
case teamIdentifiers = "TeamIdentifier"
case teamName = "TeamName"
case timeToLive = "TimeToLive"
case uuid = "UUID"
case version = "Version"
}
/// The name you gave your App ID in the provisioning portal
public var appIdName: String
/// The App ID prefix (or Bundle Seed ID) generated when you create a new App ID
public var applicationIdentifierPrefixs: [String]
/// The date in which this profile was created
public var creationDate: Date
/// The platforms in which this profile is compatible with
public var platforms: [String]
/// The array of Base64 encoded developer certificates
public var developerCertificates: [DeveloperCertificate]
/// The key value pair of entitlements assosciated with this profile
public var entitlements: [String: PropertyListDictionaryValue]
/// The date in which this profile will expire
public var expirationDate: Date
/// The name of the profile you provided in the provisioning portal
public var name: String
/// An array of device UUIDs that are provisioned on this profile
public var provisionedDevices: [String]?
/// An array of team identifier of which this profile belongs to
public var teamIdentifiers: [String]
/// The name of the team in which this profile belongs to
public var teamName: String
/// The number of days that this profile is valid for. Usually one year (365)
public var timeToLive: Int
/// The profile's unique identifier, usually used to reference the profile from within Xcode
public var uuid: String
/// The provisioning profiles version number, currently set to 1.
public var version: Int
}