HomeX-It / snowplow-flutter-tracker

Snowplow event tracker for Flutter. Add analytics to your Flutter apps and games http://snowplowanalytics.com
MIT License
5 stars 7 forks source link

Adds AbstractTracker #22

Closed ohitsdaniel closed 3 years ago

ohitsdaniel commented 3 years ago

This PR adds AbstractTracker and ConsentualTracker (as an example) which will allows us to compose trackers using the decorator pattern.

Future improvements:

AbstractTracker is also easier to inject in tests as it only exposes the tracking functionality and does not 'care' about the initialising / setting subjects.

codecov[bot] commented 3 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@419d38e). Click here to learn what that means. The diff coverage is n/a.

:exclamation: Current head 56d6ffe differs from pull request most recent head fe9f682. Consider uploading reports for the commit fe9f682 to get more accurate results Impacted file tree graph

@@          Coverage Diff           @@
##             main     #22   +/-   ##
======================================
  Coverage        ?   2.56%           
======================================
  Files           ?      25           
  Lines           ?     507           
  Branches        ?       0           
======================================
  Hits            ?      13           
  Misses          ?     494           
  Partials        ?       0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 419d38e...fe9f682. Read the comment docs.