Skip to content

Commit 18ef563

Browse files
author
Larry Tin
committed
Rename GDDViewControllerHelper to GDDViewControllerTransition
1 parent 98a355c commit 18ef563

10 files changed

Lines changed: 513 additions & 456 deletions

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PODS:
3232
- Mantle/extobjc (= 2.0.7)
3333
- Mantle/extobjc (2.0.7)
3434
- MQTTKit (0.1.0)
35-
- Protobuf (3.0.2)
35+
- Protobuf (3.1.0)
3636
- Specta (1.0.5)
3737

3838
DEPENDENCIES:
@@ -62,7 +62,7 @@ SPEC CHECKSUMS:
6262
GDDataDrivenView: 5771b14137b23e19c7cdecdd078ebf8ab7aa2478
6363
Mantle: bc40bb061d8c2c6fb48d5083e04d928c3b7f73d9
6464
MQTTKit: a4e6b8aa92db1aeae917d2b773fd72a7749937c4
65-
Protobuf: 6d10f661ec22108e47dea70446ec89e00584fd42
65+
Protobuf: 265e9977d04a83eba9cefb0bed3ad07e41033b4a
6666
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
6767

6868
PODFILE CHECKSUM: 19eae2f29ee302412e409736c977a408d65a641e

GDDataDrivenView/Classes/Service/GDDLocalRpc.m

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ @implementation GDDLocalRpc {
3636
};
3737
}
3838

39-
- (void)load {
40-
if (_error) {
41-
_failure ? _failure(_error) : nil;
42-
return;
43-
}
44-
45-
_success ? _success(_result) : nil;
39+
- (void (^)(id query))load {
40+
return ^(id query) {
41+
if (_error) {
42+
_failure ? _failure(_error) : nil;
43+
return;
44+
}
45+
46+
_success ? _success(_result) : nil;
47+
};
4648
}
4749

4850
@end

GDDataDrivenView/Classes/Service/GDDRpc.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
- (id <GDDRpc> (^)(void (^)(NSError *)))failure;
88

9-
- (void)load;
10-
11-
@optional
12-
- (void (^)(id cursor))loadMore;
9+
- (void (^)(id query))load;
1310

1411
@end

GDDataDrivenView/Classes/ViewControllerPresenter/GDDViewControllerHelper.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)