Skip to content

Commit aacfcc8

Browse files
committed
Release 4.0.0-beta.1
1 parent e44cbe0 commit aacfcc8

35 files changed

+192
-165
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ All notable changes to this project will be documented in this file.
1313
* Call `controlTextDidChange(…)` as an optional method. #1406
1414
* Fixed issue with `NSControl.rx.value` regarding multiple observers. #1399
1515

16+
## [4.0.0-beta.1](https://github.com/ReactiveX/RxSwift/releases/tag/4.0.0-beta.1)
17+
18+
* Adds `attributedText` to `UITextField`. #1249
19+
* Adds `attributedText` to `UITextView`. #1249
20+
* Deprecates `shareReplayLatestWhileConnected` and `shareReplay` in favor of `share(replay:scope:)`. #1430
21+
* Changes `publish`, `replay`, `replayAll` to clear state in case of sequence termination to be more consistent with other Rx implementations and enable retries. #1430
22+
* Replaces `share` with default implementation of `share(replay:scope:)`. #1430
23+
* Adds `HasDelegate` and `HasDataSource` protocols.
24+
* Updates package version to v4 format. #1418
25+
26+
#### Anomalies
27+
28+
* Adds deprecated warnings to API parts that were missing it. #1427
29+
* Improves memory handling in `isScheduleRequiredKey`. #1428
30+
* Removes pre-release identifier from bundle version to enable `TestFlight` submissions. #1424
31+
* Removes code coverage to enable `TestFlight` submissions. #1423
32+
* Fixes Xcode warnings. #1421
33+
1634
## [4.0.0-beta.0](https://github.com/ReactiveX/RxSwift/releases/tag/4.0.0-beta.0)
1735

1836
* Adds `materialize()` operator for RxBlocking's `BlockingObservable`. #1383

RxBlocking.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "RxBlocking"
3-
s.version = "4.0.0-beta.0"
3+
s.version = "4.0.0-beta.1"
44
s.summary = "RxSwift Blocking operatos"
55
s.description = <<-DESC
66
Set of blocking operators for RxSwift. These operators are mostly intended for unit/integration tests
@@ -25,5 +25,5 @@ Waiting for observable sequence to complete before exiting command line applicat
2525
s.source_files = 'RxBlocking/**/*.swift', 'Platform/**/*.swift'
2626
s.exclude_files = 'RxBlocking/Platform/**/*.swift'
2727

28-
s.dependency 'RxSwift', '~> 4.0.0-beta.0'
28+
s.dependency 'RxSwift', '~> 4.0.0-beta.1'
2929
end

RxCocoa.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "RxCocoa"
3-
s.version = "4.0.0-beta.0"
3+
s.version = "4.0.0-beta.1"
44
s.summary = "RxSwift Cocoa extensions"
55
s.description = <<-DESC
66
* UI extensions
@@ -27,5 +27,5 @@ Pod::Spec.new do |s|
2727
s.watchos.source_files = 'RxCocoa/iOS/**/*.swift'
2828
s.tvos.source_files = 'RxCocoa/iOS/**/*.swift'
2929

30-
s.dependency 'RxSwift', '~> 4.0.0-beta.0'
30+
s.dependency 'RxSwift', '~> 4.0.0-beta.1'
3131
end

RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ open class RxCollectionViewDataSourceProxy
4444
/// Typed parent object.
4545
public weak private(set) var collectionView: UICollectionView?
4646

