-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQHQResourceManager.h
39 lines (27 loc) · 1.3 KB
/
QHQResourceManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// QHQResourceManager.h
//
// Created by lujianwen on 2018/12/3.
// Copyright © 2018 All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SSZipArchive.h"
#define DocumentDirectoryPath [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]
#define TabBarResourcePath @"TabBar"
#define SplashResourcePath @"Splash"
NS_ASSUME_NONNULL_BEGIN
@interface QHQResourceManager : NSObject <SSZipArchiveDelegate>
+ (instancetype)defaultManager;
- (void)unpressFileWithPath:(NSString *)filePath;
//获取资源 (备注:fileName需要加上后缀)
+ (NSData *)fetchResourceWithFilePath:(NSString *)filePath;
+ (NSData *)fetchTabBarResourceWithFileName:(NSString *)fileName inFolder:(NSString *)folder;
+ (NSData *)fetchSplashResourceWithFileName:(NSString *)fileName inFolder:(NSString *)folder;
//获取资源路径(备注:fileName需要加上后缀)
+ (NSString *)getTabBarResourcePathWithFileName:(NSString *)fileName inFolder:(NSString *)folder;
+ (NSString *)getSplashResourcePathWithFileName:(NSString *)fileName inFolder:(NSString *)folder;
+ (BOOL)isExistsOfTabBarResourceWithName:(NSString *)name;
+ (void)removeFileWithFilePath:(NSString *)filePath;
+ (void)removeFilesWithPath:(NSString *)path ignoreFileNames:(NSArray *)fileNames;
@end
NS_ASSUME_NONNULL_END