Skip to main content

mitr_flutter 0.2.0 copy "mitr_flutter: ^0.2.0" to clipboard
mitr_flutter: ^0.2.0 copied to clipboard

Official Flutter SDK for Mitr Analytics — privacy-first, zero-PII event tracking for iOS, Android, desktop, and web.

0.2.0 #

  • First release published to pub.dev — install with flutter pub add mitr_flutter instead of a git/path dependency.
  • Fixed the default baseUrl, which pointed at an unregistered domain (api.mitr.io) and silently sent events nowhere for anyone who didn't override it. It's now https://api.mitranalytics.dev/api/v1.
  • dryRun: true no longer fires the debug-mode diagnostic ping — it now makes exactly zero network requests, as documented.
  • Added an example/ app covering track, pageView, identify, reset, and flush.
  • Released under the MIT license.
  • Public API is now MitrAnalytics.instance (initialize, track, pageView, identify, reset, flush), matching the dashboard's integration snippet.
  • Added identify(userId) / reset() with a persisted (SharedPreferences) identity, so track/pageView no longer require a uid on every call — an anonymous device id is generated and reused automatically until you identify a real user.
  • Added pageView(path) as an explicit convenience method alongside generic track(eventType, ...).
  • MitrNavigationObserver no longer requires a userId constructor argument — call MitrAnalytics.instance.identify() once instead.
  • Event queue now persists to disk between app launches, so events buffered right before the app is killed aren't lost.
  • Fixed a pre-existing bug where package:web was imported unconditionally, breaking compilation for flutter test and any non-web target — it's now isolated behind a conditional export.
  • Fixed doubled/inconsistent debug-log prefixes (e.g. MITR TRACKING: MITR TRACKING [DEV ERROR]: ...) — internal log calls now route through MitrLogger.log/.dev/.error correctly instead of re-embedding their own prefix text.
  • Hardened device-info collection (os/screen size/locale/device type) so a missing rendered view — possible in some embeddings, headless environments, or very early startup — falls back to safe defaults instead of throwing out of initialize()/track()/pageView() and crashing the host app.
  • Added unit tests covering MitrClient's batching, forced-immediate flush, offline retry/re-queue, and cross-session queue restoration — previously only exercised via dryRun: true, which skips the network path entirely.
  • Cleaned up analyzer lints (dart analyze/pub.dev static analysis now reports zero issues): removed the unnecessary library declaration and renamed MitrLogger.dart to mitr_logger.dart to match Dart file-naming conventions.

0.0.1 #

  • Initial release.
1
likes
160
points
55
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Official Flutter SDK for Mitr Analytics — privacy-first, zero-PII event tracking for iOS, Android, desktop, and web.

Homepage
Repository (GitHub)
View/report issues

Topics

#analytics #tracking #privacy #events

License

MIT (license)

Dependencies

app_links, crypto, dio, flutter, shared_preferences, web

More

Packages that depend on mitr_flutter