From 0795f54cca9f43950968287d058a9d5247aca419 Mon Sep 17 00:00:00 2001 From: "wen.du" Date: Wed, 31 May 2017 15:38:59 +0800 Subject: [PATCH] Upgrade to 2.0 --- README.md | 2 +- dsbridgedemo/JsApiTest.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 615070c..94a477c 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/dsbridgedemo/JsApiTest.m b/dsbridgedemo/JsApiTest.m index 2a91c6d..1948219 100644 --- a/dsbridgedemo/JsApiTest.m +++ b/dsbridgedemo/JsApiTest.m @@ -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 @@ -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