From e4c75f87b401af327c0bf4d8d60ce89ab0db44c1 Mon Sep 17 00:00:00 2001 From: Yonas Kolb Date: Wed, 6 Jun 2018 19:38:05 +1000 Subject: [PATCH] fix podspec linting issues --- Stylist.xcodeproj/project.pbxproj | 8 ++++---- Stylist/Properties/BarItem.swift | 2 +- Stylist/Properties/View.swift | 4 ++-- Stylist/Properties/ViewController.swift | 2 +- Stylist/StyleValues/Color.swift | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Stylist.xcodeproj/project.pbxproj b/Stylist.xcodeproj/project.pbxproj index 80ff87a..21e4ede 100644 --- a/Stylist.xcodeproj/project.pbxproj +++ b/Stylist.xcodeproj/project.pbxproj @@ -945,6 +945,7 @@ SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; + TVOS_DEPLOYMENT_TARGET = 9.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -996,6 +997,7 @@ SDKROOT = iphoneos; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; + TVOS_DEPLOYMENT_TARGET = 9.0; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -1090,7 +1092,6 @@ SDKROOT = appletvos; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 9.0; }; name = Debug; }; @@ -1113,7 +1114,6 @@ SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 9.0; }; name = Release; }; @@ -1162,7 +1162,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.Stylist.Stylist-tvOS-Tests"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; - TVOS_DEPLOYMENT_TARGET = 9.1; + TVOS_DEPLOYMENT_TARGET = ""; }; name = Debug; }; @@ -1176,7 +1176,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TVOS_DEPLOYMENT_TARGET = 9.1; + TVOS_DEPLOYMENT_TARGET = ""; }; name = Release; }; diff --git a/Stylist/Properties/BarItem.swift b/Stylist/Properties/BarItem.swift index 3e8adfc..31d6e56 100644 --- a/Stylist/Properties/BarItem.swift +++ b/Stylist/Properties/BarItem.swift @@ -39,7 +39,7 @@ extension UIBarItem { } #if os(iOS) - if #available(iOSApplicationExtension 10.0, *) { + if #available(iOS 10.0, *) { add("badgeColor") { (view: UITabBarItem, value: PropertyValue) in view.badgeColor = value.value diff --git a/Stylist/Properties/View.swift b/Stylist/Properties/View.swift index 39194e2..4f628fb 100644 --- a/Stylist/Properties/View.swift +++ b/Stylist/Properties/View.swift @@ -346,7 +346,7 @@ extension View { #if os(iOS) - if #available(iOSApplicationExtension 11.0, *) { + if #available(iOS 11.0, *) { add("largeTitleColor") { (view: UINavigationBar, value: PropertyValue) in var attributes = view.largeTitleTextAttributes ?? [:] attributes[.foregroundColor] = value.value @@ -417,7 +417,7 @@ extension View { view.itemPositioning = value.value } - if #available(iOSApplicationExtension 10.0, *) { + if #available(iOS 10.0, *) { add("unselectedItemTintColor") { (view: UITabBar, value: PropertyValue) in view.unselectedItemTintColor = value.value } diff --git a/Stylist/Properties/ViewController.swift b/Stylist/Properties/ViewController.swift index a9ae51d..5110c6b 100644 --- a/Stylist/Properties/ViewController.swift +++ b/Stylist/Properties/ViewController.swift @@ -66,7 +66,7 @@ extension UIViewController { } #if os(iOS) - if #available(iOSApplicationExtension 11.0, *) { + if #available(iOS 11.0, *) { add("largeTitleDisplayMode") { (viewController: UIViewController, value: PropertyValue) in viewController.navigationItem.largeTitleDisplayMode = value.value diff --git a/Stylist/StyleValues/Color.swift b/Stylist/StyleValues/Color.swift index feeb39e..92cea16 100644 --- a/Stylist/StyleValues/Color.swift +++ b/Stylist/StyleValues/Color.swift @@ -32,7 +32,7 @@ extension Color: StyleValue { } // named color - if #available(iOSApplicationExtension 11.0, tvOSApplicationExtension 11.0, *), + if #available(iOS 11.0, tvOSApplicationExtension 11.0, *), let color = Color(named: colorString) { return color }