mirror of
https://github.com/devxoul/Toaster.git
synced 2026-01-18 13:11:20 +01:00
SPM support
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
||||
*~.nib
|
||||
|
||||
build/
|
||||
.build/
|
||||
|
||||
*.pbxuser
|
||||
*.perspective
|
||||
|
||||
26
Package.swift
Normal file
26
Package.swift
Normal 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"),
|
||||
]
|
||||
)
|
||||
10
README.md
10
README.md
@@ -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
|
||||
---------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// Copyright © 2019 Suyeol Jeon. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
extension UIApplication {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user