feat:add DoricNavigatorProtocol

This commit is contained in:
pengfei.zhou 2019-11-23 17:14:50 +08:00
parent 51042eeba4
commit 27d601c326
5 changed files with 18 additions and 7 deletions

View File

@ -0,0 +1,11 @@
//
// Created by pengfei.zhou on 2019/11/23.
//
#import <Foundation/Foundation.h>
@protocol DoricNavigatorProtocol <NSObject>
- (void)push:(NSString *)scheme alias:(NSString *)alias;
- (void)pop;
@end

View File

@ -21,11 +21,11 @@
//
#import <Foundation/Foundation.h>
#import "DoricJSExecutorProtocal.h"
#import "DoricJSExecutorProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@interface DoricJSCoreExecutor : NSObject <DoricJSExecutorProtocal>
@interface DoricJSCoreExecutor : NSObject <DoricJSExecutorProtocol>
@end

View File

@ -21,7 +21,7 @@
//
#import "DoricJSEngine.h"
#import "DoricJSExecutorProtocal.h"
#import "DoricJSExecutorProtocol.h"
#import "DoricJSCoreExecutor.h"
#import "DoricJSRemoteExecutor.h"
#import "DoricConstant.h"
@ -29,7 +29,7 @@
#import "DoricBridgeExtension.h"
@interface DoricJSEngine ()
@property(nonatomic, strong) id <DoricJSExecutorProtocal> jsExecutor;
@property(nonatomic, strong) id <DoricJSExecutorProtocol> jsExecutor;
@property(nonatomic, strong) NSMutableDictionary *timers;
@property(nonatomic, strong) DoricBridgeExtension *bridgeExtension;
@end

View File

@ -25,7 +25,7 @@
NS_ASSUME_NONNULL_BEGIN
@protocol DoricJSExecutorProtocal <NSObject>
@protocol DoricJSExecutorProtocol <NSObject>
- (NSString *)loadJSScript:(NSString *)script source:(NSString *)source;

View File

@ -21,11 +21,11 @@
//
#import <Foundation/Foundation.h>
#import "DoricJSExecutorProtocal.h"
#import "DoricJSExecutorProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@interface DoricJSRemoteExecutor : NSObject <DoricJSExecutorProtocal>
@interface DoricJSRemoteExecutor : NSObject <DoricJSExecutorProtocol>
@property(nonatomic, strong) dispatch_semaphore_t semaphore;