Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed Jul 3, 2024
2 parents 6094c71 + b167a47 commit 1c7c3f2
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 19 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## [5.0.0-dev.3]

* build(deps): bump package_info_plus from 7.0.0 to 8.0.0 by @dependabot in https://github.com/Floating-Dartists/matomo-tracker/pull/151
* build(deps): bump custom_lint from 0.5.11 to 0.6.4 by @dependabot in https://github.com/Floating-Dartists/matomo-tracker/pull/152
* Bumping up versions and min SDK to 3.4.1 by @Hyla96 in https://github.com/Floating-Dartists/matomo-tracker/pull/153
* docs(contributor): contributors readme action update by @github-actions in https://github.com/Floating-Dartists/matomo-tracker/pull/154

## New Contributors
* @Hyla96 made their first contribution in https://github.com/Floating-Dartists/matomo-tracker/pull/153

**Full Changelog**: https://github.com/Floating-Dartists/matomo-tracker/compare/5.0.0-dev.2...5.0.0-dev.3

## [5.0.0-dev.2]

* build(deps): bump device_info_plus from 9.1.2 to 10.0.1 by @dependabot in https://github.com/Floating-Dartists/matomo-tracker/pull/146
* build(deps): bump package_info_plus from 6.0.0 to 7.0.0 by @dependabot in https://github.com/Floating-Dartists/matomo-tracker/pull/148
* Prepare v5.0.0-dev.2 by @TesteurManiak in https://github.com/Floating-Dartists/matomo-tracker/pull/150


**Full Changelog**: https://github.com/Floating-Dartists/matomo-tracker/compare/5.0.0-dev.1...5.0.0-dev.2

## [5.0.0-dev.1]

