matomo-org / matomo-sdk-android

SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!
BSD 3-Clause "New" or "Revised" License
386 stars 163 forks source link

Add ability to reset tracker state #373

Closed FabioTacke closed 1 year ago

FabioTacke commented 1 year ago

This adds the feature to reset the whole tracker state in order to decouple tracking sessions manually. This way the data bound to a device right now can be reset and treat the user as a new user.

codecov-commenter commented 1 year ago

Codecov Report

Merging #373 (5a58a30) into master (36840e9) will increase coverage by 0.21%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #373      +/-   ##
============================================
+ Coverage     86.93%   87.15%   +0.21%     
- Complexity      371      372       +1     
============================================
  Files            32       32              
  Lines          1408     1432      +24     
  Branches        164      164              
============================================
+ Hits           1224     1248      +24     
  Misses          115      115              
  Partials         69       69              
Impacted Files Coverage Δ
tracker/src/main/java/org/matomo/sdk/Tracker.java 94.08% <100.00%> (+0.79%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

d4rken commented 1 year ago

If @d4rken doesn't find anything against it, I will merge it tomorrow

I'm okay with it if you are :+1:

Nice, even with a test for it ! I

:heart:

Would this PR relate to or even close #259 or #261?