From c2e46171e389a3e555f4f76f424c798fbbd3c121 Mon Sep 17 00:00:00 2001 From: Timothy Freebern Date: Tue, 27 Aug 2024 11:49:30 -0400 Subject: [PATCH] Add http client argument --- lib/src/matomo.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/matomo.dart b/lib/src/matomo.dart index cfb3b8e..373d1b8 100644 --- a/lib/src/matomo.dart +++ b/lib/src/matomo.dart @@ -4,6 +4,7 @@ import 'dart:collection'; import 'package:device_info_plus/device_info_plus.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; +import 'package:http/http.dart' as http; import 'package:matomo_tracker/src/assert.dart'; import 'package:matomo_tracker/src/campaign.dart'; import 'package:matomo_tracker/src/content.dart'; @@ -226,6 +227,7 @@ class MatomoTracker { DispatchSettings dispatchSettings = const DispatchSettings.nonPersistent(), Duration? pingInterval = const Duration(seconds: 30), String? tokenAuth, + http.Client? httpClient, LocalStorage? localStorage, PackageInfo? packageInfo, PlatformInfo? platformInfo, @@ -290,6 +292,7 @@ class MatomoTracker { baseUrl: url, tokenAuth: tokenAuth, userAgent: this.userAgent, + httpClient: httpClient, log: log, );