Skip to content

Commit

Permalink
update podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-suzuki committed Sep 25, 2018
1 parent 6e09a8b commit a9de6ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
4.2
10 changes: 2 additions & 8 deletions MisterFusion.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = "MisterFusion"

s.version = "3.2.1"
s.version = "4.0.0"

s.summary = "MisterFusion makes more easier to use AutoLayout in Swift & Objective-C code."

Expand All @@ -22,14 +22,8 @@ Pod::Spec.new do |s|

s.ios.deployment_target = "8.0"
s.tvos.deployment_target = "10.0"
s.osx.deployment_target = "10.11"
s.requires_arc = true

s.source_files = 'MisterFusion/*.{swift}'
#s.resource_bundles = {
# 'MisterFusion' => ['Pod/Assets/*.png']
#}

# s.public_header_files = 'Pod/Classes/**/*.h'
s.frameworks = 'UIKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
8 changes: 4 additions & 4 deletions MisterFusion/MisterFusion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public typealias LayoutPriority = NSLayoutConstraint.Priority
public typealias UserInterfaceSizeClass = Void
#endif

#if swift(>=4.2)
public typealias Attribute = NSLayoutConstraint.Attribute
public typealias Relation = NSLayoutConstraint.Relation
#else
#if swift(>=4.2) || os(macOS)
public typealias Attribute = NSLayoutConstraint.Attribute
public typealias Relation = NSLayoutConstraint.Relation
#elseif os(iOS) || os(tvOS)
public typealias Attribute = NSLayoutAttribute
public typealias Relation = NSLayoutRelation
#endif

protocol _LayoutObject: class {
Expand Down
2 changes: 2 additions & 0 deletions MisterFusionTests/MisterFusionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2017年 marty-suzuki. All rights reserved.
//

#if os(iOS)
import XCTest
@testable import MisterFusion

Expand Down Expand Up @@ -246,3 +247,4 @@ class MisterFusionTests: XCTestCase {
XCTAssertEqual(constraint.priority, UILayoutPriority.required)
}
}
#endif

0 comments on commit a9de6ed

Please sign in to comment.