aboutsummaryrefslogtreecommitdiff
path: root/plugins/aves_report_console
diff options
context:
space:
mode:
authormirror <mirror@localhost>2026-11-22 08:41:00 +0900
committermirror <mirror@localhost>2026-11-22 08:41:00 +0900
commit449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch)
treec131c3528c4d517f56e19b854a7453fedb097d40 /plugins/aves_report_console
downloadaves-src-master.tar.gz
aves-src-master.zip
snapshot of aves v1.13.12 (secrets removed: android/app/google-services.json)HEADv1.13.12master
Diffstat (limited to 'plugins/aves_report_console')
-rw-r--r--plugins/aves_report_console/.gitignore45
-rw-r--r--plugins/aves_report_console/.metadata10
-rw-r--r--plugins/aves_report_console/analysis_options.yaml1
-rw-r--r--plugins/aves_report_console/lib/aves_report_platform.dart28
-rw-r--r--plugins/aves_report_console/pubspec.yaml18
5 files changed, 102 insertions, 0 deletions
diff --git a/plugins/aves_report_console/.gitignore b/plugins/aves_report_console/.gitignore
new file mode 100644
index 0000000..79c113f
--- /dev/null
+++ b/plugins/aves_report_console/.gitignore
@@ -0,0 +1,45 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.build/
+.buildlog/
+.history
+.svn/
+.swiftpm/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/plugins/aves_report_console/.metadata b/plugins/aves_report_console/.metadata
new file mode 100644
index 0000000..db56104
--- /dev/null
+++ b/plugins/aves_report_console/.metadata
@@ -0,0 +1,10 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: 18116933e77adc82f80866c928266a5b4f1ed645
+ channel: stable
+
+project_type: package
diff --git a/plugins/aves_report_console/analysis_options.yaml b/plugins/aves_report_console/analysis_options.yaml
new file mode 100644
index 0000000..f04c6cf
--- /dev/null
+++ b/plugins/aves_report_console/analysis_options.yaml
@@ -0,0 +1 @@
+include: ../../analysis_options.yaml
diff --git a/plugins/aves_report_console/lib/aves_report_platform.dart b/plugins/aves_report_console/lib/aves_report_platform.dart
new file mode 100644
index 0000000..dd1d461
--- /dev/null
+++ b/plugins/aves_report_console/lib/aves_report_platform.dart
@@ -0,0 +1,28 @@
+import 'package:aves_report/aves_report.dart';
+import 'package:flutter/foundation.dart';
+
+class PlatformReportService extends ReportService {
+ @override
+ Future<void> init() => SynchronousFuture(null);
+
+ @override
+ Future<void> log(String message) async => debugPrint('Report log with message=$message');
+
+ @override
+ Future<void> recordError(dynamic exception, [StackTrace? stack]) async => debugPrint('Report error with exception=$exception, stack=$stack');
+
+ @override
+ Future<void> recordFlutterError(FlutterErrorDetails flutterErrorDetails) async => debugPrint('Report Flutter error with details=$flutterErrorDetails');
+
+ @override
+ Future<void> setCollectionEnabled(bool enabled) => SynchronousFuture(null);
+
+ @override
+ Future<void> setCustomKey(String key, Object value) async => debugPrint('Report set key $key=$value');
+
+ @override
+ Future<void> setCustomKeys(Map<String, Object> map) async => debugPrint('Report set keys ${map.entries.map((kv) => '${kv.key}=${kv.value}').join(', ')}');
+
+ @override
+ Map<String, String> get state => {'Reporter': 'Console'};
+}
diff --git a/plugins/aves_report_console/pubspec.yaml b/plugins/aves_report_console/pubspec.yaml
new file mode 100644
index 0000000..abf3801
--- /dev/null
+++ b/plugins/aves_report_console/pubspec.yaml
@@ -0,0 +1,18 @@
+name: aves_report_platform
+version: 0.0.1
+publish_to: none
+
+environment:
+ sdk: ">=3.6.0 <4.0.0" # incoherent dartfmt from 3.7.0
+resolution: workspace
+
+dependencies:
+ flutter:
+ sdk: flutter
+ aves_report:
+ path: ../aves_report
+
+dev_dependencies:
+ flutter_lints:
+
+flutter: