This repository has been archived by the owner on May 28, 2024. It is now read-only.
forked from aws-amplify/aws-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
framework_list.py
98 lines (92 loc) · 3.01 KB
/
framework_list.py
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# A list of frameworks/packages for the AWS iOS SDK. As of now, order on these
# packages is important, since we don't model dependencies in code that we
# consume for the release process. Packages toward the bottom of the list
# depend on packages toward the top of the list.
# Note that this list isn't a comprehensive list of Xcode schemas or targets
# that need to be built and tested, only a model of dependencies for cocoapods.
grouped_frameworks = [
# No dependencies
["AWSCore"],
[
# Depends only on AWSCore
"AWSCognitoIdentityProviderASF"
],
[
# Depends only on AWSCognitoIdentityProviderASF
"AWSCognitoAuth",
# Depends on AWSCore and AWSCognitoIdentityProviderASF
"AWSCognitoIdentityProvider",
# Depends only on AWSCore
"AWSAuthCore",
# Service-API packages depend only on AWSCore
# "AWSAPIGateway",
# "AWSAutoScaling",
# "AWSChimeSDKIdentity",
# "AWSChimeSDKMessaging",
# "AWSCloudWatch",
# "AWSComprehend",
# "AWSConnect",
# "AWSConnectParticipant",
# "AWSDynamoDB",
# "AWSEC2",
# "AWSElasticLoadBalancing",
# "AWSIoT",
# "AWSKMS",
# "AWSKinesis",
# "AWSKinesisVideo",
# "AWSKinesisVideoArchivedMedia",
# "AWSKinesisVideoSignaling",
# "AWSLambda",
# "AWSLex",
# "AWSLocation",
# "AWSLogs",
# "AWSMachineLearning",
# "AWSPinpoint",
# "AWSPolly",
# "AWSRekognition",
# "AWSS3",
# "AWSSES",
# "AWSSNS",
# "AWSSQS",
# "AWSSageMakerRuntime",
# "AWSSimpleDB",
# "AWSTextract",
# "AWSTranscribe",
# "AWSTranscribeStreaming",
# "AWSTranslate",
],
[
# Depends on AWSCore and AWSAuthCore
"AWSAuthUI",
# Depends only on AWSAuthCore (and possibly external Pods, but nothing else
# built locally)
# "AWSAppleSignIn",
# "AWSFacebookSignIn",
# "AWSGoogleSignIn",
# Depends only on AWSAuthCore and AWSCognitoIdentityProvider
"AWSMobileClient",
"AWSUserPoolsSignIn",
],
[
# Depends on most previous packages except auth
"AWSiOSSDKv2",
# Depends on AWSAuthCore, AWSAppleSignIn, AWSFacebookSignIn, AWSGoogleSignIn,
# AWSUserPoolsSignIn and AWSAuthUI
"AWSAuth",
],
]
excluded_from_xcframeworks = [
# This isn't a real framework
"AWSiOSSDKv2",
# Legacy frameworks not built or packaged
"AWSAuth",
# AWSMobileClient is named as AWSMobileClientXCF and will be added later.
"AWSMobileClient",
# AWSLocation is named as AWSLocationXCF and will be added later.
"AWSLocation"
]
def is_framework_included(framework):
return framework not in excluded_from_xcframeworks
# flatten the grouped frameworks
frameworks = [framework for group in grouped_frameworks for framework in group]
xcframeworks = list(filter(is_framework_included, frameworks)) + ["AWSMobileClientXCF", "AWSLocationXCF"]