From 676d563338acf0b2fe88dd5f9a4dfd3e9e3f6647 Mon Sep 17 00:00:00 2001 From: Alejandro Zalazar Date: Wed, 21 Apr 2021 19:06:06 -0300 Subject: [PATCH] Fix SPM --- Kuru.podspec | 2 +- Package.swift | 8 ++------ Sources/{ => Kuru}/Kuru.swift | 0 Sources/{ => Kuru}/decoder/KComponentDecoder.swift | 0 Sources/{ => Kuru}/entities/KFunctions.swift | 0 Sources/{ => Kuru}/extensions/Color+Codable.swift | 0 .../extensions/KeyedDecodingContainer+StringAny.swift | 0 Sources/{ => Kuru}/extensions/String+HexColor.swift | 0 Sources/{ => Kuru}/extensions/View+ToAnyView.swift | 0 Sources/{ => Kuru}/protocols/KComponentProtocol.swift | 0 Tests/{ => KuruTests}/KuruTests.swift | 0 Tests/{ => KuruTests}/XCTestManifests.swift | 0 Tests/LinuxMain.swift | 7 +++++++ 13 files changed, 10 insertions(+), 7 deletions(-) rename Sources/{ => Kuru}/Kuru.swift (100%) rename Sources/{ => Kuru}/decoder/KComponentDecoder.swift (100%) rename Sources/{ => Kuru}/entities/KFunctions.swift (100%) rename Sources/{ => Kuru}/extensions/Color+Codable.swift (100%) rename Sources/{ => Kuru}/extensions/KeyedDecodingContainer+StringAny.swift (100%) rename Sources/{ => Kuru}/extensions/String+HexColor.swift (100%) rename Sources/{ => Kuru}/extensions/View+ToAnyView.swift (100%) rename Sources/{ => Kuru}/protocols/KComponentProtocol.swift (100%) rename Tests/{ => KuruTests}/KuruTests.swift (100%) rename Tests/{ => KuruTests}/XCTestManifests.swift (100%) create mode 100644 Tests/LinuxMain.swift diff --git a/Kuru.podspec b/Kuru.podspec index ae17fde..e3d9b29 100644 --- a/Kuru.podspec +++ b/Kuru.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Kuru' - s.version = '0.0.2' + s.version = '0.0.3' s.summary = 'Kuru is the easy way to manipulating ui data from a server in SwiftUI.' s.description = <<-DESC Kuru is the easy way to manipulating ui data from a server in SwiftUI. diff --git a/Package.swift b/Package.swift index 284338c..2c04782 100644 --- a/Package.swift +++ b/Package.swift @@ -17,15 +17,11 @@ let package = Package( // .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: "Kuru", - dependencies: [], - path: "Sources"), + dependencies: []), .testTarget( name: "KuruTests", - dependencies: ["Kuru"], - path: "Tests"), + dependencies: ["Kuru"]), ] ) diff --git a/Sources/Kuru.swift b/Sources/Kuru/Kuru.swift similarity index 100% rename from Sources/Kuru.swift rename to Sources/Kuru/Kuru.swift diff --git a/Sources/decoder/KComponentDecoder.swift b/Sources/Kuru/decoder/KComponentDecoder.swift similarity index 100% rename from Sources/decoder/KComponentDecoder.swift rename to Sources/Kuru/decoder/KComponentDecoder.swift diff --git a/Sources/entities/KFunctions.swift b/Sources/Kuru/entities/KFunctions.swift similarity index 100% rename from Sources/entities/KFunctions.swift rename to Sources/Kuru/entities/KFunctions.swift diff --git a/Sources/extensions/Color+Codable.swift b/Sources/Kuru/extensions/Color+Codable.swift similarity index 100% rename from Sources/extensions/Color+Codable.swift rename to Sources/Kuru/extensions/Color+Codable.swift diff --git a/Sources/extensions/KeyedDecodingContainer+StringAny.swift b/Sources/Kuru/extensions/KeyedDecodingContainer+StringAny.swift similarity index 100% rename from Sources/extensions/KeyedDecodingContainer+StringAny.swift rename to Sources/Kuru/extensions/KeyedDecodingContainer+StringAny.swift diff --git a/Sources/extensions/String+HexColor.swift b/Sources/Kuru/extensions/String+HexColor.swift similarity index 100% rename from Sources/extensions/String+HexColor.swift rename to Sources/Kuru/extensions/String+HexColor.swift diff --git a/Sources/extensions/View+ToAnyView.swift b/Sources/Kuru/extensions/View+ToAnyView.swift similarity index 100% rename from Sources/extensions/View+ToAnyView.swift rename to Sources/Kuru/extensions/View+ToAnyView.swift diff --git a/Sources/protocols/KComponentProtocol.swift b/Sources/Kuru/protocols/KComponentProtocol.swift similarity index 100% rename from Sources/protocols/KComponentProtocol.swift rename to Sources/Kuru/protocols/KComponentProtocol.swift diff --git a/Tests/KuruTests.swift b/Tests/KuruTests/KuruTests.swift similarity index 100% rename from Tests/KuruTests.swift rename to Tests/KuruTests/KuruTests.swift diff --git a/Tests/XCTestManifests.swift b/Tests/KuruTests/XCTestManifests.swift similarity index 100% rename from Tests/XCTestManifests.swift rename to Tests/KuruTests/XCTestManifests.swift diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift new file mode 100644 index 0000000..e33053b --- /dev/null +++ b/Tests/LinuxMain.swift @@ -0,0 +1,7 @@ +import XCTest + +import KuruTests + +var tests = [XCTestCaseEntry]() +tests += KuruTests.allTests() +XCTMain(tests)