feat:add deprecated api
This commit is contained in:
@@ -59,4 +59,6 @@
|
||||
+ (BOOL)isEnableRenderSnapshot;
|
||||
|
||||
+ (void)setEnvironmentValue:(NSDictionary *)value;
|
||||
|
||||
+ (DoricJSLoaderManager *)jsLoaderManager;
|
||||
@end
|
@@ -51,4 +51,8 @@ + (BOOL)isEnableRenderSnapshot {
|
||||
+ (void)setEnvironmentValue:(NSDictionary *)value {
|
||||
[DoricSingleton.instance setEnvironmentValue:value];
|
||||
}
|
||||
|
||||
+ (DoricJSLoaderManager *)jsLoaderManager {
|
||||
return DoricSingleton.instance.jsLoaderManager;
|
||||
}
|
||||
@end
|
@@ -32,6 +32,7 @@ typedef NS_ENUM(NSInteger, DoricQueueMode) {
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface DoricNativeDriver : NSObject <DoricDriverProtocol>
|
||||
+ (instancetype)instance DEPRECATED_MSG_ATTRIBUTE("Do not use this api");;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
@@ -25,6 +25,7 @@
|
||||
#import "DoricConstant.h"
|
||||
#import "DoricContextManager.h"
|
||||
#import "DoricPerformanceProfile.h"
|
||||
#import "DoricSingleton.h"
|
||||
|
||||
@interface DoricNativeDriver ()
|
||||
@property(nonatomic, strong) DoricJSEngine *jsExecutor;
|
||||
@@ -34,6 +35,10 @@ @implementation DoricNativeDriver
|
||||
|
||||
@dynamic registry;
|
||||
|
||||
+ (instancetype)instance {
|
||||
return DoricSingleton.instance.nativeDriver;
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
if (self = [super init]) {
|
||||
_jsExecutor = [[DoricJSEngine alloc] init];
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#import "DoricAsyncResult.h"
|
||||
|
||||
@interface DoricJSLoaderManager : NSObject
|
||||
+ (instancetype)instance;
|
||||
+ (instancetype)instance DEPRECATED_MSG_ATTRIBUTE("Use Doric.jsLoaderManager instead");
|
||||
|
||||
- (void)addJSLoader:(id <DoricLoaderProtocol>)loader;
|
||||
|
||||
|
Reference in New Issue
Block a user