Skip to content

Commit

Permalink
fix podspec linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yonaskolb committed Jun 6, 2018
1 parent 87f55e7 commit e4c75f8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Stylist.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
};
Expand Down Expand Up @@ -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 = "";
Expand Down Expand Up @@ -1090,7 +1092,6 @@
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
};
Expand All @@ -1113,7 +1114,6 @@
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Release;
};
Expand Down Expand Up @@ -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;
};
Expand All @@ -1176,7 +1176,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
TVOS_DEPLOYMENT_TARGET = 9.1;
TVOS_DEPLOYMENT_TARGET = "";
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion Stylist/Properties/BarItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Color>) in
view.badgeColor = value.value

Expand Down
4 changes: 2 additions & 2 deletions Stylist/Properties/View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Color>) in
var attributes = view.largeTitleTextAttributes ?? [:]
attributes[.foregroundColor] = value.value
Expand Down Expand Up @@ -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<Color>) in
view.unselectedItemTintColor = value.value
}
Expand Down
2 changes: 1 addition & 1 deletion Stylist/Properties/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<UINavigationItem.LargeTitleDisplayMode>) in
viewController.navigationItem.largeTitleDisplayMode = value.value
Expand Down
2 changes: 1 addition & 1 deletion Stylist/StyleValues/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e4c75f8

Please sign in to comment.