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 Aug 17, 2023
2 parents 37007ef + 4c06ef6 commit ac063e8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ await MatomoTracker.instance.initialize(
```
Note that this Visitor ID should not be confused with the User ID which is explained below!

Then, for `TraceableClientMixin` and `TraceableWidget` to work, you will have to add `matomoObserver` to your navigatorObservers:

```dart
MaterialApp(
// ...
navigatorObservers: [
matomoObserver,
],
);
```

To track views simply add `TraceableClientMixin` on your `State`:

```dart
Expand Down Expand Up @@ -229,7 +240,7 @@ await MatomoTracker.instance.initialize(
MaterialApp(
// ...
navigatorObservers: [
MatomoTracker.matomoObserver,
matomoObserver,
],
);
```
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ android {
applicationId "org.matomo_tracker.example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
minSdkVersion 19
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
14 changes: 7 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ environment:
dependencies:
clock: ^1.1.1
collection: ^1.17.1
device_info_plus: ^9.0.2
device_info_plus: ^9.0.3
flutter:
sdk: flutter
http: ^1.0.0
package_info_plus: ^4.0.2
shared_preferences: ^2.1.1
http: ^1.1.0
package_info_plus: ^4.1.0
shared_preferences: ^2.2.0
uuid: ^3.0.7

dev_dependencies:
custom_lint: ^0.4.0
fd_lints: ^2.0.0
custom_lint: ">=0.4.0 <0.6.0"
fd_lints: ^2.1.0
flutter_test:
sdk: flutter
meta: ^1.9.1
mocktail: ^0.3.0
mocktail: ^1.0.0

flutter: null

0 comments on commit ac063e8

Please sign in to comment.