refact: rename iOS class DoricResourceManager
This commit is contained in:
parent
b1b8366e08
commit
233f31b90b
@ -23,7 +23,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import "DoricMonitorProtocol.h"
|
#import "DoricMonitorProtocol.h"
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#import "DoricResourceLoaderManager.h"
|
#import "DoricResourceManager.h"
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
@class DoricLibrary;
|
@class DoricLibrary;
|
||||||
@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@property(nonatomic, strong) UIImage *defaultPlaceHolderImage;
|
@property(nonatomic, strong) UIImage *defaultPlaceHolderImage;
|
||||||
@property(nonatomic, strong) UIImage *defaultErrorImage;
|
@property(nonatomic, strong) UIImage *defaultErrorImage;
|
||||||
@property(nonatomic, strong) id <DoricPerformanceGlobalAnchorHookProtocol> globalPerformanceAnchorHook;
|
@property(nonatomic, strong) id <DoricPerformanceGlobalAnchorHookProtocol> globalPerformanceAnchorHook;
|
||||||
@property(nonatomic, strong) DoricResourceLoaderManager *loaderManager;
|
@property(nonatomic, strong) DoricResourceManager *loaderManager;
|
||||||
|
|
||||||
- (instancetype)initWithJSEngine:(DoricJSEngine *)jsEngine;
|
- (instancetype)initWithJSEngine:(DoricJSEngine *)jsEngine;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ - (instancetype)initWithJSEngine:(DoricJSEngine *)jsEngine {
|
|||||||
_plugins = [NSMutableDictionary new];
|
_plugins = [NSMutableDictionary new];
|
||||||
_nodes = [NSMutableDictionary new];
|
_nodes = [NSMutableDictionary new];
|
||||||
_monitors = [NSMutableSet new];
|
_monitors = [NSMutableSet new];
|
||||||
_loaderManager = [DoricResourceLoaderManager new];
|
_loaderManager = [DoricResourceManager new];
|
||||||
[self innerRegister];
|
[self innerRegister];
|
||||||
[DoricSingleton.instance.libraries enumerateObjectsUsingBlock:^(DoricLibrary *obj, BOOL *stop) {
|
[DoricSingleton.instance.libraries enumerateObjectsUsingBlock:^(DoricLibrary *obj, BOOL *stop) {
|
||||||
[obj load:self];
|
[obj load:self];
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import "DoricResourceLoader.h"
|
#import "DoricResourceLoader.h"
|
||||||
|
|
||||||
@interface DoricResourceLoaderManager : NSObject
|
@interface DoricResourceManager : NSObject
|
||||||
- (void)registerLoader:(id <DoricResourceLoader>)loader;
|
- (void)registerLoader:(id <DoricResourceLoader>)loader;
|
||||||
|
|
||||||
- (void)unRegisterLoader:(id <DoricResourceLoader>)loader;
|
- (void)unRegisterLoader:(id <DoricResourceLoader>)loader;
|
@ -17,13 +17,13 @@
|
|||||||
// Created by pengfei.zhou on 2021/10/22.
|
// Created by pengfei.zhou on 2021/10/22.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "DoricResourceLoaderManager.h"
|
#import "DoricResourceManager.h"
|
||||||
|
|
||||||
@interface DoricResourceLoaderManager ()
|
@interface DoricResourceManager ()
|
||||||
@property(nonatomic, strong) NSMutableDictionary <NSString *, id <DoricResourceLoader>> *loaders;
|
@property(nonatomic, strong) NSMutableDictionary <NSString *, id <DoricResourceLoader>> *loaders;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation DoricResourceLoaderManager
|
@implementation DoricResourceManager
|
||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
if (self = [super init]) {
|
if (self = [super init]) {
|
||||||
_loaders = [NSMutableDictionary new];
|
_loaders = [NSMutableDictionary new];
|
||||||
@ -46,4 +46,4 @@ - (__kindof DoricResource *)load:(NSString *)identifier
|
|||||||
return [loader load:identifier withContext:context];
|
return [loader load:identifier withContext:context];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
Reference in New Issue
Block a user