Skip to content

Commit 8508464

Browse files
committed
Merge branch 'fix/canEditRowAtIndexPath' of git://github.com/serluca/RxDataSources into serluca-fix/canEditRowAtIndexPath
2 parents a670625 + 63d0fbf commit 8508464

File tree

4 files changed

+23
-39
lines changed

4 files changed

+23
-39
lines changed

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "ReactiveX/RxSwift" "2.4"
1+
github "ReactiveX/RxSwift" "2.5.0"

Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
PODS:
2-
- RxCocoa (2.4):
3-
- RxSwift (~> 2.4)
4-
- RxSwift (2.4)
2+
- RxCocoa (2.5.0):
3+
- RxSwift (~> 2.5)
4+
- RxSwift (2.5.0)
55

66
DEPENDENCIES:
77
- RxCocoa (~> 2.4)
88
- RxSwift (~> 2.4)
99

1010
SPEC CHECKSUMS:
11-
RxCocoa: 7d6cd877de99f5640306b3d6cf87f580c1d91b61
12-
RxSwift: 67b9ef4e8b34fb394e200e754c6a09cc16559f94
11+
RxCocoa: e1b1562e57a554d0fb2aabf9d71b637f177257c7
12+
RxSwift: 402b41a50e922a0368fc14cb3bc9f4427920e8ae
1313

1414
PODFILE CHECKSUM: 2bee9e71ef9f4d55178dc0c062c7349d481a71f5
1515

16-
COCOAPODS: 1.0.0.rc.2
16+
COCOAPODS: 1.0.1

RxDataSources.xcodeproj/project.pbxproj

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,13 @@
539539
isa = PBXNativeTarget;
540540
buildConfigurationList = C8984CAA1C36B6FA001E4272 /* Build configuration list for PBXNativeTarget "Example" */;
541541
buildPhases = (
542-
CE301EF235F2B45D0C3E30B9 /* 📦 Check Pods Manifest.lock */,
542+
CE301EF235F2B45D0C3E30B9 /* [CP] Check Pods Manifest.lock */,
543543
C8984C971C36B6FA001E4272 /* Sources */,
544544
C8984C981C36B6FA001E4272 /* Frameworks */,
545545
C8984C991C36B6FA001E4272 /* Resources */,
546546
C8EC65CA1C4C441B00FC9207 /* Embed Frameworks */,
547-
5D41B451D84BA67C35C4AC67 /* 📦 Embed Pods Frameworks */,
548-
FF90FC9979157345588A89F5 /* 📦 Copy Pods Resources */,
547+
5D41B451D84BA67C35C4AC67 /* [CP] Embed Pods Frameworks */,
548+
FF90FC9979157345588A89F5 /* [CP] Copy Pods Resources */,
549549
);
550550
buildRules = (
551551
);
@@ -598,12 +598,12 @@
598598
isa = PBXNativeTarget;
599599
buildConfigurationList = C8BB767E1C4C3E53002B21C8 /* Build configuration list for PBXNativeTarget "RxDataSources" */;
600600
buildPhases = (
601-
C6F25DB535B519D2FD763EC9 /* 📦 Check Pods Manifest.lock */,
601+
C6F25DB535B519D2FD763EC9 /* [CP] Check Pods Manifest.lock */,
602602
C8BB765F1C4C3E53002B21C8 /* Sources */,
603603
C8BB76761C4C3E53002B21C8 /* Frameworks */,
604604
C8BB767A1C4C3E53002B21C8 /* Headers */,
605605
C8BB767C1C4C3E53002B21C8 /* Resources */,
606-
07272154CEBF20D8EC983364 /* 📦 Copy Pods Resources */,
606+
07272154CEBF20D8EC983364 /* [CP] Copy Pods Resources */,
607607
);
608608
buildRules = (
609609
);
@@ -714,74 +714,74 @@
714714
/* End PBXResourcesBuildPhase section */
715715

