Skip to content

Commit

Permalink
Merge pull request #44 from pahnev/master
Browse files Browse the repository at this point in the history
Update SPM to support Xcode 11
  • Loading branch information
Nirma authored Oct 5, 2019
2 parents 0dbbf89 + 20a3941 commit 1f302a9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// swift-tools-version:5.0
//
// Package.swift
// Copyright (c) 2017 Nicholas Maccharoli
//
Expand All @@ -18,9 +20,18 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import PackageDescription

let package = Package(
name: "UIDeviceComplete"
name: "UIDeviceComplete",
platforms: [
.iOS(.v8)
],
products: [
.library(name: "UIDeviceComplete", targets: ["UIDeviceComplete"])
],
targets: [
.target(name: "UIDeviceComplete", path: "Sources"),
],
swiftLanguageVersions: [.v5]
)
2 changes: 2 additions & 0 deletions Sources/Screen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import UIKit

public struct Screen {
init(width: Double, height: Double, scale: Double) {
self.width = width
Expand Down
2 changes: 2 additions & 0 deletions Sources/System.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation

class System {
static var name: String? {
var systemInfo = utsname()
Expand Down

0 comments on commit 1f302a9

Please sign in to comment.