Skip to content

Commit c376eb5

Browse files
committed
Fixed compiler error for pointer mismatch
1 parent a7c4a03 commit c376eb5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

WebViewJavascriptBridge/WebViewJavascriptBridge.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
#define WVJB_PLATFORM_OSX
1515
#define WVJB_WEBVIEW_TYPE WebView
1616
#define WVJB_WEBVIEW_DELEGATE_TYPE NSObject<WebViewJavascriptBridgeBaseDelegate>
17+
#define WVJB_WEBVIEW_DELEGATE_INTERFACE NSObject<WebViewJavascriptBridgeBaseDelegate>
1718
#elif defined __IPHONE_OS_VERSION_MAX_ALLOWED
1819
#import <UIKit/UIWebView.h>
1920
#define WVJB_PLATFORM_IOS
2021
#define WVJB_WEBVIEW_TYPE UIWebView
21-
#define WVJB_WEBVIEW_DELEGATE_TYPE NSObject<UIWebViewDelegate, WebViewJavascriptBridgeBaseDelegate>
22+
#define WVJB_WEBVIEW_DELEGATE_TYPE NSObject<UIWebViewDelegate>
23+
#define WVJB_WEBVIEW_DELEGATE_INTERFACE NSObject<UIWebViewDelegate, WebViewJavascriptBridgeBaseDelegate>
2224
#endif
2325

24-
@interface WebViewJavascriptBridge : WVJB_WEBVIEW_DELEGATE_TYPE
26+
@interface WebViewJavascriptBridge : WVJB_WEBVIEW_DELEGATE_INTERFACE
2527

2628
+ (instancetype)bridgeForWebView:(WVJB_WEBVIEW_TYPE*)webView handler:(WVJBHandler)handler;
2729
+ (instancetype)bridgeForWebView:(WVJB_WEBVIEW_TYPE*)webView webViewDelegate:(WVJB_WEBVIEW_DELEGATE_TYPE*)webViewDelegate handler:(WVJBHandler)handler;

WebViewJavascriptBridge/WebViewJavascriptBridgeBase.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ typedef NSDictionary WVJBMessage;
2020

2121
@interface WebViewJavascriptBridgeBase : NSObject
2222

23+
2324
@property (assign) id <WebViewJavascriptBridgeBaseDelegate> delegate;
2425
@property (strong, nonatomic) NSMutableArray* startupMessageQueue;
2526
@property (strong, nonatomic) NSMutableDictionary* responseCallbacks;

0 commit comments

Comments
 (0)