add interface to provide jse
This commit is contained in:
parent
1c4b1181d3
commit
e3f45676d6
@ -33,6 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
@interface DoricNativeDriver : NSObject <DoricDriverProtocol>
|
@interface DoricNativeDriver : NSObject <DoricDriverProtocol>
|
||||||
+ (instancetype)instance DEPRECATED_MSG_ATTRIBUTE("Do not use this api");;
|
+ (instancetype)instance DEPRECATED_MSG_ATTRIBUTE("Do not use this api");;
|
||||||
|
|
||||||
|
@property(nonatomic, strong) DoricJSEngine *jsExecutor;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#import "DoricSingleton.h"
|
#import "DoricSingleton.h"
|
||||||
|
|
||||||
@interface DoricNativeDriver ()
|
@interface DoricNativeDriver ()
|
||||||
@property(nonatomic, strong) DoricJSEngine *jsExecutor;
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation DoricNativeDriver
|
@implementation DoricNativeDriver
|
||||||
|
@ -27,6 +27,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
@interface DoricJSCoreExecutor : NSObject <DoricJSExecutorProtocol>
|
@interface DoricJSCoreExecutor : NSObject <DoricJSExecutorProtocol>
|
||||||
|
|
||||||
|
@property(nonatomic, strong) JSContext *jsContext;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
@ -30,8 +30,6 @@ void ReleaseArrayBufferData(void *bytes, void *deallocatorContext) {
|
|||||||
|
|
||||||
@interface DoricJSCoreExecutor ()
|
@interface DoricJSCoreExecutor ()
|
||||||
|
|
||||||
@property(nonatomic, strong) JSContext *jsContext;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation DoricJSCoreExecutor
|
@implementation DoricJSCoreExecutor
|
||||||
|
@ -32,6 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
@property(nonatomic, strong) id <DoricJSExecutorProtocol> jsExecutor;
|
@property(nonatomic, strong) id <DoricJSExecutorProtocol> jsExecutor;
|
||||||
|
|
||||||
|
@property(nonatomic, strong) NSThread *jsThread;
|
||||||
|
|
||||||
@property(nonatomic, strong) DoricRegistry *registry;
|
@property(nonatomic, strong) DoricRegistry *registry;
|
||||||
|
|
||||||
|
@ -47,7 +47,6 @@ @interface DoricJSEngine ()
|
|||||||
@property(nonatomic, strong) NSMutableDictionary <NSNumber *, NSTimer *> *timers;
|
@property(nonatomic, strong) NSMutableDictionary <NSNumber *, NSTimer *> *timers;
|
||||||
@property(nonatomic, strong) DoricBridgeExtension *bridgeExtension;
|
@property(nonatomic, strong) DoricBridgeExtension *bridgeExtension;
|
||||||
@property(nonatomic, strong) NSMutableDictionary *environmentDictionary;
|
@property(nonatomic, strong) NSMutableDictionary *environmentDictionary;
|
||||||
@property(nonatomic, strong) NSThread *jsThread;
|
|
||||||
@property(nonatomic, assign) BOOL destroyed;
|
@property(nonatomic, assign) BOOL destroyed;
|
||||||
@property(nonatomic, assign) BOOL initialized;
|
@property(nonatomic, assign) BOOL initialized;
|
||||||
@property(nonatomic, strong) DoricPerformanceProfile *profile;
|
@property(nonatomic, strong) DoricPerformanceProfile *profile;
|
||||||
|
Reference in New Issue
Block a user