Skip to content

Commit

Permalink
prepare v2
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed Nov 30, 2022
1 parent e262b47 commit 55a3fe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changelog

## [1.8.0]
## [2.0.0]

* **Breaking Change**: Removed `name` and `widgetName` arguments from `trackEvent` method
* Contributions from [Chris Tomlinson](https://github.com/luckyrat)
* fix: Problem with visitor id [#26](https://github.com/Floating-Dartists/matomo-tracker/issues/26)
* fix: PII in the user agent string can cause tracking failure [#39](https://github.com/Floating-Dartists/matomo-tracker/issues/39)
Expand Down
7 changes: 2 additions & 5 deletions lib/src/matomo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@ class MatomoTracker {
required String eventCategory,
required String action,
String? eventName,
// TODO: Remove when old enough 13.06.2022
@Deprecated('Please use [eventName] instead') String? name,
@Deprecated('Please use [eventCategory] instead') String? widgetName,
int? eventValue,
Map<String, String>? dimensions,
}) {
Expand All @@ -359,8 +356,8 @@ class MatomoTracker {
tracker: this,
action: action,
eventAction: action,
eventName: name ?? eventName,
eventCategory: widgetName ?? eventCategory,
eventName: eventName,
eventCategory: eventCategory,
eventValue: eventValue,
dimensions: dimensions,
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: matomo_tracker
description: A fully cross-platform wrap of the Matomo tracking client for
Flutter, using the Matomo API.
version: 1.8.0
version: 2.0.0
homepage: https://github.com/Floating-Dartists/matomo-tracker
repository: https://github.com/Floating-Dartists/matomo-tracker
issue_tracker: https://github.com/Floating-Dartists/matomo-tracker/issues
Expand Down

0 comments on commit 55a3fe9

Please sign in to comment.