From 27d601c326c60bf22944486087e82bb2d73d4034 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sat, 23 Nov 2019 17:14:50 +0800 Subject: [PATCH] feat:add DoricNavigatorProtocol --- iOS/Navigator/DoricNavigatorProtocol.h | 11 +++++++++++ iOS/Pod/Classes/Engine/DoricJSCoreExecutor.h | 4 ++-- iOS/Pod/Classes/Engine/DoricJSEngine.m | 4 ++-- ...JSExecutorProtocal.h => DoricJSExecutorProtocol.h} | 2 +- iOS/Pod/Classes/Engine/DoricJSRemoteExecutor.h | 4 ++-- 5 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 iOS/Navigator/DoricNavigatorProtocol.h rename iOS/Pod/Classes/Engine/{DoricJSExecutorProtocal.h => DoricJSExecutorProtocol.h} (95%) diff --git a/iOS/Navigator/DoricNavigatorProtocol.h b/iOS/Navigator/DoricNavigatorProtocol.h new file mode 100644 index 00000000..dd250290 --- /dev/null +++ b/iOS/Navigator/DoricNavigatorProtocol.h @@ -0,0 +1,11 @@ +// +// Created by pengfei.zhou on 2019/11/23. +// + +#import + +@protocol DoricNavigatorProtocol +- (void)push:(NSString *)scheme alias:(NSString *)alias; + +- (void)pop; +@end \ No newline at end of file diff --git a/iOS/Pod/Classes/Engine/DoricJSCoreExecutor.h b/iOS/Pod/Classes/Engine/DoricJSCoreExecutor.h index 448f8b9e..0718eb3e 100644 --- a/iOS/Pod/Classes/Engine/DoricJSCoreExecutor.h +++ b/iOS/Pod/Classes/Engine/DoricJSCoreExecutor.h @@ -21,11 +21,11 @@ // #import -#import "DoricJSExecutorProtocal.h" +#import "DoricJSExecutorProtocol.h" NS_ASSUME_NONNULL_BEGIN -@interface DoricJSCoreExecutor : NSObject +@interface DoricJSCoreExecutor : NSObject @end diff --git a/iOS/Pod/Classes/Engine/DoricJSEngine.m b/iOS/Pod/Classes/Engine/DoricJSEngine.m index d5a9a25e..3559c0cb 100644 --- a/iOS/Pod/Classes/Engine/DoricJSEngine.m +++ b/iOS/Pod/Classes/Engine/DoricJSEngine.m @@ -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 jsExecutor; +@property(nonatomic, strong) id jsExecutor; @property(nonatomic, strong) NSMutableDictionary *timers; @property(nonatomic, strong) DoricBridgeExtension *bridgeExtension; @end diff --git a/iOS/Pod/Classes/Engine/DoricJSExecutorProtocal.h b/iOS/Pod/Classes/Engine/DoricJSExecutorProtocol.h similarity index 95% rename from iOS/Pod/Classes/Engine/DoricJSExecutorProtocal.h rename to iOS/Pod/Classes/Engine/DoricJSExecutorProtocol.h index 514a3a88..41f4bd47 100644 --- a/iOS/Pod/Classes/Engine/DoricJSExecutorProtocal.h +++ b/iOS/Pod/Classes/Engine/DoricJSExecutorProtocol.h @@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN -@protocol DoricJSExecutorProtocal +@protocol DoricJSExecutorProtocol - (NSString *)loadJSScript:(NSString *)script source:(NSString *)source; diff --git a/iOS/Pod/Classes/Engine/DoricJSRemoteExecutor.h b/iOS/Pod/Classes/Engine/DoricJSRemoteExecutor.h index b9145867..65a34727 100644 --- a/iOS/Pod/Classes/Engine/DoricJSRemoteExecutor.h +++ b/iOS/Pod/Classes/Engine/DoricJSRemoteExecutor.h @@ -21,11 +21,11 @@ // #import -#import "DoricJSExecutorProtocal.h" +#import "DoricJSExecutorProtocol.h" NS_ASSUME_NONNULL_BEGIN -@interface DoricJSRemoteExecutor : NSObject +@interface DoricJSRemoteExecutor : NSObject @property(nonatomic, strong) dispatch_semaphore_t semaphore;