refact: rename iOS class DoricResourceManager

This commit is contained in:
pengfei.zhou 2021-12-07 18:13:49 +08:00 committed by osborn
parent b1b8366e08
commit 233f31b90b
4 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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];

View File

@ -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;

View File

@ -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];