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