commit 07521d4e9340fd1540f756ca9ee6d9eb085dc960 Author: Javier Cicchelli Date: Sat Apr 15 00:45:32 2023 +0200 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3b29812 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..8cd7e63 --- /dev/null +++ b/Package.swift @@ -0,0 +1,29 @@ +// swift-tools-version: 5.8 + +import PackageDescription + +let package = Package( + name: "SwiftLibs", + products: [ + .library( + name: "SwiftLibs", + targets: [ + "SwiftLibs" + ] + ), + ], + dependencies: [], + targets: [ + .target( + name: "SwiftLibs", + dependencies: [ + ] + ), + .testTarget( + name: "SwiftLibsTests", + dependencies: [ + "SwiftLibs" + ] + ), + ] +) diff --git a/README.md b/README.md new file mode 100644 index 0000000..b1913f7 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# SwiftLibs + +A description of this package. diff --git a/Sources/SwiftLibs/SwiftLibs.swift b/Sources/SwiftLibs/SwiftLibs.swift new file mode 100644 index 0000000..8c48b67 --- /dev/null +++ b/Sources/SwiftLibs/SwiftLibs.swift @@ -0,0 +1,6 @@ +public struct SwiftLibs { + public private(set) var text = "Hello, World!" + + public init() { + } +} diff --git a/Tests/SwiftLibsTests/SwiftLibsTests.swift b/Tests/SwiftLibsTests/SwiftLibsTests.swift new file mode 100644 index 0000000..11d5b96 --- /dev/null +++ b/Tests/SwiftLibsTests/SwiftLibsTests.swift @@ -0,0 +1,11 @@ +import XCTest +@testable import SwiftLibs + +final class SwiftLibsTests: 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(SwiftLibs().text, "Hello, World!") + } +}