Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 2554b1b28fde31bb63d191201061629f98eaaa80
  • Loading branch information
Madari Developers committed Jan 6, 2025
1 parent c97e19f commit 6f16bbd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
8 changes: 0 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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(),
Expand Down
8 changes: 0 additions & 8 deletions lib/main_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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(
Expand Down
4 changes: 0 additions & 4 deletions lib/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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: [
Expand Down

0 comments on commit 6f16bbd

Please sign in to comment.