From 4b1bfbe2509f90765da437d3dcdf754cd640631c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melih=20O=CC=88zsezikli?= Date: Fri, 29 May 2020 12:21:57 +0300 Subject: [PATCH 1/2] spm support --- .../WCLShineButton}/Info.plist | 0 .../WCLShineButton}/WCLShineAngleLayer.swift | 0 .../WCLShineButton}/WCLShineBundle.swift | 0 .../WCLShineButton.bundle/resource/heart.png | Bin .../WCLShineButton.bundle/resource/like.png | Bin .../WCLShineButton.bundle/resource/smile.png | Bin .../WCLShineButton.bundle/resource/star.png | Bin .../WCLShineButton}/WCLShineButton.swift | 0 .../WCLShineButton}/WCLShineClickLayer.swift | 0 .../WCLShineButton}/WCLShineLayer.swift | 0 .../WCLShineButton}/WCLShineParams.swift | 0 WCLShineButton.podspec | 4 ++-- 12 files changed, 2 insertions(+), 2 deletions(-) rename {WCLShineButton => Sources/WCLShineButton}/Info.plist (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineAngleLayer.swift (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineBundle.swift (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineButton.bundle/resource/heart.png (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineButton.bundle/resource/like.png (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineButton.bundle/resource/smile.png (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineButton.bundle/resource/star.png (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineButton.swift (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineClickLayer.swift (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineLayer.swift (100%) rename {WCLShineButton => Sources/WCLShineButton}/WCLShineParams.swift (100%) diff --git a/WCLShineButton/Info.plist b/Sources/WCLShineButton/Info.plist similarity index 100% rename from WCLShineButton/Info.plist rename to Sources/WCLShineButton/Info.plist diff --git a/WCLShineButton/WCLShineAngleLayer.swift b/Sources/WCLShineButton/WCLShineAngleLayer.swift similarity index 100% rename from WCLShineButton/WCLShineAngleLayer.swift rename to Sources/WCLShineButton/WCLShineAngleLayer.swift diff --git a/WCLShineButton/WCLShineBundle.swift b/Sources/WCLShineButton/WCLShineBundle.swift similarity index 100% rename from WCLShineButton/WCLShineBundle.swift rename to Sources/WCLShineButton/WCLShineBundle.swift diff --git a/WCLShineButton/WCLShineButton.bundle/resource/heart.png b/Sources/WCLShineButton/WCLShineButton.bundle/resource/heart.png similarity index 100% rename from WCLShineButton/WCLShineButton.bundle/resource/heart.png rename to Sources/WCLShineButton/WCLShineButton.bundle/resource/heart.png diff --git a/WCLShineButton/WCLShineButton.bundle/resource/like.png b/Sources/WCLShineButton/WCLShineButton.bundle/resource/like.png similarity index 100% rename from WCLShineButton/WCLShineButton.bundle/resource/like.png rename to Sources/WCLShineButton/WCLShineButton.bundle/resource/like.png diff --git a/WCLShineButton/WCLShineButton.bundle/resource/smile.png b/Sources/WCLShineButton/WCLShineButton.bundle/resource/smile.png similarity index 100% rename from WCLShineButton/WCLShineButton.bundle/resource/smile.png rename to Sources/WCLShineButton/WCLShineButton.bundle/resource/smile.png diff --git a/WCLShineButton/WCLShineButton.bundle/resource/star.png b/Sources/WCLShineButton/WCLShineButton.bundle/resource/star.png similarity index 100% rename from WCLShineButton/WCLShineButton.bundle/resource/star.png rename to Sources/WCLShineButton/WCLShineButton.bundle/resource/star.png diff --git a/WCLShineButton/WCLShineButton.swift b/Sources/WCLShineButton/WCLShineButton.swift similarity index 100% rename from WCLShineButton/WCLShineButton.swift rename to Sources/WCLShineButton/WCLShineButton.swift diff --git a/WCLShineButton/WCLShineClickLayer.swift b/Sources/WCLShineButton/WCLShineClickLayer.swift similarity index 100% rename from WCLShineButton/WCLShineClickLayer.swift rename to Sources/WCLShineButton/WCLShineClickLayer.swift diff --git a/WCLShineButton/WCLShineLayer.swift b/Sources/WCLShineButton/WCLShineLayer.swift similarity index 100% rename from WCLShineButton/WCLShineLayer.swift rename to Sources/WCLShineButton/WCLShineLayer.swift diff --git a/WCLShineButton/WCLShineParams.swift b/Sources/WCLShineButton/WCLShineParams.swift similarity index 100% rename from WCLShineButton/WCLShineParams.swift rename to Sources/WCLShineButton/WCLShineParams.swift diff --git a/WCLShineButton.podspec b/WCLShineButton.podspec index 59fc99a..282788d 100644 --- a/WCLShineButton.podspec +++ b/WCLShineButton.podspec @@ -16,8 +16,8 @@ Pod::Spec.new do |s| s.author = { "W_C__L" => "wangchonglei93@icloud.com" } s.platform = :ios, "8.0" s.source = { :git => "https://github.com/631106979/WCLShineButton.git", :tag => s.version.to_s } - s.source_files = 'WCLShineButton/*.{swift}' - s.resources = 'WCLShineButton/WCLShineButton.bundle' + s.source_files = 'Sources/**/*.swift' + s.resources = 'Sources/**/WCLShineButton.bundle' s.frameworks = "UIKit" s.requires_arc = true # s.swift_version = '5.0' From 5a82fb938bf8369261e812d73827f3cba7a9431f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melih=20O=CC=88zsezikli?= Date: Fri, 29 May 2020 12:26:10 +0300 Subject: [PATCH 2/2] spm support --- Package.swift | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..c291d52 --- /dev/null +++ b/Package.swift @@ -0,0 +1,25 @@ +// swift-tools-version:5.2 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "WCLShineButton", + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library( + name: "WCLShineButton", + targets: ["WCLShineButton"]), + ], + 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 which this package depends on. + .target( + name: "WCLShineButton", + dependencies: []) + ] +)