-
Notifications
You must be signed in to change notification settings - Fork 12
/
models.go
55 lines (48 loc) · 1.87 KB
/
models.go
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
package autocodesign
import (
"github.com/bitrise-io/go-xcode/v2/autocodesign/devportalclient/appstoreconnect"
)
// CertificateTypeByDistribution ...
var CertificateTypeByDistribution = map[DistributionType]appstoreconnect.CertificateType{
Development: appstoreconnect.IOSDevelopment,
AppStore: appstoreconnect.IOSDistribution,
AdHoc: appstoreconnect.IOSDistribution,
Enterprise: appstoreconnect.IOSDistribution,
}
// ProfileTypeToPlatform ...
var ProfileTypeToPlatform = map[appstoreconnect.ProfileType]Platform{
appstoreconnect.IOSAppDevelopment: IOS,
appstoreconnect.IOSAppStore: IOS,
appstoreconnect.IOSAppAdHoc: IOS,
appstoreconnect.IOSAppInHouse: IOS,
appstoreconnect.TvOSAppDevelopment: TVOS,
appstoreconnect.TvOSAppStore: TVOS,
appstoreconnect.TvOSAppAdHoc: TVOS,
appstoreconnect.TvOSAppInHouse: TVOS,
}
// ProfileTypeToDistribution ...
var ProfileTypeToDistribution = map[appstoreconnect.ProfileType]DistributionType{
appstoreconnect.IOSAppDevelopment: Development,
appstoreconnect.IOSAppStore: AppStore,
appstoreconnect.IOSAppAdHoc: AdHoc,
appstoreconnect.IOSAppInHouse: Enterprise,
appstoreconnect.TvOSAppDevelopment: Development,
appstoreconnect.TvOSAppStore: AppStore,
appstoreconnect.TvOSAppAdHoc: AdHoc,
appstoreconnect.TvOSAppInHouse: Enterprise,
}
// PlatformToProfileTypeByDistribution ...
var PlatformToProfileTypeByDistribution = map[Platform]map[DistributionType]appstoreconnect.ProfileType{
IOS: {
Development: appstoreconnect.IOSAppDevelopment,
AppStore: appstoreconnect.IOSAppStore,
AdHoc: appstoreconnect.IOSAppAdHoc,
Enterprise: appstoreconnect.IOSAppInHouse,
},
TVOS: {
Development: appstoreconnect.TvOSAppDevelopment,
AppStore: appstoreconnect.TvOSAppStore,
AdHoc: appstoreconnect.TvOSAppAdHoc,
Enterprise: appstoreconnect.TvOSAppInHouse,
},
}