Skip to content

Commit

Permalink
feat: remove drift
Browse files Browse the repository at this point in the history
  • Loading branch information
MahanRahmati committed Jul 28, 2023
1 parent 5c589e6 commit 9553e93
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 206 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

- Bump dependencies
- Add get_it
- Add Drift

## 1.8.0

Expand Down
5 changes: 0 additions & 5 deletions lib/src/database/connection/connection.dart

This file was deleted.

40 changes: 0 additions & 40 deletions lib/src/database/connection/native.dart

This file was deleted.

18 changes: 0 additions & 18 deletions lib/src/database/connection/unsupported.dart

This file was deleted.

34 changes: 0 additions & 34 deletions lib/src/database/connection/web.dart

This file was deleted.

15 changes: 0 additions & 15 deletions lib/src/database/database.dart

This file was deleted.

13 changes: 0 additions & 13 deletions lib/src/database/database.g.dart

This file was deleted.

6 changes: 1 addition & 5 deletions lib/src/services/get_it_service.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import 'package:get_it/get_it.dart';

import '/src/database/database.dart';

final GetIt getIt = GetIt.instance;

void setupDependencies() {
getIt.registerSingleton<AppDatabase>(AppDatabase());
}
void setupDependencies() {}
72 changes: 0 additions & 72 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.13.0"
analyzer_plugin:
dependency: transitive
description:
name: analyzer_plugin
sha256: c1d5f167683de03d5ab6c3b53fc9aeefc5d59476e7810ba7bbddff50c6f4392d
url: "https://pub.dev"
source: hosted
version: "0.11.2"
archive:
dependency: transitive
description:
Expand Down Expand Up @@ -169,14 +161,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.0"
charcode:
dependency: transitive
description:
name: charcode
sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306
url: "https://pub.dev"
source: hosted
version: "1.3.1"
checked_yaml:
dependency: transitive
description:
Expand All @@ -185,14 +169,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.3"
cli_util:
dependency: transitive
description:
name: cli_util
sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7
url: "https://pub.dev"
source: hosted
version: "0.4.0"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -273,22 +249,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.8"
drift:
dependency: "direct main"
description:
name: drift
sha256: "01e7237766b3404f08489ed0dc531a2fa5f5a42d7fa7787da6cc0a10e8d2632f"
url: "https://pub.dev"
source: hosted
version: "2.10.0"
drift_dev:
dependency: "direct dev"
description:
name: drift_dev
sha256: "407eb1f149332238c567f06cc89b6aaee848de00d9031c76dc372dc16d993bca"
url: "https://pub.dev"
source: hosted
version: "2.10.0"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -749,14 +709,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.3"
recase:
dependency: transitive
description:
name: recase
sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213
url: "https://pub.dev"
source: hosted
version: "4.1.0"
rxdart:
dependency: transitive
description:
Expand Down Expand Up @@ -834,30 +786,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.4.5+1"
sqlite3:
dependency: transitive
description:
name: sqlite3
sha256: f7511ddd6a2dda8ded9d849f8a925bb6020e0faa59db2443debc18d484e59401
url: "https://pub.dev"
source: hosted
version: "2.0.0"
sqlite3_flutter_libs:
dependency: "direct main"
description:
name: sqlite3_flutter_libs
sha256: "1e20a88d5c7ae8400e009f38ddbe8b001800a6dffa37832481a86a219bc904c7"
url: "https://pub.dev"
source: hosted
version: "0.5.15"
sqlparser:
dependency: transitive
description:
name: sqlparser
sha256: "9611f46d30a4e8286e54d17a1b5182d132512dc6fc3da90c45ad8ec2828a58b1"
url: "https://pub.dev"
source: hosted
version: "0.30.3"
stack_trace:
dependency: transitive
description:
Expand Down
3 changes: 0 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ dependencies:
# Storage
hive: ^2.2.3
hive_flutter: ^1.1.0
drift: ^2.10.0
sqlite3_flutter_libs: ^0.5.15

# Internationalization and localization
flutter_localizations:
Expand Down Expand Up @@ -63,7 +61,6 @@ dev_dependencies:
freezed: ^2.4.1
hive_generator: ^2.0.0
json_serializable: ^6.7.1
drift_dev: ^2.10.0

flutter:
uses-material-design: true
Expand Down

0 comments on commit 9553e93

Please sign in to comment.