Skip to content

Commit

Permalink
CocoaPod compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Schoenig committed Jul 15, 2018
1 parent 0bc7591 commit 29f32b6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 21 deletions.
2 changes: 2 additions & 0 deletions TripKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Pod::Spec.new do |s|
# s.source = { path: "." }
# s.source = { git: "." }
s.source = { git: "https://github.com/skedgo/tripkit-ios.git", tag: "v#{s.version}" }
s.swift_version = '4.0'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.12'
s.requires_arc = true
Expand All @@ -22,6 +23,7 @@ Pod::Spec.new do |s|
s.dependency 'RxCocoa', '~> 4.0.0'

s.source_files = [
"TripKit/TripKit.h",
"TripKit/Classes/**/*.{h,m,swift}",
"TripKit/AddOns/Share/**/*"
]
Expand Down
14 changes: 0 additions & 14 deletions TripKit/Classes/TripKit.h

This file was deleted.

8 changes: 4 additions & 4 deletions TripKit/Classes/core/Search/SGAutocompletionDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension SGAutocompletionDataSource {
}

@objc(prepareForNewSearchForMapRect:)
func prepareForNewSearch(for mapRect: MKMapRect) {
public func prepareForNewSearch(for mapRect: MKMapRect) {
storage.disposeBag = DisposeBag()

// When the input is changing, update the results
Expand Down Expand Up @@ -86,18 +86,18 @@ extension SGAutocompletionDataSource {
}

@objc
var startedTyping: Bool {
public var startedTyping: Bool {
return !storage.inputText.value.isEmpty
}

@objc
var autocompletionResults: [SGAutocompletionResult] {
public var autocompletionResults: [SGAutocompletionResult] {
return storage.results.value
}

#if os(iOS) || os(tvOS)
@objc(additionalActionsForPresenter:)
func additionalActions(for presenter: UIViewController) -> [String] {
public func additionalActions(for presenter: UIViewController) -> [String] {
return providers.compactMap { $0.additionalAction(for: presenter)?.0 }
}
#endif
Expand Down
1 change: 1 addition & 0 deletions TripKitBookings.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Pod::Spec.new do |s|
# s.source = { path: "." }
# s.source = { git: "." }
s.source = { git: "https://github.com/skedgo/tripkit-ios.git", tag: "v#{s.version}" }
s.swift_version = '4.0'
s.ios.deployment_target = '9.0'
s.requires_arc = true

Expand Down
2 changes: 1 addition & 1 deletion TripKitInterApp.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
# s.source = { path: "." }
# s.source = { git: "." }
s.source = { git: "https://github.com/skedgo/tripkit-ios.git", tag: "v#{s.version}" }

s.swift_version = '4.0'
s.ios.deployment_target = '9.0'
s.requires_arc = true

Expand Down
2 changes: 2 additions & 0 deletions TripKitUI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Pod::Spec.new do |s|
# s.source = { path: "." }
# s.source = { git: "." }
s.source = { git: "https://github.com/skedgo/tripkit-ios.git", tag: "v#{s.version}" }
s.swift_version = '4.0'
s.ios.deployment_target = '9.0'
s.requires_arc = true

Expand All @@ -24,6 +25,7 @@ Pod::Spec.new do |s|
s.dependency 'Kingfisher'
s.dependency 'RxSwift', '~> 4.0.0'
s.dependency 'RxCocoa', '~> 4.0.0'
s.dependency 'RxDataSources', '~> 3.0.0'

s.source_files = [
"TripKitUI-iOS/*.h",
Expand Down
4 changes: 2 additions & 2 deletions TripKitUI/views/TKAlertInfoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class TKAlertInfoView: UIView {
@objc public func showTitleOnly(maxY: CGFloat) {
guard superview != nil, isShowingFullContent else { return }
let bottomPadding: CGFloat
if #available(iOSApplicationExtension 11.0, *) {
if #available(iOS 11.0, *) {
bottomPadding = safeAreaInsets.bottom
} else {
bottomPadding = 0
Expand All @@ -81,7 +81,7 @@ public class TKAlertInfoView: UIView {
guard superview != nil, !isShowingFullContent else { return }

let bottomPadding: CGFloat
if #available(iOSApplicationExtension 11.0, *) {
if #available(iOS 11.0, *) {
bottomPadding = safeAreaInsets.bottom
} else {
bottomPadding = 0
Expand Down

0 comments on commit 29f32b6

Please sign in to comment.