Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename DBManager to resolve name conflict with CallHistory private framework #938

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading