Skip to content

Commit

Permalink
Rename DBManager to resolve name conflict with CallHistory private fr…
Browse files Browse the repository at this point in the history
…amework (#938)
  • Loading branch information
jjackson-disney authored Feb 23, 2024
1 parent 5d0f866 commit 2f6284d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// DBManager.h
// FlutterDownloaderDBManager.h
// Runner
//
// Author: GABRIEL THEODOROPOULOS.
//

#import <Foundation/Foundation.h>

@interface DBManager : NSObject
@interface FlutterDownloaderDBManager : NSObject

@property (nonatomic, strong) NSMutableArray *arrColumnNames;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//
// DBManager.m
// FlutterDownloaderDBManager.m
// Runner
//
// Author: GABRIEL THEODOROPOULOS.
//

#import "DBManager.h"
#import "FlutterDownloaderDBManager.h"
#import <sqlite3.h>

@interface DBManager()
@interface FlutterDownloaderDBManager()

@property (nonatomic, strong) NSString *appDirectory;
@property (nonatomic, strong) NSString *databaseFilePath;
Expand All @@ -20,7 +20,7 @@ -(void)runQuery:(const char *)query withParameters:(NSArray *)parameters isQuery

@end

@implementation DBManager
@implementation FlutterDownloaderDBManager

@synthesize debug;

Expand Down
6 changes: 3 additions & 3 deletions ios/Classes/FlutterDownloaderPlugin.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "FlutterDownloaderPlugin.h"
#import "DBManager.h"
#import "FlutterDownloaderDBManager.h"

#define STATUS_UNDEFINED 0
#define STATUS_ENQUEUED 1
Expand Down Expand Up @@ -35,7 +35,7 @@ @interface FlutterDownloaderPlugin()<NSURLSessionTaskDelegate, NSURLSessionDownl
FlutterMethodChannel *_mainChannel;
FlutterMethodChannel *_callbackChannel;
NSObject<FlutterPluginRegistrar> *_registrar;
DBManager *_dbManager;
FlutterDownloaderDBManager *_dbManager;
NSString *_allFilesDownloadedMsg;
NSMutableArray *_eventQueue;
}
Expand Down Expand Up @@ -94,7 +94,7 @@ - (instancetype)init:(NSObject<FlutterPluginRegistrar> *)registrar;
}
databaseQueue = dispatch_queue_create("vn.hunghd.flutter_downloader", 0);

_dbManager = [[DBManager alloc] initWithDatabaseFilePath:dbPath];
_dbManager = [[FlutterDownloaderDBManager alloc] initWithDatabaseFilePath:dbPath];

if (_runningTaskById == nil) {
_runningTaskById = [[NSMutableDictionary alloc] init];
Expand Down

0 comments on commit 2f6284d

Please sign in to comment.