fluffychat merge
This commit is contained in:
commit
3cd12a3828
3 changed files with 17 additions and 18 deletions
|
|
@ -2,7 +2,6 @@ import 'dart:io';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:matrix/matrix.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
|
@ -16,12 +15,12 @@ class ErrorReporter {
|
|||
|
||||
const ErrorReporter(this.context, [this.message]);
|
||||
|
||||
static const Set<Type> ingoredTypes = {
|
||||
IOException,
|
||||
http.ClientException,
|
||||
SocketException,
|
||||
TlsException,
|
||||
HandshakeException,
|
||||
static const Set<String> ingoredTypes = {
|
||||
"IOException",
|
||||
"ClientException",
|
||||
"SocketException",
|
||||
"TlsException",
|
||||
"HandshakeException",
|
||||
};
|
||||
|
||||
Future<File> _getTemporaryErrorLogFile() async {
|
||||
|
|
@ -33,7 +32,7 @@ class ErrorReporter {
|
|||
Object error, [
|
||||
StackTrace? stackTrace,
|
||||
]) async {
|
||||
if (ingoredTypes.contains(error.runtimeType)) return;
|
||||
if (ingoredTypes.contains(error.runtimeType.toString())) return;
|
||||
final file = await _getTemporaryErrorLogFile();
|
||||
if (await file.exists()) await file.delete();
|
||||
await file.writeAsString(
|
||||
|
|
@ -53,7 +52,7 @@ class ErrorReporter {
|
|||
}
|
||||
|
||||
void onErrorCallback(Object error, [StackTrace? stackTrace]) {
|
||||
if (ingoredTypes.contains(error.runtimeType)) return;
|
||||
if (ingoredTypes.contains(error.runtimeType.toString())) return;
|
||||
Logs().e(message ?? 'Error caught', error, stackTrace);
|
||||
// #Pangea
|
||||
// final text = '$error\n${stackTrace ?? ''}';
|
||||
|
|
|
|||
12
pubspec.lock
12
pubspec.lock
|
|
@ -581,10 +581,10 @@ packages:
|
|||
dependency: "direct main"
|
||||
description:
|
||||
name: file_picker
|
||||
sha256: "97a943524074a1e8e858aa154d09e38a4168a9ad765d6cac66606fd906b86875"
|
||||
sha256: "8f9f429998f9232d65bc4757af74475ce44fc80f10704ff5dfa8b1d14fc429b9"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "10.2.2"
|
||||
version: "10.2.3"
|
||||
file_selector:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
|
@ -1246,10 +1246,10 @@ packages:
|
|||
dependency: "direct main"
|
||||
description:
|
||||
name: http
|
||||
sha256: "85ab0074f9bf2b24625906d8382bbec84d3d6919d285ba9c106b07b65791fb99"
|
||||
sha256: bb2ce4590bc2667c96f318d68cac1b5a7987ec819351d32b1c987239a815e007
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.5.0-beta.2"
|
||||
version: "1.5.0"
|
||||
http_multi_server:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
@ -2409,10 +2409,10 @@ packages:
|
|||
dependency: "direct main"
|
||||
description:
|
||||
name: sqlcipher_flutter_libs
|
||||
sha256: "550a0758aa4bba6eab75035102809506d76f2d71b9fb0c0f6e9cc414db0fe064"
|
||||
sha256: dd1fcc74d5baf3c36ad53e2652b2d06c9f8747494a3ccde0076e88b159dfe622
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.6.7"
|
||||
version: "0.6.8"
|
||||
sqlite3:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ dependencies:
|
|||
dynamic_color: ^1.8.1
|
||||
emoji_picker_flutter: ^4.3.0
|
||||
emojis: ^0.9.9
|
||||
file_picker: ^10.2.2
|
||||
file_picker: ^10.2.3
|
||||
file_selector: ^1.0.3
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
|
@ -58,7 +58,7 @@ dependencies:
|
|||
go_router: ^16.1.0
|
||||
handy_window: ^0.4.0
|
||||
html: ^0.15.4
|
||||
http: ^1.2.0
|
||||
http: ^1.5.0
|
||||
image: ^4.1.7
|
||||
image_picker: ^1.1.0
|
||||
intl: any
|
||||
|
|
@ -91,7 +91,7 @@ dependencies:
|
|||
shared_preferences: ^2.2.0 # Pinned because https://github.com/flutter/flutter/issues/118401
|
||||
slugify: ^2.0.0
|
||||
sqflite_common_ffi: ^2.3.6
|
||||
sqlcipher_flutter_libs: ^0.6.7
|
||||
sqlcipher_flutter_libs: ^0.6.8
|
||||
swipe_to_action: ^0.3.0
|
||||
tor_detector_web: ^1.1.0
|
||||
unifiedpush: ^6.0.2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue