智莺生活APP的阿里百川 Flutter 插件
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

FNALITradeZipArchiver.m 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // FNALITradeZipArchiver.m
  3. // 新版嗨如意
  4. //
  5. // Created by FNUser on 2020/10/26.
  6. // Copyright © 2020 方诺科技. All rights reserved.
  7. //
  8. #import "FNALITradeZipArchiver.h"
  9. #import <ZipArchive/ZipArchive.h>
  10. @interface FNALITradeZipArchiverOp()
  11. @property (nonatomic, strong) ZipArchive *innerArchiver;
  12. @end
  13. @implementation FNALITradeZipArchiverOp
  14. - (ZipArchive *)innerArchiver {
  15. if (!_innerArchiver) {
  16. _innerArchiver = [ZipArchive new];
  17. }
  18. return _innerArchiver;
  19. }
  20. - (BOOL)UnzipOpenFile:(NSString *)zipFile{
  21. return [self.innerArchiver UnzipOpenFile:zipFile];
  22. }
  23. - (BOOL)UnzipCloseFile{
  24. return [self.innerArchiver UnzipCloseFile];
  25. }
  26. - (BOOL)UnzipFileTo:(NSString *)path overWrite:(BOOL)overwrite{
  27. return [self.innerArchiver UnzipFileTo:path overWrite:overwrite];
  28. }
  29. @end
  30. @implementation FNALITradeZipArchiver
  31. - (id<TRVZipOperationProtocol>)zipArchiverInstance{
  32. return [FNALITradeZipArchiverOp new];
  33. }
  34. @end