poitch / dart-matomo

A Dart Matomo Client
MIT License
20 stars 39 forks source link

fix: PackageInfo on web and remove pubspec.lock #4

Closed krille-chan closed 3 years ago

krille-chan commented 3 years ago

Hello there again :-)

in Sentry I have caught a problem on web when using this package because PackageInfo throws an platform not supported exception on web. As a workaround I have placed the location in currentBase. I hope you like this solution.

Also I have (if it is okay) removed the pubspec.lock file and added it to .gitignore. The dart documentation recommends this for libraries so the apps which depend on the library can decide which package to use, which was necessary for us to solve a dependency hell problem. I hope you are okay with this.

I wish you a happy christmas this year and stay healthy!