Skip to content

Commit

Permalink
Merge pull request #171 from zCoreGroup/main
Browse files Browse the repository at this point in the history
Adding `http.Client` argument to the MatomoDispatcher class
  • Loading branch information
TesteurManiak authored Aug 28, 2024
2 parents 0b03b8d + 770bc76 commit 650180d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/matomo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -290,6 +292,7 @@ class MatomoTracker {
baseUrl: url,
tokenAuth: tokenAuth,
userAgent: this.userAgent,
httpClient: httpClient,
log: log,
);

Expand Down

0 comments on commit 650180d

Please sign in to comment.