forked from axiom-team/gecko
Add bug reports
This commit is contained in:
parent
1c26298a16
commit
31e9698796
|
@ -0,0 +1 @@
|
||||||
|
include ':app'
|
13
lib/api.dart
13
lib/api.dart
|
@ -4,6 +4,7 @@ import 'package:gql/language.dart' as gqlLang;
|
||||||
import 'package:gql_dio_link/gql_dio_link.dart';
|
import 'package:gql_dio_link/gql_dio_link.dart';
|
||||||
import 'package:gql_exec/gql_exec.dart';
|
import 'package:gql_exec/gql_exec.dart';
|
||||||
import "package:gql_link/gql_link.dart";
|
import "package:gql_link/gql_link.dart";
|
||||||
|
import 'package:sentry/sentry.dart' as sentry;
|
||||||
|
|
||||||
// Configure node
|
// Configure node
|
||||||
const graphqlEndpoint = "https://g1.librelois.fr/gva";
|
const graphqlEndpoint = "https://g1.librelois.fr/gva";
|
||||||
|
@ -26,8 +27,12 @@ Future buildQ(query) async {
|
||||||
try {
|
try {
|
||||||
client = dio.Dio();
|
client = dio.Dio();
|
||||||
print(client);
|
print(client);
|
||||||
} catch (e) {
|
} catch (e, stack) {
|
||||||
print(e);
|
print(e);
|
||||||
|
await sentry.Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stack,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
// final client = dio.Dio();
|
// final client = dio.Dio();
|
||||||
Link link;
|
Link link;
|
||||||
|
@ -43,8 +48,12 @@ Future buildQ(query) async {
|
||||||
))
|
))
|
||||||
.first;
|
.first;
|
||||||
return res;
|
return res;
|
||||||
} catch (e) {
|
} catch (e, stack) {
|
||||||
print("Erreur: Noeud injoingnable.");
|
print("Erreur: Noeud injoingnable.");
|
||||||
|
await sentry.Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stack,
|
||||||
|
);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,16 @@ import 'package:intl/intl.dart';
|
||||||
// import 'package:flutter_html_view';
|
// import 'package:flutter_html_view';
|
||||||
import 'api.dart';
|
import 'api.dart';
|
||||||
import "package:dio/dio.dart";
|
import "package:dio/dio.dart";
|
||||||
|
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||||
|
|
||||||
void main() {
|
Future<void> main() async {
|
||||||
runApp(MyApp());
|
await SentryFlutter.init(
|
||||||
|
(options) {
|
||||||
|
options.dsn =
|
||||||
|
'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110';
|
||||||
|
},
|
||||||
|
appRunner: () => runApp(MyApp()),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class MyApp extends StatefulWidget {
|
class MyApp extends StatefulWidget {
|
||||||
|
|
35
pubspec.lock
35
pubspec.lock
|
@ -109,6 +109,11 @@ packages:
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
|
flutter_web_plugins:
|
||||||
|
dependency: transitive
|
||||||
|
description: flutter
|
||||||
|
source: sdk
|
||||||
|
version: "0.0.0"
|
||||||
gql:
|
gql:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -200,6 +205,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0-nullsafety.3"
|
version: "1.3.0-nullsafety.3"
|
||||||
|
package_info:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: package_info
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.4.3+2"
|
||||||
path:
|
path:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -249,6 +261,20 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.21"
|
version: "0.2.21"
|
||||||
|
sentry:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: sentry
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "4.0.1"
|
||||||
|
sentry_flutter:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: sentry_flutter
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "4.0.1"
|
||||||
sky_engine:
|
sky_engine:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
|
@ -303,6 +329,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0-nullsafety.3"
|
version: "1.3.0-nullsafety.3"
|
||||||
|
uuid:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: uuid
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.2.2"
|
||||||
vector_math:
|
vector_math:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -326,4 +359,4 @@ packages:
|
||||||
version: "2.2.1"
|
version: "2.2.1"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.10.0-110 <2.11.0"
|
dart: ">=2.10.0-110 <2.11.0"
|
||||||
flutter: ">=1.12.13+hotfix.5 <2.0.0"
|
flutter: ">=1.17.0 <2.0.0"
|
||||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 0.0.0+3
|
version: 0.0.0+4
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.7.0 <3.0.0"
|
sdk: ">=2.7.0 <3.0.0"
|
||||||
|
@ -33,6 +33,7 @@ dependencies:
|
||||||
gql_link:
|
gql_link:
|
||||||
intl:
|
intl:
|
||||||
flutter_launcher_icons: "^0.8.0"
|
flutter_launcher_icons: "^0.8.0"
|
||||||
|
sentry_flutter: ^4.0.1
|
||||||
|
|
||||||
flutter_icons:
|
flutter_icons:
|
||||||
android: "launcher_icon"
|
android: "launcher_icon"
|
||||||
|
|
Loading…
Reference in New Issue