Skip to content

Commit

Permalink
Release 4.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaher committed Oct 1, 2017
1 parent e44cbe0 commit aacfcc8
Show file tree
Hide file tree
Showing 35 changed files with 192 additions and 165 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ All notable changes to this project will be documented in this file.
* Call `controlTextDidChange(…)` as an optional method. #1406
* Fixed issue with `NSControl.rx.value` regarding multiple observers. #1399

## [4.0.0-beta.1](https://github.com/ReactiveX/RxSwift/releases/tag/4.0.0-beta.1)

* Adds `attributedText` to `UITextField`. #1249
* Adds `attributedText` to `UITextView`. #1249
* Deprecates `shareReplayLatestWhileConnected` and `shareReplay` in favor of `share(replay:scope:)`. #1430
* Changes `publish`, `replay`, `replayAll` to clear state in case of sequence termination to be more consistent with other Rx implementations and enable retries. #1430
* Replaces `share` with default implementation of `share(replay:scope:)`. #1430
* Adds `HasDelegate` and `HasDataSource` protocols.
* Updates package version to v4 format. #1418

#### Anomalies

* Adds deprecated warnings to API parts that were missing it. #1427
* Improves memory handling in `isScheduleRequiredKey`. #1428
* Removes pre-release identifier from bundle version to enable `TestFlight` submissions. #1424
* Removes code coverage to enable `TestFlight` submissions. #1423
* Fixes Xcode warnings. #1421

## [4.0.0-beta.0](https://github.com/ReactiveX/RxSwift/releases/tag/4.0.0-beta.0)

* Adds `materialize()` operator for RxBlocking's `BlockingObservable`. #1383
Expand Down
4 changes: 2 additions & 2 deletions RxBlocking.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxBlocking"
s.version = "4.0.0-beta.0"
s.version = "4.0.0-beta.1"
s.summary = "RxSwift Blocking operatos"
s.description = <<-DESC
Set of blocking operators for RxSwift. These operators are mostly intended for unit/integration tests
Expand All @@ -25,5 +25,5 @@ Waiting for observable sequence to complete before exiting command line applicat
s.source_files = 'RxBlocking/**/*.swift', 'Platform/**/*.swift'
s.exclude_files = 'RxBlocking/Platform/**/*.swift'

s.dependency 'RxSwift', '~> 4.0.0-beta.0'
s.dependency 'RxSwift', '~> 4.0.0-beta.1'
end
4 changes: 2 additions & 2 deletions RxCocoa.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxCocoa"
s.version = "4.0.0-beta.0"
s.version = "4.0.0-beta.1"
s.summary = "RxSwift Cocoa extensions"
s.description = <<-DESC
* UI extensions
Expand All @@ -27,5 +27,5 @@ Pod::Spec.new do |s|
s.watchos.source_files = 'RxCocoa/iOS/**/*.swift'
s.tvos.source_files = 'RxCocoa/iOS/**/*.swift'

s.dependency 'RxSwift', '~> 4.0.0-beta.0'
s.dependency 'RxSwift', '~> 4.0.0-beta.1'
end
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ open class RxCollectionViewDataSourceProxy
/// Typed parent object.
public weak private(set) var collectionView: UICollectionView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.collectionView = parentObject
super.init(parentObject: parentObject, delegateProxy: RxCollectionViewDataSourceProxy.self)
/// - parameter collectionView: Parent object for delegate proxy.
public init(collectionView: ParentObject) {
self.collectionView = collectionView
super.init(parentObject: collectionView, delegateProxy: RxCollectionViewDataSourceProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxCollectionViewDataSourceProxy(parentObject: $0) }
self.register { RxCollectionViewDataSourceProxy(collectionView: $0) }
}

private weak var _requiredMethodsDataSource: UICollectionViewDataSource? = collectionViewDataSourceNotSet
Expand Down
8 changes: 4 additions & 4 deletions RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ open class RxCollectionViewDelegateProxy

/// Initializes `RxCollectionViewDelegateProxy`
///
/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: UICollectionView) {
self.collectionView = parentObject
super.init(parentObject: parentObject)
/// - parameter collectionView: Parent object for delegate proxy.
public init(collectionView: UICollectionView) {
self.collectionView = collectionView
super.init(scrollView: collectionView)
}
}

Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
/// Typed parent object.
public weak private(set) var navigationController: UINavigationController?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.navigationController = parentObject
super.init(parentObject: parentObject, delegateProxy: RxNavigationControllerDelegateProxy.self)
/// - parameter navigationController: Parent object for delegate proxy.
public init(navigationController: ParentObject) {
self.navigationController = navigationController
super.init(parentObject: navigationController, delegateProxy: RxNavigationControllerDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxNavigationControllerDelegateProxy(parentObject: $0) }
self.register { RxNavigationControllerDelegateProxy(navigationController: $0) }
}
}
#endif
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ public class RxPickerViewDataSourceProxy
/// Typed parent object.
public weak private(set) var pickerView: UIPickerView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.pickerView = parentObject
super.init(parentObject: parentObject, delegateProxy: RxPickerViewDataSourceProxy.self)
/// - parameter pickerView: Parent object for delegate proxy.
public init(pickerView: ParentObject) {
self.pickerView = pickerView
super.init(parentObject: pickerView, delegateProxy: RxPickerViewDataSourceProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxPickerViewDataSourceProxy(parentObject: $0) }
self.register { RxPickerViewDataSourceProxy(pickerView: $0) }
}

