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

0 commit comments

Comments
 (0)