From e6e212d226009566d27f3c466ce2ed7610f118e0 Mon Sep 17 00:00:00 2001 From: Marvin Scharger Date: Tue, 27 Apr 2021 11:48:24 +0200 Subject: [PATCH] spm support --- KTCenterFlowLayout.podspec | 2 +- .../KTCenterFlowLayout.h | 0 .../KTCenterFlowLayout.m | 0 .../KTCenterFlowLayout/KTCenterFlowLayout.h | 1 + Package.swift | 20 +++++++++++++++++++ 5 files changed, 22 insertions(+), 1 deletion(-) rename KTCenterFlowLayout.h => KTCenterFlowLayout/KTCenterFlowLayout.h (100%) rename KTCenterFlowLayout.m => KTCenterFlowLayout/KTCenterFlowLayout.m (100%) create mode 120000 KTCenterFlowLayout/include/KTCenterFlowLayout/KTCenterFlowLayout.h create mode 100644 Package.swift diff --git a/KTCenterFlowLayout.podspec b/KTCenterFlowLayout.podspec index 4fab0b5..fb5f920 100644 --- a/KTCenterFlowLayout.podspec +++ b/KTCenterFlowLayout.podspec @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.tvos.deployment_target = '9.0' s.requires_arc = true - s.source_files = 'KTCenterFlowLayout.{h,m}' + s.source_files = 'KTCenterFlowLayout/KTCenterFlowLayout.{h,m}' s.frameworks = 'UIKit' diff --git a/KTCenterFlowLayout.h b/KTCenterFlowLayout/KTCenterFlowLayout.h similarity index 100% rename from KTCenterFlowLayout.h rename to KTCenterFlowLayout/KTCenterFlowLayout.h diff --git a/KTCenterFlowLayout.m b/KTCenterFlowLayout/KTCenterFlowLayout.m similarity index 100% rename from KTCenterFlowLayout.m rename to KTCenterFlowLayout/KTCenterFlowLayout.m diff --git a/KTCenterFlowLayout/include/KTCenterFlowLayout/KTCenterFlowLayout.h b/KTCenterFlowLayout/include/KTCenterFlowLayout/KTCenterFlowLayout.h new file mode 120000 index 0000000..318feb8 --- /dev/null +++ b/KTCenterFlowLayout/include/KTCenterFlowLayout/KTCenterFlowLayout.h @@ -0,0 +1 @@ +../../KTCenterFlowLayout.h \ No newline at end of file diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..8d7fb91 --- /dev/null +++ b/Package.swift @@ -0,0 +1,20 @@ +// 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: "KTCenterFlowLayout", + products: [ + .library( + name: "KTCenterFlowLayout", + targets: ["KTCenterFlowLayout"]), + ], + dependencies: [], + targets: [ + .target( + name: "KTCenterFlowLayout", + path: "KTCenterFlowLayout" + ), + ] +)