Skip to content

Commit

Permalink
Upgrade to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wen.du committed May 31, 2017
1 parent ad767d0 commit 0795f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DSBridge-Android:https://github.com/wendux/DSBridge-Android
//for asynchronous invocation
- (NSString *) testAsyn:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL isComplete))handler
{
handler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],true);
handler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],YES);
}
@end
```
Expand Down
4 changes: 2 additions & 2 deletions dsbridgedemo/JsApiTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ - (NSString *) testSyn:(NSDictionary *) args

- (void) testAsyn:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL complete))completionHandler
{
completionHandler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],true);
completionHandler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],YES);
}

- (NSString *)testNoArgSyn:(NSDictionary *) args
Expand All @@ -34,7 +34,7 @@ - (NSString *)testNoArgSyn:(NSDictionary *) args

- ( void )testNoArgAsyn:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL complete))completionHandler
{
completionHandler(@"testNoArgAsyn called [ asyn call]",true);
completionHandler(@"testNoArgAsyn called [ asyn call]",YES);
}

- ( void )callProgress:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL complete))completionHandler
Expand Down

0 comments on commit 0795f54

Please sign in to comment.