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

Commit 12ba6f8

Browse files
committed
Move all remaining source files
1 parent 7d2fe63 commit 12ba6f8

21 files changed

+146
-46
lines changed

Package.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,23 @@ let package = Package(
2727
.target(
2828
name: "CoreAPI",
2929
dependencies: [
30+
.target(name: "APIInterface"),
3031
.product(name: "WordPressShared", package: "WordPress-iOS-Shared"),
3132
"wpxmlrpc"
3233
]
3334
),
35+
.testTarget(
36+
name: "CoreAPITests",
37+
dependencies: [
38+
.target(name: "CoreAPI"),
39+
.product(name: "OHHTTPStubs", package: "OHHTTPStubs"),
40+
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"),
41+
"Alamofire",
42+
],
43+
path: "Tests/CoreAPITests",
44+
resources: [
45+
// .process("Stubs") // Relative to path
46+
]
47+
),
3448
]
3549
)

Sources/WordPressKit/WordPressAPI/Date+WordPressCom.swift renamed to Sources/CoreAPI/Date+WordPressCom.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
extension Date {
24

35
/// Parses a date string

Sources/WordPressKit/WordPressAPI/DateFormatter+WordPressCom.swift renamed to Sources/CoreAPI/DateFormatter+WordPressCom.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
extension DateFormatter {
24

35
/// A `DateFormatter` configured to manage dates compatible with the WordPress.com API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import UIKit
23

34
/// URLAuthenticationChallenge Handler: It's up to the Host App to actually use this, whenever `WordPressOrgXMLRPCApi.onChallenge` is hit!
45
///

0 commit comments

Comments
 (0)