add interface to provide jse

This commit is contained in:
王劲鹏 2022-01-07 17:21:41 +08:00 committed by osborn
parent 1c4b1181d3
commit e3f45676d6
6 changed files with 6 additions and 4 deletions

View File

@ -33,6 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
@interface DoricNativeDriver : NSObject <DoricDriverProtocol>
+ (instancetype)instance DEPRECATED_MSG_ATTRIBUTE("Do not use this api");;
@property(nonatomic, strong) DoricJSEngine *jsExecutor;
@end
NS_ASSUME_NONNULL_END

View File

@ -28,7 +28,6 @@
#import "DoricSingleton.h"
@interface DoricNativeDriver ()
@property(nonatomic, strong) DoricJSEngine *jsExecutor;
@end
@implementation DoricNativeDriver

View File

@ -27,6 +27,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface DoricJSCoreExecutor : NSObject <DoricJSExecutorProtocol>
@property(nonatomic, strong) JSContext *jsContext;
@end
NS_ASSUME_NONNULL_END

View File

@ -30,8 +30,6 @@ void ReleaseArrayBufferData(void *bytes, void *deallocatorContext) {
@interface DoricJSCoreExecutor ()
@property(nonatomic, strong) JSContext *jsContext;
@end
@implementation DoricJSCoreExecutor

View File

@ -32,6 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, strong) id <DoricJSExecutorProtocol> jsExecutor;
@property(nonatomic, strong) NSThread *jsThread;
@property(nonatomic, strong) DoricRegistry *registry;

View File

@ -47,7 +47,6 @@ @interface DoricJSEngine ()
@property(nonatomic, strong) NSMutableDictionary <NSNumber *, NSTimer *> *timers;
@property(nonatomic, strong) DoricBridgeExtension *bridgeExtension;
@property(nonatomic, strong) NSMutableDictionary *environmentDictionary;
@property(nonatomic, strong) NSThread *jsThread;
@property(nonatomic, assign) BOOL destroyed;
@property(nonatomic, assign) BOOL initialized;
@property(nonatomic, strong) DoricPerformanceProfile *profile;