Skip to content

Commit

Permalink
Cocoapods build support
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Sharanda committed Apr 2, 2019
1 parent 0544ed6 commit 91cb67c
Show file tree
Hide file tree
Showing 22 changed files with 176 additions and 16 deletions.
14 changes: 9 additions & 5 deletions Jetpack.podspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Pod::Spec.new do |s|
s.name = "Jetpack"
s.version = "4.1.1"
s.version = "4.1.2"
s.summary = "Light and bright functional reactive framework"
s.description = <<-DESC
Minimalistic implementation of rx primitives
Minimalistic implementation of rx primitives. Basically observer pattern implementations which helps to easily organize interaction of different components.
DESC
s.homepage = "https://github.com/psharanda/Jetpack"
s.license = { :type => "MIT", :file => "LICENSE" }
Expand All @@ -13,7 +13,11 @@ Pod::Spec.new do |s|
s.osx.deployment_target = "10.10"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
s.source = { :git => "https://github.com/psharanda/Jetpack.git", :tag => s.version.to_s }
s.source_files = "Sources/**/*"
s.frameworks = "Foundation"
s.swift_version = "4.0"
s.source = { :git => "https://github.com/psharanda/Jetpack.git", :tag => s.version.to_s }
s.source_files = "Sources/**/*"
s.ios.frameworks = 'UIKit', 'Foundation'
s.osx.frameworks = 'AppKit', 'Foundation'
s.watchos.frameworks = 'UIKit', 'Foundation'
s.tvos.frameworks = 'UIKit', 'Foundation'
end
104 changes: 94 additions & 10 deletions Jetpack.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Sources/UIKit/CADisplayLink+Task.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import Foundation
import QuartzCore

Expand Down Expand Up @@ -67,3 +69,4 @@ private class DisplayLinkTask {
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UIActivityIndicatorView.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UIActivityIndicatorView {
Expand All @@ -6,3 +8,5 @@ extension JetpackExtensions where Base: UIActivityIndicatorView {
return jx_makeConsumer { $1 ? $0.startAnimating() : $0.stopAnimating() }
}
}

#endif
3 changes: 3 additions & 0 deletions Sources/UIKit/UIBarButtonItem.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UIBarButtonItem {
Expand Down Expand Up @@ -37,3 +39,4 @@ extension UIBarButtonItem {

}

#endif
6 changes: 6 additions & 0 deletions Sources/UIKit/UIBarItem.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UIBarItem {
Expand All @@ -14,3 +16,7 @@ extension JetpackExtensions where Base: UIBarItem {
return jx_makeConsumer { $0.title = $1 }
}
}

#endif


4 changes: 4 additions & 0 deletions Sources/UIKit/UIButton.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UIButton {
Expand Down Expand Up @@ -39,3 +41,5 @@ extension JetpackExtensions where Base: UIButton {
}

}

#endif
4 changes: 3 additions & 1 deletion Sources/UIKit/UIControl.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

#if swift(>=4.2)
Expand Down Expand Up @@ -45,4 +47,4 @@ extension JetpackExtensions where Base: UIControl {
}
}


#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UIGestureRecognizer.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit


Expand All @@ -13,3 +15,5 @@ extension JetpackExtensions where Base: UIGestureRecognizer {
})
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UIImageView.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UIImageView {
Expand All @@ -10,3 +12,5 @@ extension JetpackExtensions where Base: UIImageView {
return jx_makeConsumer { $0.highlightedImage = $1 }
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UILabel.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UILabel {
Expand All @@ -10,3 +12,5 @@ extension JetpackExtensions where Base: UILabel {
return jx_makeConsumer { $0.attributedText = $1 }
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UIProgressView.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UIProgressView {
Expand All @@ -6,3 +8,5 @@ extension JetpackExtensions where Base: UIProgressView {
return jx_makeConsumer { $0.progress = $1 }
}
}

#endif
3 changes: 3 additions & 0 deletions Sources/UIKit/UIRefreshControl.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS)

import UIKit

extension JetpackExtensions where Base: UIRefreshControl {
Expand All @@ -15,3 +17,4 @@ extension JetpackExtensions where Base: UIRefreshControl {
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UISegmentedControl.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UISegmentedControl {
Expand All @@ -10,3 +12,5 @@ extension JetpackExtensions where Base: UISegmentedControl {
return propertyControlEvents(.valueChanged) { $0.selectedSegmentIndex }
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UISlider.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS)

import UIKit

extension JetpackExtensions where Base: UISlider {
Expand All @@ -10,3 +12,5 @@ extension JetpackExtensions where Base: UISlider {
return propertyControlEvents(.valueChanged) { $0.value }
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UIStepper.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS)

import UIKit

extension JetpackExtensions where Base: UIStepper {
Expand All @@ -10,3 +12,5 @@ extension JetpackExtensions where Base: UIStepper {
return propertyControlEvents(.valueChanged) { $0.value }
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UISwitch.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS)

import UIKit

extension JetpackExtensions where Base: UISwitch {
Expand All @@ -10,3 +12,5 @@ extension JetpackExtensions where Base: UISwitch {
return propertyControlEvents(.valueChanged) { $0.isOn }
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UITextField.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UITextField {
Expand All @@ -19,3 +21,5 @@ extension JetpackExtensions where Base: UITextField {
}

}

#endif
3 changes: 3 additions & 0 deletions Sources/UIKit/UITextView.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit


Expand Down Expand Up @@ -28,3 +30,4 @@ extension JetpackExtensions where Base: UITextView {
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UIView.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

extension JetpackExtensions where Base: UIView {
Expand All @@ -18,3 +20,5 @@ extension JetpackExtensions where Base: UIView {
return jx_makeConsumer { $0.isUserInteractionEnabled = $1 }
}
}

#endif
4 changes: 4 additions & 0 deletions Sources/UIKit/UIViewAnimation.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if os(iOS) || os(tvOS)

import UIKit

#if swift(>=4.2)
Expand Down Expand Up @@ -121,3 +123,5 @@ extension JetpackExtensions where Base: UIView {
}
}
}

#endif
File renamed without changes.

0 comments on commit 91cb67c

Please sign in to comment.