智莺生活APP的阿里百川 Flutter 插件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 line
958 B

  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