From 4f137e58fa5f47d451957fe739a0225292e48c03 Mon Sep 17 00:00:00 2001 From: Mashal Date: Tue, 9 Mar 2021 14:01:56 +0400 Subject: [PATCH 1/2] Adding SPM Support --- KSTokenView.podspec | 2 +- Package.swift | 28 +++++++++++++++++++ .../KSTokenView}/KSToken.swift | 0 .../KSTokenView}/KSTokenField.swift | 0 .../KSTokenView}/KSTokenView.swift | 0 .../KSTokenView}/KSUtils.swift | 0 6 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Package.swift rename {KSTokenView => Sources/KSTokenView}/KSToken.swift (100%) rename {KSTokenView => Sources/KSTokenView}/KSTokenField.swift (100%) rename {KSTokenView => Sources/KSTokenView}/KSTokenView.swift (100%) rename {KSTokenView => Sources/KSTokenView}/KSUtils.swift (100%) diff --git a/KSTokenView.podspec b/KSTokenView.podspec index cf88847..51a5b89 100644 --- a/KSTokenView.podspec +++ b/KSTokenView.podspec @@ -27,5 +27,5 @@ Pod::Spec.new do |s| # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # s.source = { :git => "https://github.com/khawars/KSTokenView.git", :tag => s.version } - s.source_files = "KSTokenView/*.swift" + s.source_files = "Sources/KSTokenView/*.swift" end diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..9233dd6 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "KSTokenView", + + + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "KSTokenView", + targets: ["KSTokenView"]), + ], + + 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: "KSTokenView", + dependencies: []), + ] +) diff --git a/KSTokenView/KSToken.swift b/Sources/KSTokenView/KSToken.swift similarity index 100% rename from KSTokenView/KSToken.swift rename to Sources/KSTokenView/KSToken.swift diff --git a/KSTokenView/KSTokenField.swift b/Sources/KSTokenView/KSTokenField.swift similarity index 100% rename from KSTokenView/KSTokenField.swift rename to Sources/KSTokenView/KSTokenField.swift diff --git a/KSTokenView/KSTokenView.swift b/Sources/KSTokenView/KSTokenView.swift similarity index 100% rename from KSTokenView/KSTokenView.swift rename to Sources/KSTokenView/KSTokenView.swift diff --git a/KSTokenView/KSUtils.swift b/Sources/KSTokenView/KSUtils.swift similarity index 100% rename from KSTokenView/KSUtils.swift rename to Sources/KSTokenView/KSUtils.swift From 43917b9d913b9525831db8d71bf656d0774977c3 Mon Sep 17 00:00:00 2001 From: Mashal Date: Tue, 9 Mar 2021 14:02:24 +0400 Subject: [PATCH 2/2] adding .swiftpm --- .../xcode/package.xcworkspace/contents.xcworkspacedata | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + +