diff --git a/Package.swift b/Package.swift index 8f7bf1e..e286069 100644 --- a/Package.swift +++ b/Package.swift @@ -1,3 +1,5 @@ +// swift-tools-version:5.0 +// // Package.swift // Copyright (c) 2017 Nicholas Maccharoli // @@ -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] ) diff --git a/Sources/Screen.swift b/Sources/Screen.swift index d9acca7..9cfe936 100644 --- a/Sources/Screen.swift +++ b/Sources/Screen.swift @@ -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 diff --git a/Sources/System.swift b/Sources/System.swift index cecd852..a83fe81 100644 --- a/Sources/System.swift +++ b/Sources/System.swift @@ -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()