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

View File

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

View File

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

View File

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