Skip to content

Commit 3973017

Browse files
authored
chore: Exclude resources file from SPM (#1163)
1 parent 85089b2 commit 3973017

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

Package.swift

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,20 @@ let package = Package(
3838
targets: [
3939
.target(
4040
name: "Amplify",
41-
path: "Amplify"
41+
path: "Amplify",
42+
exclude: [
43+
"Info.plist",
44+
"Categories/DataStore/Model/Temporal/README.md"
45+
]
4246
),
4347
.target(
4448
name: "AWSPluginsCore",
4549
dependencies: [.target(name: "Amplify"),
4650
.product(name: "AWSCore", package: "AWSiOSSDKV2")],
47-
path: "AmplifyPlugins/Core/AWSPluginsCore"
51+
path: "AmplifyPlugins/Core/AWSPluginsCore",
52+
exclude: [
53+
"Info.plist"
54+
]
4855
),
4956
.target(
5057
name: "AWSAPIPlugin",
@@ -54,7 +61,11 @@ let package = Package(
5461
.product(name: "AWSCore", package: "AWSiOSSDKV2"),
5562
.product(name: "AppSyncRealTimeClient", package: "AppSyncRealTimeClient")
5663
],
57-
path: "AmplifyPlugins/API/AWSAPICategoryPlugin"
64+
path: "AmplifyPlugins/API/AWSAPICategoryPlugin",
65+
exclude: [
66+
"Info.plist",
67+
"AWSAPIPlugin.md"
68+
]
5869
),
5970
.target(
6071
name: "AWSCognitoAuthPlugin",
@@ -66,15 +77,21 @@ let package = Package(
6677
.product(name: "AWSMobileClientXCF", package: "AWSiOSSDKV2"),
6778
.product(name: "AWSCognitoIdentityProvider", package: "AWSiOSSDKV2"),
6879
.product(name: "AWSCognitoIdentityProviderASF", package: "AWSiOSSDKV2")],
69-
path: "AmplifyPlugins/Auth/AWSCognitoAuthPlugin"
80+
path: "AmplifyPlugins/Auth/AWSCognitoAuthPlugin",
81+
exclude: [
82+
"Resources/Info.plist"
83+
]
7084
),
7185
.target(
7286
name: "AWSDataStorePlugin",
7387
dependencies: [
7488
.target(name: "Amplify"),
7589
.target(name: "AWSPluginsCore"),
7690
.product(name: "SQLite", package: "SQLite.swift")],
77-
path: "AmplifyPlugins/DataStore/AWSDataStoreCategoryPlugin"
91+
path: "AmplifyPlugins/DataStore/AWSDataStoreCategoryPlugin",
92+
exclude: [
93+
"Info.plist"
94+
]
7895
),
7996
.target(
8097
name: "AWSPinpointAnalyticsPlugin",
@@ -84,7 +101,10 @@ let package = Package(
84101
.product(name: "AWSCore", package: "AWSiOSSDKV2"),
85102
.product(name: "AWSPinpoint", package: "AWSiOSSDKV2")
86103
],
87-
path: "AmplifyPlugins/Analytics/AWSPinpointAnalyticsPlugin"
104+
path: "AmplifyPlugins/Analytics/AWSPinpointAnalyticsPlugin",
105+
exclude: [
106+
"Resources/Info.plist"
107+
]
88108
),
89109
.target(
90110
name: "AWSS3StoragePlugin",
@@ -94,7 +114,10 @@ let package = Package(
94114
.product(name: "AWSCore", package: "AWSiOSSDKV2"),
95115
.product(name: "AWSS3", package: "AWSiOSSDKV2")
96116
],
97-
path: "AmplifyPlugins/Storage/AWSS3StoragePlugin"
117+
path: "AmplifyPlugins/Storage/AWSS3StoragePlugin",
118+
exclude: [
119+
"Resources/Info.plist"
120+
]
98121
)
99122
]
100123
)

0 commit comments

Comments
 (0)