Skip to content

Commit

Permalink
Remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jun 28, 2024
1 parent 65cd897 commit 381a285
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 79 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ run_integration_test rit:
flutter run --dart-define-from-file=integration_test/.env -t integration_test/hello_test.dart

run_unit_test rut:
flutter run --dart-define-from-file=test/.env -t test/provider_test.dart
# dart test test/provider_test.dart
flutter run --dart-define-from-file=test/.env -t test/provider_test.dart

fix:
dart fix --apply lib
dart fix --apply test
dart fix --apply integration_test
dart format lib integration_test

Expand Down
72 changes: 0 additions & 72 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.1.1"
coverage:
dependency: transitive
description:
name: coverage
sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e"
url: "https://pub.dev"
source: hosted
version: "1.8.0"
cross_file:
dependency: transitive
description:
Expand Down Expand Up @@ -743,14 +735,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.5"
node_preamble:
dependency: transitive
description:
name: node_preamble
sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db"
url: "https://pub.dev"
source: hosted
version: "2.0.2"
octo_image:
dependency: transitive
description:
Expand Down Expand Up @@ -983,22 +967,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.4.1"
shelf_packages_handler:
dependency: transitive
description:
name: shelf_packages_handler
sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
shelf_static:
dependency: transitive
description:
name: shelf_static
sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e
url: "https://pub.dev"
source: hosted
version: "1.1.2"
shelf_web_socket:
dependency: transitive
description:
Expand Down Expand Up @@ -1036,22 +1004,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.4"
source_map_stack_trace:
dependency: transitive
description:
name: source_map_stack_trace
sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
source_maps:
dependency: transitive
description:
name: source_maps
sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703"
url: "https://pub.dev"
source: hosted
version: "0.10.12"
source_span:
dependency: transitive
description:
Expand Down Expand Up @@ -1148,14 +1100,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.1"
test:
dependency: "direct main"
description:
name: test
sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
url: "https://pub.dev"
source: hosted
version: "1.24.9"
test_api:
dependency: transitive
description:
Expand All @@ -1164,14 +1108,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.6.1"
test_core:
dependency: transitive
description:
name: test_core
sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
url: "https://pub.dev"
source: hosted
version: "0.5.9"
timing:
dependency: transitive
description:
Expand Down Expand Up @@ -1244,14 +1180,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.3"
webkit_inspection_protocol:
dependency: transitive
description:
name: webkit_inspection_protocol
sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572"
url: "https://pub.dev"
source: hosted
version: "1.2.1"
win32:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ dependencies:
flutter_expandable_fab: ^2.0.0
mime: ^1.0.5
http_parser: ^4.0.2
test: ^1.24.9
riverpod: ^2.5.1

dev_dependencies:
Expand Down
9 changes: 4 additions & 5 deletions test/provider_test.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:nocodb/common/logger.dart';
import 'package:nocodb/features/core/providers/providers.dart';
import 'package:nocodb/features/core/providers/utils.dart';
import 'package:nocodb/nocodb_sdk/client.dart';
import 'package:riverpod/riverpod.dart' hide ErrorListener;
import 'package:test/test.dart';
// import 'package:test/test.dart';

// https://riverpod.dev/ja/docs/essentials/testing
/// A testing utility which creates a [ProviderContainer] and automatically
Expand All @@ -27,11 +28,11 @@ ProviderContainer createContainer({
}

void main() {
// setUp(() {
setUp(() {
const ncEndpoint = String.fromEnvironment('NC_ENDPOINT');
const apiToken = String.fromEnvironment('API_TOKEN');
api.init(ncEndpoint, token: ApiToken(apiToken));
// });
});
test('Hello world', () async {
final c = createContainer();
final projectList = await unwrap(await api.projectList());
Expand All @@ -46,7 +47,5 @@ void main() {
final view = c.read(viewProvider);
expect(view != null, true);
logger.info('view: ${view?.title}');


});
}

0 comments on commit 381a285

Please sign in to comment.