Skip to content

Commit

Permalink
remove logging dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyl committed Nov 27, 2024
1 parent 09fc705 commit 42fe434
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/dartcv/lib/src/native_lib.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import 'dart:ffi' as ffi;
import 'dart:io';

import 'package:logging/logging.dart';

import 'g/calib3d.g.dart' as calib3d;
import 'g/contrib.g.dart' as contrib;
import 'g/core.g.dart' as core;
Expand Down Expand Up @@ -42,7 +40,7 @@ ffi.DynamicLibrary loadNativeLibrary(String libName) {
try {
return ffi.DynamicLibrary.open(libPath);
} catch (e) {
Logger("dartcv").warning("$e");
print("Error loading $libPath, error: $e fallback to process.");
return ffi.DynamicLibrary.process();
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/dartcv/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ environment:

dependencies:
ffi: ^2.1.3
logging: ^1.3.0

dev_dependencies:
ffigen: ">=13.0.0 <15.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/dartcv/test/imgproc/imgproc_async_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ void main() async {
});
});

test('cv.intersectConvexConvexAsync', () {
test('cv.intersectConvexConvexAsync', () async {
// TODO add test
});
}

0 comments on commit 42fe434

Please sign in to comment.