private weak var _requiredMethodsDataSource: UIPickerViewDataSource? = pickerViewDataSourceNotSet
Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
/// Typed parent object.
public weak private(set) var pickerView: UIPickerView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.pickerView = parentObject
super.init(parentObject: parentObject, delegateProxy: RxPickerViewDelegateProxy.self)
/// - parameter pickerView: Parent object for delegate proxy.
public init(pickerView: ParentObject) {
self.pickerView = pickerView
super.init(parentObject: pickerView, delegateProxy: RxPickerViewDelegateProxy.self)
}

// Register known implementationss
public static func registerKnownImplementations() {
self.register { RxPickerViewDelegateProxy(parentObject: $0) }
self.register { RxPickerViewDelegateProxy(pickerView: $0) }
}
}
#endif
16 changes: 8 additions & 8 deletions RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ open class RxScrollViewDelegateProxy
/// Typed parent object.
public weak private(set) var scrollView: UIScrollView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.scrollView = parentObject
super.init(parentObject: parentObject, delegateProxy: RxScrollViewDelegateProxy.self)
/// - parameter scrollView: Parent object for delegate proxy.
public init(scrollView: ParentObject) {
self.scrollView = scrollView
super.init(parentObject: scrollView, delegateProxy: RxScrollViewDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxScrollViewDelegateProxy(parentObject: $0) }
self.register { RxTableViewDelegateProxy(parentObject: $0) }
self.register { RxCollectionViewDelegateProxy(parentObject: $0) }
self.register { RxTextViewDelegateProxy(parentObject: $0) }
self.register { RxScrollViewDelegateProxy(scrollView: $0) }
self.register { RxTableViewDelegateProxy(tableView: $0) }
self.register { RxCollectionViewDelegateProxy(collectionView: $0) }
self.register { RxTextViewDelegateProxy(textView: $0) }
}

fileprivate var _contentOffsetBehaviorSubject: BehaviorSubject<CGPoint>?
Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ open class RxSearchBarDelegateProxy
/// Typed parent object.
public weak private(set) var searchBar: UISearchBar?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.searchBar = parentObject
super.init(parentObject: parentObject, delegateProxy: RxSearchBarDelegateProxy.self)
/// - parameter searchBar: Parent object for delegate proxy.
public init(searchBar: ParentObject) {
self.searchBar = searchBar
super.init(parentObject: searchBar, delegateProxy: RxSearchBarDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxSearchBarDelegateProxy(parentObject: $0) }
self.register { RxSearchBarDelegateProxy(searchBar: $0) }
}
}

Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ open class RxSearchControllerDelegateProxy
/// Typed parent object.
public weak private(set) var searchController: UISearchController?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.searchController = parentObject
super.init(parentObject: parentObject, delegateProxy: RxSearchControllerDelegateProxy.self)
/// - parameter searchController: Parent object for delegate proxy.
public init(searchController: UISearchController) {
self.searchController = searchController
super.init(parentObject: searchController, delegateProxy: RxSearchControllerDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxSearchControllerDelegateProxy(parentObject: $0) }
self.register { RxSearchControllerDelegateProxy(searchController: $0) }
}
}

Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ open class RxTabBarControllerDelegateProxy
/// Typed parent object.
public weak private(set) var tabBar: UITabBarController?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.tabBar = parentObject
super.init(parentObject: parentObject, delegateProxy: RxTabBarControllerDelegateProxy.self)
/// - parameter tabBar: Parent object for delegate proxy.
public init(tabBar: ParentObject) {
self.tabBar = tabBar
super.init(parentObject: tabBar, delegateProxy: RxTabBarControllerDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxTabBarControllerDelegateProxy(parentObject: $0) }
self.register { RxTabBarControllerDelegateProxy(tabBar: $0) }
}
}

Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ open class RxTabBarDelegateProxy
/// Typed parent object.
public weak private(set) var tabBar: UITabBar?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.tabBar = parentObject
super.init(parentObject: parentObject, delegateProxy: RxTabBarDelegateProxy.self)
/// - parameter tabBar: Parent object for delegate proxy.
public init(tabBar: ParentObject) {
self.tabBar = tabBar
super.init(parentObject: tabBar, delegateProxy: RxTabBarDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxTabBarDelegateProxy(parentObject: $0) }
self.register { RxTabBarDelegateProxy(tabBar: $0) }
}

/// For more information take a look at `DelegateProxyType`.
Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ open class RxTableViewDataSourceProxy
/// Typed parent object.
public weak private(set) var tableView: UITableView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: UITableView) {
self.tableView = parentObject
super.init(parentObject: parentObject, delegateProxy: RxTableViewDataSourceProxy.self)
/// - parameter tableView: Parent object for delegate proxy.
public init(tableView: UITableView) {
self.tableView = tableView
super.init(parentObject: tableView, delegateProxy: RxTableViewDataSourceProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxTableViewDataSourceProxy(parentObject: $0) }
self.register { RxTableViewDataSourceProxy(tableView: $0) }
}

fileprivate weak var _requiredMethodsDataSource: UITableViewDataSource? = tableViewDataSourceNotSet
Expand Down
8 changes: 4 additions & 4 deletions RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ open class RxTableViewDelegateProxy
/// Typed parent object.
public weak private(set) var tableView: UITableView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: UITableView) {
self.tableView = parentObject
super.init(parentObject: parentObject)
/// - parameter tableView: Parent object for delegate proxy.
public init(tableView: UITableView) {
self.tableView = tableView
super.init(scrollView: tableView)
}

}
Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
/// Typed parent object.
public weak private(set) var textStorage: NSTextStorage?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: NSTextStorage) {
self.textStorage = parentObject
super.init(parentObject: parentObject, delegateProxy: RxTextStorageDelegateProxy.self)
/// - parameter textStorage: Parent object for delegate proxy.
public init(textStorage: NSTextStorage) {
self.textStorage = textStorage
super.init(parentObject: textStorage, delegateProxy: RxTextStorageDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxTextStorageDelegateProxy(parentObject: $0) }
self.register { RxTextStorageDelegateProxy(textStorage: $0) }
}
}
#endif
8 changes: 4 additions & 4 deletions RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ open class RxTextViewDelegateProxy
/// Typed parent object.
public weak private(set) var textView: UITextView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: UITextView) {
self.textView = parentObject
super.init(parentObject: parentObject)
/// - parameter textview: Parent object for delegate proxy.
public init(textView: UITextView) {
self.textView = textView
super.init(scrollView: textView)
}

// MARK: delegate methods
Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/iOS/Proxies/RxWebViewDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ open class RxWebViewDelegateProxy
/// Typed parent object.
public weak private(set) var webView: UIWebView?

/// - parameter parentObject: Parent object for delegate proxy.
public init(parentObject: ParentObject) {
self.webView = parentObject
super.init(parentObject: parentObject, delegateProxy: RxWebViewDelegateProxy.self)
/// - parameter webView: Parent object for delegate proxy.
public init(webView: ParentObject) {
self.webView = webView
super.init(parentObject: webView, delegateProxy: RxWebViewDelegateProxy.self)
}

// Register known implementations
public static func registerKnownImplementations() {
self.register { RxWebViewDelegateProxy(parentObject: $0) }
self.register { RxWebViewDelegateProxy(webView: $0) }
}
}

Expand Down
10 changes: 5 additions & 5 deletions RxCocoa/macOS/NSTextField+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ open class RxTextFieldDelegateProxy

/// Initializes `RxTextFieldDelegateProxy`
///
/// - parameter parentObject: Parent object for delegate proxy.
init(parentObject: NSTextField) {
self.textField = parentObject
super.init(parentObject: parentObject, delegateProxy: RxTextFieldDelegateProxy.self)
/// - parameter textField: Parent object for delegate proxy.
init(textField: NSTextField) {
self.textField = textField
super.init(parentObject: textField, delegateProxy: RxTextFieldDelegateProxy.self)
}

public static func registerKnownImplementations() {
self.register { RxTextFieldDelegateProxy(parentObject: $0) }
self.register { RxTextFieldDelegateProxy(textField: $0) }
}

fileprivate let textSubject = PublishSubject<String?>()
Expand Down
6 changes: 3 additions & 3 deletions RxExample/Extensions/RxCLLocationManagerDelegateProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public class RxCLLocationManagerDelegateProxy
, DelegateProxyType
, CLLocationManagerDelegate {

public init(parentObject: CLLocationManager) {
super.init(parentObject: parentObject, delegateProxy: RxCLLocationManagerDelegateProxy.self)
public init(locationManager: CLLocationManager) {
super.init(parentObject: locationManager, delegateProxy: RxCLLocationManagerDelegateProxy.self)
}

public static func registerKnownImplementations() {
self.register { RxCLLocationManagerDelegateProxy(parentObject: $0) }
self.register { RxCLLocationManagerDelegateProxy(locationManager: $0) }
}

internal lazy var didUpdateLocationsSubject = PublishSubject<[CLLocation]>()
Expand Down
Loading

0 comments on commit aacfcc8

Please sign in to comment.