Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 966b6e5

Browse files
authored
SPM Prep – Define APIInterface package (#774)
2 parents 9930ab2 + d9ea743 commit 966b6e5

File tree

6 files changed

+37
-4
lines changed

6 files changed

+37
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ vendor/
9898
iOSInjectionProject/
9999

100100
# SwiftLint Remote Config Cache
101-
.swiftlint/RemoteConfigCache
101+
.swiftlint/RemoteConfigCache
102+
103+
.swiftpm

Package.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// swift-tools-version: 5.9
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "WordPressKit",
7+
platforms: [.iOS(.v13)],
8+
products: [
9+
.library(name: "APIInterface", targets: ["APIInterface"]),
10+
],
11+
dependencies: [],
12+
targets: [
13+
.target(name: "APIInterface")
14+
]
15+
)
File renamed without changes.
File renamed without changes.

Sources/WordPressKit/WordPressAPI/WordPressComRESTAPIInterfacing.h renamed to Sources/APIInterface/include/WordPressComRESTAPIInterfacing.h

File renamed without changes.

WordPressKit.xcodeproj/project.pbxproj

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,9 +1556,6 @@
15561556
3FE2E9352BB10D92002CA2E1 /* WordPressAPI */ = {
15571557
isa = PBXGroup;
15581558
children = (
1559-
3FE2E94E2BB29A1B002CA2E1 /* FilePart.h */,
1560-
3FE2E94D2BB29A1B002CA2E1 /* FilePart.m */,
1561-
3FFCC0552BABC78B0051D229 /* WordPressComRESTAPIInterfacing.h */,
15621559
4A05E7952B2FCB6400C25E3B /* NonceRetrieval.swift */,
15631560
4A05E7992B2FDC3200C25E3B /* WordPressOrgRestApi.swift */,
15641561
93BD27741EE73944002BB00B /* HTTPAuthenticationAlertController.swift */,
@@ -1979,6 +1976,7 @@
19791976
3FE2E9432BB11413002CA2E1 /* Sources */ = {
19801977
isa = PBXGroup;
19811978
children = (
1979+
3FE2E9532BB3F4ED002CA2E1 /* APIInterface */,
19821980
3FE2E9462BB12020002CA2E1 /* WordPressKit */,
19831981
);
19841982
path = Sources;
@@ -2030,6 +2028,24 @@
20302028
path = WordPressKitTests;
20312029
sourceTree = "<group>";
20322030
};
2031+
3FE2E9522BB3F4ED002CA2E1 /* include */ = {
2032+
isa = PBXGroup;
2033+
children = (
2034+
3FE2E94E2BB29A1B002CA2E1 /* FilePart.h */,
2035+
3FFCC0552BABC78B0051D229 /* WordPressComRESTAPIInterfacing.h */,
2036+
);
2037+
path = include;
2038+
sourceTree = "<group>";
2039+
};
2040+
3FE2E9532BB3F4ED002CA2E1 /* APIInterface */ = {
2041+
isa = PBXGroup;
2042+
children = (
2043+
3FE2E9522BB3F4ED002CA2E1 /* include */,
2044+
3FE2E94D2BB29A1B002CA2E1 /* FilePart.m */,
2045+
);
2046+
path = APIInterface;
2047+
sourceTree = "<group>";
2048+
};
20332049
404057C3221B30140060250C /* Time Interval */ = {
20342050
isa = PBXGroup;
20352051
children = (

0 commit comments

Comments
 (0)