* build(deps): bump uuid from 3.0.7 to 4.1.0 by @dependabot in https://github.com/Floating-Dartists/matomo-tracker/pull/125
Expand Down
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,15 +360,15 @@ await MatomoTracker.instance.initialize(
</a>
</td>
<td align="center">
<a href="https://github.com/stefan01">
<img src="https://avatars.githubusercontent.com/u/1234184?v=4" width="100;" alt="stefan01"/>
<a href="https://github.com/KawachenCofinpro">
<img src="https://avatars.githubusercontent.com/u/56601057?v=4" width="100;" alt="KawachenCofinpro"/>
<br />
<sub><b>Null</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/KawachenCofinpro">
<img src="https://avatars.githubusercontent.com/u/56601057?v=4" width="100;" alt="KawachenCofinpro"/>
<a href="https://github.com/stefan01">
<img src="https://avatars.githubusercontent.com/u/1234184?v=4" width="100;" alt="stefan01"/>
<br />
<sub><b>Null</b></sub>
</a>
Expand Down Expand Up @@ -409,6 +409,13 @@ await MatomoTracker.instance.initialize(
<sub><b>Lsaudon</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/kuhnroyal">
<img src="https://avatars.githubusercontent.com/u/1260818?v=4" width="100;" alt="kuhnroyal"/>
<br />
<sub><b>Peter Leibiger</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/zvikarp">
<img src="https://avatars.githubusercontent.com/u/13397207?v=4" width="100;" alt="zvikarp"/>
Expand All @@ -422,15 +429,22 @@ await MatomoTracker.instance.initialize(
<br />
<sub><b>Null</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/Hyla96">
<img src="https://avatars.githubusercontent.com/u/16517737?v=4" width="100;" alt="Hyla96"/>
<br />
<sub><b>Gabriel Costache</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/hpoul">
<img src="https://avatars.githubusercontent.com/u/313066?v=4" width="100;" alt="hpoul"/>
<br />
<sub><b>Herbert Poul</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/jainhitesh9998">
<img src="https://avatars.githubusercontent.com/u/16622965?v=4" width="100;" alt="jainhitesh9998"/>
Expand Down
3 changes: 2 additions & 1 deletion lib/src/matomo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ class MatomoTracker {
final systemName = iosInfo.systemName;
final version = iosInfo.systemVersion;
final model = iosInfo.model;
final machine = iosInfo.utsname.machine;

return '$systemName $version, $model';
return '$systemName $version, $model $machine';
} else if (_platformInfo.isWindows) {
final windowsInfo = await effectiveDeviceInfo.windowsInfo;
final releaseId = windowsInfo.releaseId;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/matomo_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class MatomoAction {
final ua = tracker.userAgent;
final dims = dimensions;
final locale = PlatformDispatcher.instance.locale;
final country = locale.countryCode;
final country = locale.countryCode?.toLowerCase();
final nV = newVisit;
final p = ping;
final cont = content;
Expand Down
20 changes: 10 additions & 10 deletions 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: 5.0.0-dev.2
version: 5.0.0-dev.3
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 All @@ -10,26 +10,26 @@ topics:
- analytics

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.4.1 <4.0.0"
flutter: ">=3.3.0"

dependencies:
clock: ^1.1.1
collection: ^1.17.2
collection: ^1.18.0
device_info_plus: ">=9.1.0 <11.0.0"
flutter:
sdk: flutter
http: ^1.1.0
package_info_plus: ">=4.2.0 <8.0.0"
shared_preferences: ^2.2.2
http: ^1.2.1
package_info_plus: ">=4.2.0 <9.0.0"
shared_preferences: ^2.2.3
uuid: ">=4.1.0 <6.0.0"

dev_dependencies:
custom_lint: ^0.5.4
fd_lints: ^2.2.0
custom_lint: ">=0.5.4 <0.7.0"
fd_lints: ^2.2.1
flutter_test:
sdk: flutter
meta: ^1.9.1
mocktail: ^1.0.2
meta: ^1.12.0
mocktail: ^1.0.3

flutter: null
1 change: 1 addition & 0 deletions test/ressources/mock/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const androidModel = 'androidModel';
const iosSystemName = 'iosSystemName';
const iosSystemVersion = 'iosSystemVersion';
const iosModel = 'iosModel';
const iosMachine = 'iosMachine';
const windowsReleaseId = 'windowsReleaseId';
const windowsBuildNumber = 1;
const macOsModel = 'macOsModel';
Expand Down
3 changes: 3 additions & 0 deletions test/ressources/mock/mock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class MockAndroidBuildVersion extends Mock implements AndroidBuildVersion {}

class MockIosDeviceInfo extends Mock implements IosDeviceInfo {}

class MockIosDeviceUtsname extends Mock implements IosUtsname {}

class MockWindowsDeviceInfo extends Mock implements WindowsDeviceInfo {}

class MockMacOsDeviceInfo extends Mock implements MacOsDeviceInfo {}
Expand Down Expand Up @@ -76,6 +78,7 @@ final mockWebBrowserInfo = MockWebBrowserInfo();
final mockAndroidDeviceInfo = MockAndroidDeviceInfo();
final mockAndroidBuildVersion = MockAndroidBuildVersion();
final mockIosDeviceInfo = MockIosDeviceInfo();
final mockIosUtsname = MockIosDeviceUtsname();
final mockWindowsDeviceInfo = MockWindowsDeviceInfo();
final mockMacOsDeviceInfo = MockMacOsDeviceInfo();
final mockLinuxDeviceInfo = MockLinuxDeviceInfo();
Expand Down
4 changes: 3 additions & 1 deletion test/src/matomo_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ void main() {
when(() => mockIosDeviceInfo.systemName).thenReturn(iosSystemName);
when(() => mockIosDeviceInfo.systemVersion).thenReturn(iosSystemVersion);
when(() => mockIosDeviceInfo.model).thenReturn(iosModel);
when(() => mockIosDeviceInfo.utsname).thenReturn(mockIosUtsname);
when(() => mockIosUtsname.machine).thenReturn(iosMachine);

// Windows
when(() => mockDeviceInfoPlugin.windowsInfo)
Expand Down Expand Up @@ -373,7 +375,7 @@ void main() {

expect(
userAgent,
'$iosSystemName $iosSystemVersion, $iosModel',
'$iosSystemName $iosSystemVersion, $iosModel $iosMachine',
);
});

Expand Down

0 comments on commit 1c7c3f2

Please sign in to comment.