commit 472ed2c0683e8e9044f51db778419811ba6c4df6 Author: Javier Cicchelli Date: Tue Apr 18 19:41:50 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..94de2e6 --- /dev/null +++ b/Package.swift @@ -0,0 +1,30 @@ +// swift-tools-version: 5.8 + +import PackageDescription + +let package = Package( + name: "AmiiboService", + products: [ + .library( + name: "AmiiboService", + targets: [ + "AmiiboService" + ] + ), + ], + dependencies: [], + targets: [ + .target( + name: "AmiiboService", + dependencies: [], + path: "Sources" + ), + .testTarget( + name: "AmiiboServiceTests", + dependencies: [ + "AmiiboService" + ], + path: "Tests" + ), + ] +) diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab5c1af --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# AmiiboService + +A description of this package. diff --git a/Sources/AmiiboService/AmiiboService.swift b/Sources/AmiiboService/AmiiboService.swift new file mode 100644 index 0000000..48d14a1 --- /dev/null +++ b/Sources/AmiiboService/AmiiboService.swift @@ -0,0 +1,6 @@ +public struct AmiiboService { + public private(set) var text = "Hello, World!" + + public init() { + } +} diff --git a/Tests/AmiiboServiceTests/AmiiboServiceTests.swift b/Tests/AmiiboServiceTests/AmiiboServiceTests.swift new file mode 100644 index 0000000..4aecad6 --- /dev/null +++ b/Tests/AmiiboServiceTests/AmiiboServiceTests.swift @@ -0,0 +1,11 @@ +import XCTest +@testable import AmiiboService + +final class AmiiboServiceTests: 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(AmiiboService().text, "Hello, World!") + } +}