47-
/// - parameter parentObject: Parent object for delegate proxy.
48-
public init(parentObject: ParentObject) {
49-
self.collectionView = parentObject
50-
super.init(parentObject: parentObject, delegateProxy: RxCollectionViewDataSourceProxy.self)
47+
/// - parameter collectionView: Parent object for delegate proxy.
48+
public init(collectionView: ParentObject) {
49+
self.collectionView = collectionView
50+
super.init(parentObject: collectionView, delegateProxy: RxCollectionViewDataSourceProxy.self)
5151
}
5252

5353
// Register known implementations
5454
public static func registerKnownImplementations() {
55-
self.register { RxCollectionViewDataSourceProxy(parentObject: $0) }
55+
self.register { RxCollectionViewDataSourceProxy(collectionView: $0) }
5656
}
5757

5858
private weak var _requiredMethodsDataSource: UICollectionViewDataSource? = collectionViewDataSourceNotSet

RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ open class RxCollectionViewDelegateProxy
2424

2525
/// Initializes `RxCollectionViewDelegateProxy`
2626
///
27-
/// - parameter parentObject: Parent object for delegate proxy.
28-
public init(parentObject: UICollectionView) {
29-
self.collectionView = parentObject
30-
super.init(parentObject: parentObject)
27+
/// - parameter collectionView: Parent object for delegate proxy.
28+
public init(collectionView: UICollectionView) {
29+
self.collectionView = collectionView
30+
super.init(scrollView: collectionView)
3131
}
3232
}
3333

RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
/// Typed parent object.
2727
public weak private(set) var navigationController: UINavigationController?
2828

29-
/// - parameter parentObject: Parent object for delegate proxy.
30-
public init(parentObject: ParentObject) {
31-
self.navigationController = parentObject
32-
super.init(parentObject: parentObject, delegateProxy: RxNavigationControllerDelegateProxy.self)
29+
/// - parameter navigationController: Parent object for delegate proxy.
30+
public init(navigationController: ParentObject) {
31+
self.navigationController = navigationController
32+
super.init(parentObject: navigationController, delegateProxy: RxNavigationControllerDelegateProxy.self)
3333
}
3434

3535
// Register known implementations
3636
public static func registerKnownImplementations() {
37-
self.register { RxNavigationControllerDelegateProxy(parentObject: $0) }
37+
self.register { RxNavigationControllerDelegateProxy(navigationController: $0) }
3838
}
3939
}
4040
#endif

RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public class RxPickerViewDataSourceProxy
3838
/// Typed parent object.
3939
public weak private(set) var pickerView: UIPickerView?
4040

41-
/// - parameter parentObject: Parent object for delegate proxy.
42-
public init(parentObject: ParentObject) {
43-
self.pickerView = parentObject
44-
super.init(parentObject: parentObject, delegateProxy: RxPickerViewDataSourceProxy.self)
41+
/// - parameter pickerView: Parent object for delegate proxy.
42+
public init(pickerView: ParentObject) {
43+
self.pickerView = pickerView
44+
super.init(parentObject: pickerView, delegateProxy: RxPickerViewDataSourceProxy.self)
4545
}
4646

4747
// Register known implementations
4848
public static func registerKnownImplementations() {
49-
self.register { RxPickerViewDataSourceProxy(parentObject: $0) }
49+
self.register { RxPickerViewDataSourceProxy(pickerView: $0) }
5050
}
5151

5252
private weak var _requiredMethodsDataSource: UIPickerViewDataSource? = pickerViewDataSourceNotSet

RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
/// Typed parent object.
2626
public weak private(set) var pickerView: UIPickerView?
2727

28-
/// - parameter parentObject: Parent object for delegate proxy.
29-
public init(parentObject: ParentObject) {
30-
self.pickerView = parentObject
31-
super.init(parentObject: parentObject, delegateProxy: RxPickerViewDelegateProxy.self)
28+
/// - parameter pickerView: Parent object for delegate proxy.
29+
public init(pickerView: ParentObject) {
30+
self.pickerView = pickerView
31+
super.init(parentObject: pickerView, delegateProxy: RxPickerViewDelegateProxy.self)
3232
}
3333

3434
// Register known implementationss
3535
public static func registerKnownImplementations() {
36-
self.register { RxPickerViewDelegateProxy(parentObject: $0) }
36+
self.register { RxPickerViewDelegateProxy(pickerView: $0) }
3737
}
3838
}
3939
#endif

RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ open class RxScrollViewDelegateProxy
2626
/// Typed parent object.
2727
public weak private(set) var scrollView: UIScrollView?
2828

29-
/// - parameter parentObject: Parent object for delegate proxy.
30-
public init(parentObject: ParentObject) {
31-
self.scrollView = parentObject
32-
super.init(parentObject: parentObject, delegateProxy: RxScrollViewDelegateProxy.self)
29+
/// - parameter scrollView: Parent object for delegate proxy.
30+
public init(scrollView: ParentObject) {
31+
self.scrollView = scrollView
32+
super.init(parentObject: scrollView, delegateProxy: RxScrollViewDelegateProxy.self)
3333
}
3434

3535
// Register known implementations
3636
public static func registerKnownImplementations() {
37-
self.register { RxScrollViewDelegateProxy(parentObject: $0) }
38-
self.register { RxTableViewDelegateProxy(parentObject: $0) }
39-
self.register { RxCollectionViewDelegateProxy(parentObject: $0) }
40-
self.register { RxTextViewDelegateProxy(parentObject: $0) }
37+
self.register { RxScrollViewDelegateProxy(scrollView: $0) }
38+
self.register { RxTableViewDelegateProxy(tableView: $0) }
39+
self.register { RxCollectionViewDelegateProxy(collectionView: $0) }
40+
self.register { RxTextViewDelegateProxy(textView: $0) }
4141
}
4242

4343
fileprivate var _contentOffsetBehaviorSubject: BehaviorSubject<CGPoint>?

RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ open class RxSearchBarDelegateProxy
2626
/// Typed parent object.
2727
public weak private(set) var searchBar: UISearchBar?
2828

29-
/// - parameter parentObject: Parent object for delegate proxy.
30-
public init(parentObject: ParentObject) {
31-
self.searchBar = parentObject
32-
super.init(parentObject: parentObject, delegateProxy: RxSearchBarDelegateProxy.self)
29+
/// - parameter searchBar: Parent object for delegate proxy.
30+
public init(searchBar: ParentObject) {
31+
self.searchBar = searchBar
32+
super.init(parentObject: searchBar, delegateProxy: RxSearchBarDelegateProxy.self)
3333
}
3434

3535
// Register known implementations
3636
public static func registerKnownImplementations() {
37-
self.register { RxSearchBarDelegateProxy(parentObject: $0) }
37+
self.register { RxSearchBarDelegateProxy(searchBar: $0) }
3838
}
3939
}
4040

RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ open class RxSearchControllerDelegateProxy
2727
/// Typed parent object.
2828
public weak private(set) var searchController: UISearchController?
2929

30-
/// - parameter parentObject: Parent object for delegate proxy.
31-
public init(parentObject: ParentObject) {
32-
self.searchController = parentObject
33-
super.init(parentObject: parentObject, delegateProxy: RxSearchControllerDelegateProxy.self)
30+
/// - parameter searchController: Parent object for delegate proxy.
31+
public init(searchController: UISearchController) {
32+
self.searchController = searchController
33+
super.init(parentObject: searchController, delegateProxy: RxSearchControllerDelegateProxy.self)
3434
}
3535

3636
// Register known implementations
3737
public static func registerKnownImplementations() {
38-
self.register { RxSearchControllerDelegateProxy(parentObject: $0) }
38+
self.register { RxSearchControllerDelegateProxy(searchController: $0) }
3939
}
4040
}
4141

RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ open class RxTabBarControllerDelegateProxy
2626
/// Typed parent object.
2727
public weak private(set) var tabBar: UITabBarController?
2828

29-
/// - parameter parentObject: Parent object for delegate proxy.
30-
public init(parentObject: ParentObject) {
31-
self.tabBar = parentObject
32-
super.init(parentObject: parentObject, delegateProxy: RxTabBarControllerDelegateProxy.self)
29+
/// - parameter tabBar: Parent object for delegate proxy.
30+
public init(tabBar: ParentObject) {
31+
self.tabBar = tabBar
32+
super.init(parentObject: tabBar, delegateProxy: RxTabBarControllerDelegateProxy.self)
3333
}
3434

3535
// Register known implementations
3636
public static func registerKnownImplementations() {
37-
self.register { RxTabBarControllerDelegateProxy(parentObject: $0) }
37+
self.register { RxTabBarControllerDelegateProxy(tabBar: $0) }
3838
}
3939
}
4040

RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ open class RxTabBarDelegateProxy
2626
/// Typed parent object.
2727
public weak private(set) var tabBar: UITabBar?
2828

29-
/// - parameter parentObject: Parent object for delegate proxy.
30-
public init(parentObject: ParentObject) {
31-
self.tabBar = parentObject
32-
super.init(parentObject: parentObject, delegateProxy: RxTabBarDelegateProxy.self)
29+
/// - parameter tabBar: Parent object for delegate proxy.
30+
public init(tabBar: ParentObject) {
31+
self.tabBar = tabBar
32+
super.init(parentObject: tabBar, delegateProxy: RxTabBarDelegateProxy.self)
3333
}
3434

3535
// Register known implementations
3636
public static func registerKnownImplementations() {
37-
self.register { RxTabBarDelegateProxy(parentObject: $0) }
37+
self.register { RxTabBarDelegateProxy(tabBar: $0) }
3838
}
3939

4040
/// For more information take a look at `DelegateProxyType`.

RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ open class RxTableViewDataSourceProxy
4141
/// Typed parent object.
4242
public weak private(set) var tableView: UITableView?
4343

44-
/// - parameter parentObject: Parent object for delegate proxy.
45-
public init(parentObject: UITableView) {
46-
self.tableView = parentObject
47-
super.init(parentObject: parentObject, delegateProxy: RxTableViewDataSourceProxy.self)
44+
/// - parameter tableView: Parent object for delegate proxy.
45+
public init(tableView: UITableView) {
46+
self.tableView = tableView
47+
super.init(parentObject: tableView, delegateProxy: RxTableViewDataSourceProxy.self)
4848
}
4949

5050
// Register known implementations
5151
public static func registerKnownImplementations() {
52-
self.register { RxTableViewDataSourceProxy(parentObject: $0) }
52+
self.register { RxTableViewDataSourceProxy(tableView: $0) }
5353
}
5454

5555
fileprivate weak var _requiredMethodsDataSource: UITableViewDataSource? = tableViewDataSourceNotSet

RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ open class RxTableViewDelegateProxy
2121
/// Typed parent object.
2222
public weak private(set) var tableView: UITableView?
2323

24-
/// - parameter parentObject: Parent object for delegate proxy.
25-
public init(parentObject: UITableView) {
26-
self.tableView = parentObject
27-
super.init(parentObject: parentObject)
24+
/// - parameter tableView: Parent object for delegate proxy.
25+
public init(tableView: UITableView) {
26+
self.tableView = tableView
27+
super.init(scrollView: tableView)
2828
}
2929

3030
}

RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
/// Typed parent object.
2626
public weak private(set) var textStorage: NSTextStorage?
2727

28-
/// - parameter parentObject: Parent object for delegate proxy.
29-
public init(parentObject: NSTextStorage) {
30-
self.textStorage = parentObject
31-
super.init(parentObject: parentObject, delegateProxy: RxTextStorageDelegateProxy.self)
28+
/// - parameter textStorage: Parent object for delegate proxy.
29+
public init(textStorage: NSTextStorage) {
30+
self.textStorage = textStorage
31+
super.init(parentObject: textStorage, delegateProxy: RxTextStorageDelegateProxy.self)
3232
}
3333

3434
// Register known implementations
3535
public static func registerKnownImplementations() {
36-
self.register { RxTextStorageDelegateProxy(parentObject: $0) }
36+
self.register { RxTextStorageDelegateProxy(textStorage: $0) }
3737
}
3838
}
3939
#endif

RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ open class RxTextViewDelegateProxy
2121
/// Typed parent object.
2222
public weak private(set) var textView: UITextView?
2323

24-
/// - parameter parentObject: Parent object for delegate proxy.
25-
public init(parentObject: UITextView) {
26-
self.textView = parentObject
27-
super.init(parentObject: parentObject)
24+
/// - parameter textview: Parent object for delegate proxy.
25+
public init(textView: UITextView) {
26+
self.textView = textView
27+
super.init(scrollView: textView)
2828
}
2929

3030
// MARK: delegate methods

RxCocoa/iOS/Proxies/RxWebViewDelegateProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ open class RxWebViewDelegateProxy
2525
/// Typed parent object.
2626
public weak private(set) var webView: UIWebView?
2727

28-
/// - parameter parentObject: Parent object for delegate proxy.
29-
public init(parentObject: ParentObject) {
30-
self.webView = parentObject
31-
super.init(parentObject: parentObject, delegateProxy: RxWebViewDelegateProxy.self)
28+
/// - parameter webView: Parent object for delegate proxy.
29+
public init(webView: ParentObject) {
30+
self.webView = webView
31+
super.init(parentObject: webView, delegateProxy: RxWebViewDelegateProxy.self)
3232
}
3333

3434
// Register known implementations
3535
public static func registerKnownImplementations() {
36-
self.register { RxWebViewDelegateProxy(parentObject: $0) }
36+
self.register { RxWebViewDelegateProxy(webView: $0) }
3737
}
3838
}
3939

RxCocoa/macOS/NSTextField+Rx.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ open class RxTextFieldDelegateProxy
2626

2727
/// Initializes `RxTextFieldDelegateProxy`
2828
///
29-
/// - parameter parentObject: Parent object for delegate proxy.
30-
init(parentObject: NSTextField) {
31-
self.textField = parentObject
32-
super.init(parentObject: parentObject, delegateProxy: RxTextFieldDelegateProxy.self)
29+
/// - parameter textField: Parent object for delegate proxy.
30+
init(textField: NSTextField) {
31+
self.textField = textField
32+
super.init(parentObject: textField, delegateProxy: RxTextFieldDelegateProxy.self)
3333
}
3434

3535
public static func registerKnownImplementations() {
36-
self.register { RxTextFieldDelegateProxy(parentObject: $0) }
36+
self.register { RxTextFieldDelegateProxy(textField: $0) }
3737
}
3838

3939
fileprivate let textSubject = PublishSubject<String?>()

RxExample/Extensions/RxCLLocationManagerDelegateProxy.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public class RxCLLocationManagerDelegateProxy
2121
, DelegateProxyType
2222
, CLLocationManagerDelegate {
2323

24-
public init(parentObject: CLLocationManager) {
25-
super.init(parentObject: parentObject, delegateProxy: RxCLLocationManagerDelegateProxy.self)
24+
public init(locationManager: CLLocationManager) {
25+
super.init(parentObject: locationManager, delegateProxy: RxCLLocationManagerDelegateProxy.self)
2626
}
2727

2828
public static func registerKnownImplementations() {
29-
self.register { RxCLLocationManagerDelegateProxy(parentObject: $0) }
29+
self.register { RxCLLocationManagerDelegateProxy(locationManager: $0) }
3030
}
3131

3232
internal lazy var didUpdateLocationsSubject = PublishSubject<[CLLocation]>()

0 commit comments

Comments
 (0)