style: Lint using very_good_analysis

This commit is contained in:
2022-09-06 14:08:36 +02:00
parent acd186e0b6
commit 3aad6b617d
30 changed files with 231 additions and 254 deletions

View File

@@ -0,0 +1 @@
include: ../../analysis_options.yaml

View File

@@ -1,12 +1,4 @@
import "package:moxplatform_platform_interface/moxplatform_platform_interface.dart";
import "package:moxplatform_platform_interface/src/isolate.dart";
import "package:moxplatform_platform_interface/src/media.dart";
library moxplatform;
export "package:moxplatform_platform_interface/src/isolate.dart" show IsolateHandler;
export "package:moxplatform_platform_interface/src/media.dart" show MediaScannerImplementation;
export "package:moxplatform_platform_interface/src/service.dart" show BackgroundService;
class MoxplatformPlugin {
static IsolateHandler get handler => MoxplatformInterface.handler;
static MediaScannerImplementation get media => MoxplatformInterface.media;
}
export 'src/plugin.dart';
export 'src/types.dart';

View File

@@ -0,0 +1,6 @@
import 'package:moxplatform_platform_interface/moxplatform_platform_interface.dart';
class MoxplatformPlugin {
static IsolateHandler get handler => MoxplatformInterface.handler;
static MediaScannerImplementation get media => MoxplatformInterface.media;
}

View File

@@ -1,4 +1,4 @@
import "package:moxlib/awaitabledatasender.dart";
import 'package:moxlib/awaitabledatasender.dart';
abstract class BackgroundCommand implements JsonImplementation {}
abstract class BackgroundEvent implements JsonImplementation {}

View File

@@ -19,6 +19,10 @@ dependencies:
flutter:
sdk: flutter
moxlib:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: 0.1.4
moxplatform_android:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: 0.1.11
@@ -26,11 +30,8 @@ dependencies:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: 0.1.11
moxlib:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: 0.1.4
dev_dependencies:
flutter_test:
sdk: flutter
plugin_platform_interface: 2.1.2
very_good_analysis: 2.4.0