From 6f16bbd39887bdecd07ec12839108aab42cce7b2 Mon Sep 17 00:00:00 2001 From: Madari Developers Date: Mon, 6 Jan 2025 17:36:50 +0000 Subject: [PATCH] Project import generated by Copybara. GitOrigin-RevId: 2554b1b28fde31bb63d191201061629f98eaaa80 --- lib/main.dart | 8 -------- lib/main_web.dart | 8 -------- lib/routes.dart | 4 ---- 3 files changed, 20 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 907f02e..5d00f95 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,7 +12,6 @@ import 'package:madari_client/engine/engine.dart'; import 'package:madari_client/features/doc_viewer/container/doc_viewer.dart'; import 'package:madari_client/features/doc_viewer/types/doc_source.dart'; import 'package:madari_client/routes.dart'; -import 'package:matomo_tracker/matomo_tracker.dart'; import 'package:media_kit/media_kit.dart'; import 'package:path/path.dart' as path; import 'package:window_manager/window_manager.dart'; @@ -29,13 +28,6 @@ void main() async { print("Unable"); } - try { - await MatomoTracker.instance.initialize( - siteId: "3", - url: 'https://user.madari.media/matomo.php', - ); - } catch (e) {} - try { CachedQuery.instance.configFlutter( storage: await CachedStorage.ensureInitialized(), diff --git a/lib/main_web.dart b/lib/main_web.dart index 67cd82b..7220cda 100644 --- a/lib/main_web.dart +++ b/lib/main_web.dart @@ -3,7 +3,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:madari_client/routes.dart'; -import 'package:matomo_tracker/matomo_tracker.dart'; import 'package:media_kit/media_kit.dart'; import 'engine/engine.dart'; @@ -17,13 +16,6 @@ void main() async { final pb = AppEngine.engine.pb; final userCollection = pb.collection("users"); - try { - await MatomoTracker.instance.initialize( - siteId: "3", - url: 'https://user.madari.media/matomo.php', - ); - } catch (e) {} - if (pb.authStore.isValid) { try { final user = await userCollection.getOne( diff --git a/lib/routes.dart b/lib/routes.dart index 271e207..9cb192a 100644 --- a/lib/routes.dart +++ b/lib/routes.dart @@ -4,7 +4,6 @@ import 'package:go_router/go_router.dart'; import 'package:madari_client/engine/engine.dart'; import 'package:madari_client/pages/library_view.page.dart'; import 'package:madari_client/pages/stremio_item.page.dart'; -import 'package:matomo_tracker/matomo_tracker.dart'; import 'features/connections/types/stremio/stremio_base.types.dart'; import 'pages/download.page.dart'; @@ -21,9 +20,6 @@ GoRouter createRouter() { return GoRouter( navigatorKey: rootNavigatorKey, initialLocation: '/', - observers: [ - matomoObserver, - ], refreshListenable: ValueNotifier(AppEngine.engine.pb.authStore.onChange), redirect: (context, state) => _routeGuard(context, state), routes: [