716716
/* Begin PBXShellScriptBuildPhase section */
717-
07272154CEBF20D8EC983364 /* 📦 Copy Pods Resources */ = {
717+
07272154CEBF20D8EC983364 /* [CP] Copy Pods Resources */ = {
718718
isa = PBXShellScriptBuildPhase;
719719
buildActionMask = 2147483647;
720720
files = (
721721
);
722722
inputPaths = (
723723
);
724-
name = "📦 Copy Pods Resources";
724+
name = "[CP] Copy Pods Resources";
725725
outputPaths = (
726726
);
727727
runOnlyForDeploymentPostprocessing = 0;
728728
shellPath = /bin/sh;
729729
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RxDataSources/Pods-RxDataSources-resources.sh\"\n";
730730
showEnvVarsInLog = 0;
731731
};
732-
5D41B451D84BA67C35C4AC67 /* 📦 Embed Pods Frameworks */ = {
732+
5D41B451D84BA67C35C4AC67 /* [CP] Embed Pods Frameworks */ = {
733733
isa = PBXShellScriptBuildPhase;
734734
buildActionMask = 2147483647;
735735
files = (
736736
);
737737
inputPaths = (
738738
);
739-
name = "📦 Embed Pods Frameworks";
739+
name = "[CP] Embed Pods Frameworks";
740740
outputPaths = (
741741
);
742742
runOnlyForDeploymentPostprocessing = 0;
743743
shellPath = /bin/sh;
744744
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n";
745745
showEnvVarsInLog = 0;
746746
};
747-
C6F25DB535B519D2FD763EC9 /* 📦 Check Pods Manifest.lock */ = {
747+
C6F25DB535B519D2FD763EC9 /* [CP] Check Pods Manifest.lock */ = {
748748
isa = PBXShellScriptBuildPhase;
749749
buildActionMask = 2147483647;
750750
files = (
751751
);
752752
inputPaths = (
753753
);
754-
name = "📦 Check Pods Manifest.lock";
754+
name = "[CP] Check Pods Manifest.lock";
755755
outputPaths = (
756756
);
757757
runOnlyForDeploymentPostprocessing = 0;
758758
shellPath = /bin/sh;
759759
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
760760
showEnvVarsInLog = 0;
761761
};
762-
CE301EF235F2B45D0C3E30B9 /* 📦 Check Pods Manifest.lock */ = {
762+
CE301EF235F2B45D0C3E30B9 /* [CP] Check Pods Manifest.lock */ = {
763763
isa = PBXShellScriptBuildPhase;
764764
buildActionMask = 2147483647;
765765
files = (
766766
);
767767
inputPaths = (
768768
);
769-
name = "📦 Check Pods Manifest.lock";
769+
name = "[CP] Check Pods Manifest.lock";
770770
outputPaths = (
771771
);
772772
runOnlyForDeploymentPostprocessing = 0;
773773
shellPath = /bin/sh;
774774
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
775775
showEnvVarsInLog = 0;
776776
};
777-
FF90FC9979157345588A89F5 /* 📦 Copy Pods Resources */ = {
777+
FF90FC9979157345588A89F5 /* [CP] Copy Pods Resources */ = {
778778
isa = PBXShellScriptBuildPhase;
779779
buildActionMask = 2147483647;
780780
files = (
781781
);
782782
inputPaths = (
783783
);
784-
name = "📦 Copy Pods Resources";
784+
name = "[CP] Copy Pods Resources";
785785
outputPaths = (
786786
);
787787
runOnlyForDeploymentPostprocessing = 0;

Sources/DataSources/TableViewSectionedDataSource.swift

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@ public class _TableViewSectionedDataSource
5757
return _rx_tableView(tableView, titleForFooterInSection: section)
5858
}
5959

60-
public var canEditRowAtIndexPathImplemented: Bool {
61-
return false
62-
}
63-
6460
func _rx_tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
65-
return true
61+
return false
6662
}
6763

6864
public func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
@@ -100,13 +96,6 @@ public class _TableViewSectionedDataSource
10096
_rx_tableView(tableView, moveRowAtIndexPath: sourceIndexPath, toIndexPath: destinationIndexPath)
10197
}
10298

103-
override public func respondsToSelector(aSelector: Selector) -> Bool {
104-
if aSelector == #selector(UITableViewDataSource.tableView(_:canEditRowAtIndexPath:)) {
105-
return self.canEditRowAtIndexPathImplemented
106-
}
107-
108-
return super.respondsToSelector(aSelector)
109-
}
11099
}
111100

112101
public class RxTableViewSectionedDataSource<S: SectionModelType>
@@ -197,10 +186,6 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
197186
}
198187
}
199188

200-
override public var canEditRowAtIndexPathImplemented: Bool {
201-
let result = canEditRowAtIndexPath != nil
202-
return result
203-
}
204189
public var canMoveRowAtIndexPath: ((RxTableViewSectionedDataSource<S>, indexPath: NSIndexPath) -> Bool)? {
205190
didSet {
206191
#if DEBUG
@@ -209,7 +194,6 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
209194
}
210195
}
211196

212-
213197
public var sectionIndexTitles: ((RxTableViewSectionedDataSource<S>) -> [String]?)? {
214198
didSet {
215199
#if DEBUG

0 commit comments

Comments
 (0)