Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Lint fixed

Neeraj Gupta2eea98a4df1f
diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart b/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart
index 46a748f27c..e13985e50a 100644
--- a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart
+++ b/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart
@@ -1,6 +1,6 @@
import "dart:async";
import "dart:developer" as dev show log;
-import 'dart:typed_data' show ByteBuffer, ByteData, Float32List, Uint8List;
+import 'dart:typed_data' show ByteData, Float32List;
import 'dart:ui' as ui show Image;
import 'package:logging/logging.dart';
diff --git a/mobile/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart b/mobile/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart
index 26e593f945..acbac0262c 100644
--- a/mobile/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart
+++ b/mobile/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart
@@ -49,7 +49,7 @@ class FaceEmbeddingService extends MlModel {
}
} catch (e) {
_logger.info(
- 'MobileFaceNet (entePlugin: $useEntePlugin)Error while running inference: $e');
+ 'MobileFaceNet (entePlugin: $useEntePlugin)Error while running inference: $e',);
throw MobileFaceNetInterpreterRunException();
}
}
diff --git a/mobile/lib/services/machine_learning/ml_model.dart b/mobile/lib/services/machine_learning/ml_model.dart
index 2ee76b7e5c..1127f57d27 100644
--- a/mobile/lib/services/machine_learning/ml_model.dart
+++ b/mobile/lib/services/machine_learning/ml_model.dart
@@ -1,4 +1,4 @@
-import "dart:io" show File, Platform;
+import "dart:io" show File;
import "package:computer/computer.dart";
import "package:logging/logging.dart";
diff --git a/mobile/plugins/onnx_dart/lib/onnx_dart_method_channel.dart b/mobile/plugins/onnx_dart/lib/onnx_dart_method_channel.dart
index bd92c1a5c1..669ceca1eb 100644
--- a/mobile/plugins/onnx_dart/lib/onnx_dart_method_channel.dart
+++ b/mobile/plugins/onnx_dart/lib/onnx_dart_method_channel.dart
@@ -1,7 +1,6 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
-
-import 'onnx_dart_platform_interface.dart';
+import 'package:onnx_dart/onnx_dart_platform_interface.dart';
/// An implementation of [OnnxDartPlatform] that uses method channels.
class MethodChannelOnnxDart extends OnnxDartPlatform {
diff --git a/mobile/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart b/mobile/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart
index 1545915859..626f5236a1 100644
--- a/mobile/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart
+++ b/mobile/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart
@@ -1,9 +1,8 @@
import 'dart:typed_data';
+import 'package:onnx_dart/onnx_dart_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
-import 'onnx_dart_method_channel.dart';
-
abstract class OnnxDartPlatform extends PlatformInterface {
/// Constructs a OnnxDartPlatform.
OnnxDartPlatform() : super(token: _token);
diff --git a/mobile/plugins/onnx_dart/pubspec.yaml b/mobile/plugins/onnx_dart/pubspec.yaml
index 5c08c872a4..63baff5a48 100644
--- a/mobile/plugins/onnx_dart/pubspec.yaml
+++ b/mobile/plugins/onnx_dart/pubspec.yaml
@@ -13,9 +13,10 @@ dependencies:
plugin_platform_interface: ^2.0.2
dev_dependencies:
+ flutter_lints: ^3.0.0
flutter_test:
sdk: flutter
- flutter_lints: ^3.0.0
+
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml
index 01397a6115..9eca74d11f 100644
--- a/mobile/pubspec.yaml
+++ b/mobile/pubspec.yaml
@@ -124,12 +124,12 @@ dependencies:
motionphoto:
git: "https://github.com/ente-io/motionphoto.git"
move_to_background: ^1.0.2
+ onnx_dart:
+ path: plugins/onnx_dart
onnxruntime:
git:
url: https://github.com/ente-io/onnxruntime.git
ref: ente_onnxruntime
- onnx_dart:
- path: plugins/onnx_dart
open_mail_app: ^0.4.5
package_info_plus: ^4.1.0
page_transition: ^2.0.2