diff --git a/SwiftLeeds.xcodeproj/project.pbxproj b/SwiftLeeds.xcodeproj/project.pbxproj index f2bd57c..2ff0edd 100644 --- a/SwiftLeeds.xcodeproj/project.pbxproj +++ b/SwiftLeeds.xcodeproj/project.pbxproj @@ -224,6 +224,7 @@ 74F5EF842A49CE6A008D9413 /* TabsMainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabsMainView.swift; sourceTree = ""; }; 74F5EF862A49CE9D008D9413 /* SidebarMainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SidebarMainView.swift; sourceTree = ""; }; 74F5EF882A49CECB008D9413 /* SidebarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SidebarView.swift; sourceTree = ""; }; + 7B8108412E5CA00E00CCB2F5 /* SwiftLeedsPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = SwiftLeedsPackage; sourceTree = ""; }; AE1C800F289E9F3800996659 /* String.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = String.swift; sourceTree = ""; }; AE1C801328A7BCD000996659 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = ""; }; AE1CDBE02AC0586500E83420 /* HttpMethod.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HttpMethod.swift; sourceTree = ""; }; @@ -389,6 +390,7 @@ AECB294A27417F9D00CDC983 = { isa = PBXGroup; children = ( + 7B8108412E5CA00E00CCB2F5 /* SwiftLeedsPackage */, 74B14FAD28CB22B4004C0A40 /* SwiftLeedsWidgetExtension.entitlements */, AECB295527417F9D00CDC983 /* SwiftLeeds */, AE1C801328A7BCD000996659 /* Settings.bundle */, diff --git a/SwiftLeedsPackage/.gitignore b/SwiftLeedsPackage/.gitignore new file mode 100644 index 0000000..0023a53 --- /dev/null +++ b/SwiftLeedsPackage/.gitignore @@ -0,0 +1,8 @@ +.DS_Store +/.build +/Packages +xcuserdata/ +DerivedData/ +.swiftpm/configuration/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/SwiftLeedsPackage/Package.swift b/SwiftLeedsPackage/Package.swift new file mode 100644 index 0000000..83d7e21 --- /dev/null +++ b/SwiftLeedsPackage/Package.swift @@ -0,0 +1,23 @@ +// swift-tools-version: 5.7 + +import PackageDescription + +let package = Package( + name: "SwiftLeedsPackage", + platforms: [ + .iOS(.v16), + ], + products: [ + .library( + name: "SwiftLeedsPackage", + targets: ["SwiftLeedsPackage"]), + ], + targets: [ + .target( + name: "SwiftLeedsPackage"), + .testTarget( + name: "SwiftLeedsPackageTests", + dependencies: ["SwiftLeedsPackage"] + ), + ] +) diff --git a/SwiftLeedsPackage/Sources/SwiftLeedsPackage/SwiftLeedsPackage.swift b/SwiftLeedsPackage/Sources/SwiftLeedsPackage/SwiftLeedsPackage.swift new file mode 100644 index 0000000..08b22b8 --- /dev/null +++ b/SwiftLeedsPackage/Sources/SwiftLeedsPackage/SwiftLeedsPackage.swift @@ -0,0 +1,2 @@ +// The Swift Programming Language +// https://docs.swift.org/swift-book diff --git a/SwiftLeedsPackage/Tests/SwiftLeedsPackageTests/SwiftLeedsPackageTests.swift b/SwiftLeedsPackage/Tests/SwiftLeedsPackageTests/SwiftLeedsPackageTests.swift new file mode 100644 index 0000000..e915f1d --- /dev/null +++ b/SwiftLeedsPackage/Tests/SwiftLeedsPackageTests/SwiftLeedsPackageTests.swift @@ -0,0 +1,6 @@ +import Testing +@testable import SwiftLeedsPackage + +@Test func example() async throws { + // Write your test here and use APIs like `#expect(...)` to check expected conditions. +}