SPM support

This commit is contained in:
Andrey Chernoprudov
2019-10-13 18:28:37 +05:00
parent 59a189c9ba
commit ffb6c746a9
4 changed files with 38 additions and 1 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@
*~.nib
build/
.build/
*.pbxuser
*.perspective

26
Package.swift Normal file
View File

@@ -0,0 +1,26 @@
// 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: "Toaster",
platforms: [
.iOS(.v8)
],
products: [
.library(
name: "Toaster",
targets: ["Toaster"]),
],
targets: [
.target(
name: "Toaster",
dependencies: [],
path: "Sources"),
.testTarget(
name: "ToasterTests",
dependencies: ["Toaster"],
path: "ToasterTests"),
]
)

View File

@@ -49,6 +49,16 @@ Installation
github "devxoul/Toaster"
```
- **For iOS 8+ and Xcode 11+ projects with [Swift Package Manager](https://github.com/apple/swift-package-manager):**
```
dependencies: [
.package(url: "https://github.com/devxoul/Toaster.git", from: "master")
]
```
Getting Started
---------------

View File

@@ -6,7 +6,7 @@
// Copyright © 2019 Suyeol Jeon. All rights reserved.
//
import Foundation
import UIKit
extension UIApplication {