From 44558f00e92f4e97a1879da545cbc3e83fecae5c Mon Sep 17 00:00:00 2001 From: leavesster <11785335+leavesster@users.noreply.github.com> Date: Mon, 9 Mar 2020 19:53:02 +0800 Subject: [PATCH] support Objective-C++ --- dsbridge/DWKWebView.h | 4 ++-- dsbridge/JSBUtil.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dsbridge/DWKWebView.h b/dsbridge/DWKWebView.h index 365f526..094f3f8 100644 --- a/dsbridge/DWKWebView.h +++ b/dsbridge/DWKWebView.h @@ -28,10 +28,10 @@ typedef void (^JSCallback)(NSString * _Nullable result,BOOL complete); * Add a Javascript Object to dsBridge with namespace. * @param object * which implemented the javascript interfaces - * @param namespace + * @param nativeNamespace * if empty, the object have no namespace. **/ -- (void)addJavascriptObject:(id _Nullable ) object namespace:(NSString * _Nullable) namespace; +- (void)addJavascriptObject:(id _Nullable ) object namespace:(NSString * _Nullable)nativeNamespace; // Remove the Javascript Object with the supplied namespace - (void)removeJavascriptObject:(NSString * _Nullable) namespace; diff --git a/dsbridge/JSBUtil.h b/dsbridge/JSBUtil.h index c2a6b6f..d7f1aea 100644 --- a/dsbridge/JSBUtil.h +++ b/dsbridge/JSBUtil.h @@ -12,6 +12,6 @@ enum{ + (NSString * _Nullable)objToJsonString:(id _Nonnull)dict; + (id _Nullable)jsonStringToObject:(NSString * _Nonnull)jsonString; +(NSString *_Nullable)methodByNameArg:(NSInteger)argNum - selName:( NSString * _Nullable)selName class:(Class _Nonnull )class; + selName:( NSString * _Nullable)selName class:(Class _Nonnull )clazz; + (NSArray *_Nonnull)parseNamespace: (NSString *_Nonnull) method; @end