diff --git a/Apps/Locations/Libraries/Package.swift b/Apps/Locations/Libraries/Package.swift new file mode 100644 index 0000000..03df4b5 --- /dev/null +++ b/Apps/Locations/Libraries/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version: 5.8 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "Libraries", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "Libraries", + targets: ["Libraries"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "Libraries", + dependencies: []), + .testTarget( + name: "LibrariesTests", + dependencies: ["Libraries"]), + ] +) diff --git a/Apps/Locations/Libraries/Sources/Libraries/Libraries.swift b/Apps/Locations/Libraries/Sources/Libraries/Libraries.swift new file mode 100644 index 0000000..c1536b6 --- /dev/null +++ b/Apps/Locations/Libraries/Sources/Libraries/Libraries.swift @@ -0,0 +1,6 @@ +public struct Libraries { + public private(set) var text = "Hello, World!" + + public init() { + } +} diff --git a/Apps/Locations/Libraries/Tests/LibrariesTests/LibrariesTests.swift b/Apps/Locations/Libraries/Tests/LibrariesTests/LibrariesTests.swift new file mode 100644 index 0000000..dd47066 --- /dev/null +++ b/Apps/Locations/Libraries/Tests/LibrariesTests/LibrariesTests.swift @@ -0,0 +1,11 @@ +import XCTest +@testable import Libraries + +final class LibrariesTests: XCTestCase { + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct + // results. + XCTAssertEqual(Libraries().text, "Hello, World!") + } +} diff --git a/DeepLinking.xcodeproj/project.pbxproj b/DeepLinking.xcodeproj/project.pbxproj index e791a76..555dd37 100644 --- a/DeepLinking.xcodeproj/project.pbxproj +++ b/DeepLinking.xcodeproj/project.pbxproj @@ -121,6 +121,7 @@ 46EB332629E1CE05001D5EAF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46EB332929E1CE05001D5EAF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 46EB332B29E1CE05001D5EAF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 46EB333229E1CFD9001D5EAF /* Libraries */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Libraries; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -182,6 +183,7 @@ 46EB331929E1CE04001D5EAF /* Locations */ = { isa = PBXGroup; children = ( + 46EB333229E1CFD9001D5EAF /* Libraries */, 46EB332F29E1CE1E001D5EAF /* Sources */, 46EB333029E1CE27001D5EAF /* Resources */, );