Skip to content

Commit

Permalink
[expo-file-system] EXResumableManager -> EXResumablesManager
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmccall committed Apr 27, 2020
1 parent 089a6b3 commit 2293766
Show file tree
Hide file tree
Showing 17 changed files with 178 additions and 178 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 83 additions & 83 deletions apps/bare-expo/ios/Pods/EXFileSystem.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ios/Pods/.project_cache/installation_cache.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

152 changes: 76 additions & 76 deletions ios/Pods/EXFileSystem.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion ios/Pods/Headers/Private/EXFileSystem/EXResumableManager.h

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion ios/Pods/Headers/Public/EXFileSystem/EXResumableManager.h

This file was deleted.

1 change: 1 addition & 0 deletions ios/Pods/Headers/Public/EXFileSystem/EXResumablesManager.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/expo-file-system/ios/EXFileSystem/EXFileSystem.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#import <UMCore/UMEventEmitterService.h>

#import <EXFileSystem/EXResumableManager.h>
#import <EXFileSystem/EXResumablesManager.h>
#import <EXFileSystem/EXSessionTaskDispatcher.h>
#import <EXFileSystem/EXSessionDownloadTaskDelegate.h>
#import <EXFileSystem/EXSessionResumableDownloadTaskDelegate.h>
Expand All @@ -32,7 +32,7 @@ @interface EXFileSystem ()
@property (nonatomic, strong) NSURLSession *backgroundSession;
@property (nonatomic, strong) NSURLSession *foregroundSession;
@property (nonatomic, strong) EXSessionTaskDispatcher *sessionTaskDispatcher;
@property (nonatomic, strong) EXResumableManager *resumableManager;
@property (nonatomic, strong) EXResumablesManager *resumableManager;
@property (nonatomic, weak) UMModuleRegistry *moduleRegistry;
@property (nonatomic, weak) id<UMEventEmitterService> eventEmitter;
@property (nonatomic, strong) NSString *documentDirectory;
Expand Down Expand Up @@ -62,7 +62,7 @@ - (instancetype)initWithDocumentDirectory:(NSString *)documentDirectory cachesDi
_cachesDirectory = cachesDirectory;
_bundleDirectory = bundleDirectory;

_resumableManager = [EXResumableManager new];
_resumableManager = [EXResumablesManager new];
_sessionTaskDispatcher = [EXSessionTaskDispatcher new];
_backgroundSession = [self _createSession:EXFileSystemBackgroundSession delegate:_sessionTaskDispatcher];
_foregroundSession = [self _createSession:EXFileSystemForegroundSession delegate:_sessionTaskDispatcher];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface EXResumableManager : NSObject
@interface EXResumablesManager : NSObject

- (NSURLSessionDownloadTask * _Nullable)taskForId:(NSString *)uuid;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright 2015-present 650 Industries. All rights reserved.

#import <EXFileSystem/EXResumableManager.h>
#import <EXFileSystem/EXResumablesManager.h>

@interface EXResumableManager ()
@interface EXResumablesManager ()

@property (nonatomic, strong) NSMutableDictionary<NSString *, NSURLSessionDownloadTask *> *resumableDownloads;

@end

@implementation EXResumableManager
@implementation EXResumablesManager

- (instancetype)init
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2015-present 650 Industries. All rights reserved.

#import <EXFileSystem/EXSessionDownloadTaskDelegate.h>
#import <EXFileSystem/EXResumableManager.h>
#import <EXFileSystem/EXResumablesManager.h>

typedef void (^EXDownloadDelegateOnWriteCallback)(NSURLSessionDownloadTask *task, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite);

Expand All @@ -12,7 +12,7 @@ typedef void (^EXDownloadDelegateOnWriteCallback)(NSURLSessionDownloadTask *task
localUrl:(NSURL *)localUrl
shouldCalculateMd5:(BOOL)shouldCalculateMd5
onWriteCallback:(EXDownloadDelegateOnWriteCallback)onWriteCallback
resumableManager:(EXResumableManager *)manager
resumableManager:(EXResumablesManager *)manager
uuid:(NSString *)uuid;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@interface EXSessionResumableDownloadTaskDelegate ()

@property (strong, nonatomic, readonly) EXDownloadDelegateOnWriteCallback onWriteCallback;
@property (weak, nonatomic) EXResumableManager *manager;
@property (weak, nonatomic) EXResumablesManager *manager;
@property (strong, nonatomic) NSString *uuid;

@end
Expand All @@ -17,7 +17,7 @@ - (instancetype)initWithResolve:(UMPromiseResolveBlock)resolve
localUrl:(NSURL *)localUrl
shouldCalculateMd5:(BOOL)shouldCalculateMd5
onWriteCallback:(EXDownloadDelegateOnWriteCallback)onWriteCallback
resumableManager:(EXResumableManager *)manager
resumableManager:(EXResumablesManager *)manager
uuid:(NSString *)uuid;
{
if (self = [super initWithResolve:resolve
Expand Down

0 comments on commit 2293766

Please sign in to comment.