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: []) + ] +) 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'