From a0ae4bb75a93992970b3b9127eb022be3d2da9ba Mon Sep 17 00:00:00 2001 From: Balazs Szamody Date: Mon, 14 Oct 2019 11:32:10 +1100 Subject: [PATCH] Swift Package Manager support - Package manifest created - Readme - SwiftPM badge included --- .../contents.xcworkspacedata | 7 +++++ Package.swift | 27 +++++++++++++++++++ README.md | 1 + 3 files changed, 35 insertions(+) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Package.swift 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..55644c1 --- /dev/null +++ b/Package.swift @@ -0,0 +1,27 @@ +// swift-tools-version:5.1 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "expanding-collection", + platforms: [.iOS(.v9)], + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library( + name: "expanding-collection", + targets: ["expanding-collection"]), + ], + 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: "expanding-collection", + dependencies: [], + path: "Source"), + ] +) diff --git a/README.md b/README.md index 77fa9c1..6540b0a 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ ___ [![CocoaPods](https://img.shields.io/cocoapods/p/expanding-collection.svg)](https://cocoapods.org/pods/expanding-collection) [![CocoaPods](https://img.shields.io/cocoapods/v/expanding-collection.svg)](http://cocoapods.org/pods/expanding-collection) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Ramotion/expanding-collection) +[![SwiftPM](https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat)]("https://swift.org/package-manager/") [![Travis](https://travis-ci.org/Ramotion/expanding-collection.svg?branch=master)](https://travis-ci.org/Ramotion/expanding-collection) [![codebeat badge](https://codebeat.co/badges/6a009992-5bf2-4730-aa35-f3b20ce7693d)](https://codebeat.co/projects/github-com-ramotion-expanding-collection) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://paypal.me/Ramotion)