fix gradle bad expection; remove old sentry comment
This commit is contained in:
parent
edaf0655ad
commit
c4b9eaf2ea
|
@ -8,7 +8,7 @@ if (localPropertiesFile.exists()) {
|
||||||
|
|
||||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
||||||
if (flutterRoot == null) {
|
if (flutterRoot == null) {
|
||||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
throw new RuntimeException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
||||||
}
|
}
|
||||||
|
|
||||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||||
|
|
|
@ -72,23 +72,9 @@ Future<void> main() async {
|
||||||
|
|
||||||
chestBox = await Hive.openBox<ChestData>("chestBox");
|
chestBox = await Hive.openBox<ChestData>("chestBox");
|
||||||
|
|
||||||
// Reset GraphQL cache
|
|
||||||
// final cache = HiveStore();
|
|
||||||
// cache.reset();
|
|
||||||
|
|
||||||
HttpOverrides.global = MyHttpOverrides();
|
HttpOverrides.global = MyHttpOverrides();
|
||||||
|
|
||||||
if (kReleaseMode && enableSentry) {
|
if (kReleaseMode && enableSentry) {
|
||||||
// CatcherOptions debugOptions = CatcherOptions(DialogReportMode(), [
|
|
||||||
// SentryHandler(SentryClient(SentryOptions(
|
|
||||||
// dsn:
|
|
||||||
// "https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110")))
|
|
||||||
// ]);
|
|
||||||
// // CatcherOptions releaseOptions = CatcherOptions(NotificationReportMode(), [
|
|
||||||
// // EmailManualHandler(["poka@p2p.legal"])
|
|
||||||
// // ]);
|
|
||||||
// Catcher(rootWidget: Gecko(endPointGVA, _store), debugConfig: debugOptions);
|
|
||||||
|
|
||||||
await SentryFlutter.init((options) {
|
await SentryFlutter.init((options) {
|
||||||
options.dsn =
|
options.dsn =
|
||||||
'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110';
|
'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110';
|
||||||
|
|
Loading…
Reference in New Issue