From 0df3d5dd24e7bdb6db955ee272f189b2a8be6f2c Mon Sep 17 00:00:00 2001 From: dscyrescotti Date: Sun, 2 May 2021 17:40:14 +0630 Subject: [PATCH] add spm support --- .gitignore | 6 ++-- .../contents.xcworkspacedata | 7 ++++ Package.swift | 32 +++++++++++++++++++ 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore index b707d1e..8988a51 100644 --- a/.gitignore +++ b/.gitignore @@ -35,9 +35,9 @@ playground.xcworkspace # Swift Package Manager # # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. -# Packages/ -# Package.pins -# Package.resolved +Packages/ +Package.pins +Package.resolved .build/ # CocoaPods 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 @@ + + + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..0cc808e --- /dev/null +++ b/Package.swift @@ -0,0 +1,32 @@ +// 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: "SegementSlide", + platforms: [.iOS(.v10)], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "SegementSlide", + targets: ["SegementSlide"]), + ], + 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: "SegementSlide", + dependencies: [], + path: "Source"), + .testTarget( + name: "SegementSlideTests", + dependencies: ["SegementSlide"], + path: "ExampleTests"), + ], + swiftLanguageVersions: [.v5] +)