From 2dbf7d9b649e6897af1175fb6044f9eb7236a3b3 Mon Sep 17 00:00:00 2001 From: lvnkmn Date: Fri, 15 Nov 2019 16:47:12 +0100 Subject: [PATCH] ref #231 - add Package.swift (#250) --- .gitignore | 1 + Package.resolved | 25 +++++++++++++++++++++++++ Package.swift | 24 ++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 Package.resolved create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore index c7fa2bb5..f87b05db 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ Carthage # `pod install` in .travis.yml # # Pods/ +.swiftpm diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 00000000..ee522ff6 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,25 @@ +{ + "object": { + "pins": [ + { + "package": "MarqueeLabel", + "repositoryURL": "https://github.com/cbpowell/MarqueeLabel", + "state": { + "branch": "xcode11", + "revision": "ac87bb9f1ee16cdfcd94ac5271f1b1e8033c9ffc", + "version": null + } + }, + { + "package": "SnapKit", + "repositoryURL": "https://github.com/SnapKit/SnapKit", + "state": { + "branch": null, + "revision": "d458564516e5676af9c70b4f4b2a9178294f1bc6", + "version": "5.0.1" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..50ebaeb6 --- /dev/null +++ b/Package.swift @@ -0,0 +1,24 @@ +// swift-tools-version:5.0 +import PackageDescription + +let package = Package( + name: "NotificationBannerSwift", + platforms: [ + .iOS(.v10) + ], + products: [ + .library(name: "NotificationBannerSwift", targets: ["NotificationBannerSwift"]) + ], + dependencies: [ + .package(url: "https://github.com/SnapKit/SnapKit", from: "5.0.1"), + .package(url: "https://github.com/cbpowell/MarqueeLabel", .branch("xcode11")) + ], + targets: [ + .target( + name: "NotificationBannerSwift", + dependencies: [.byName(name: "MarqueeLabel"), .byName(name: "SnapKit")], + path: "NotificationBanner/Classes" + ) + ], + swiftLanguageVersions: [.v5] +)