diff --git a/android/app/build.gradle b/android/app/build.gradle index d5f7926..48add20 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -8,7 +8,7 @@ if (localPropertiesFile.exists()) { def flutterRoot = localProperties.getProperty('flutter.sdk') 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') diff --git a/lib/main.dart b/lib/main.dart index 28db6e3..e364d93 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -72,23 +72,9 @@ Future main() async { chestBox = await Hive.openBox("chestBox"); - // Reset GraphQL cache - // final cache = HiveStore(); - // cache.reset(); - HttpOverrides.global = MyHttpOverrides(); 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) { options.dsn = 'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110';