umami_flutter 0.1.2
umami_flutter: ^0.1.2 copied to clipboard
A lightweight Flutter package for Umami analytics with non-blocking initialization and automatic device info collection.
0.1.2 #
- Upgraded
device_info_plusfrom ^11.5.0 to ^12.3.0. - Upgraded
flutter_secure_storagefrom ^9.2.4 to ^10.0.0. - Upgraded
flutter_lintsfrom ^5.0.0 to ^6.0.0. - Removed deprecated
encryptedSharedPreferencesparameter (auto-migrated by v10). - Updated README with Firebase Analytics comparison and contributing guide.
0.1.1 #
Bug Fixes #
- Fixed
init()— now recovers from failures and can be retried (was permanently broken after a single failure). - Fixed double-
init()call crash — second call is now safely ignored. - Fixed HTTP client leak — reusing a single
IOClientinstead of creating a new one per event send. - Fixed repository and homepage URLs in
pubspec.yaml. - Fixed version mismatch between
pubspec.yamlandCHANGELOG.md.
New Features #
- Added
onErrorcallback parameter toinit()for monitoring analytics failures in production. - Added configurable
userAgentparameter toinit()to override the default browser User-Agent. - Added
UmamiAnalytics.isInitializedgetter to check initialization state. - Added
UmamiAnalytics.reset()method for testing and re-initialization scenarios. - Exported
DeviceIdServiceso consumers can access the persistent device ID independently.
Improvements #
- Added
platformsfield topubspec.yaml(Android, iOS, macOS, Windows — no web). - Upgraded
uuiddependency from ^3.0.5 to ^4.0.0. - Added comprehensive dartdoc to all public API surfaces.
- Added
example/main.dartwith full usage demo. - Added 15 unit tests (was previously empty).
- Updated
README.mdwith full API reference, init parameters table, and architecture overview.
0.1.0 #
- Initial release.
- Non-blocking
init()with automatic device info collection. trackScreen()andtrackEvent()— fire-and-forget, safe to call before init completes.- Persistent device IDs via Keychain (iOS/macOS) and EncryptedSharedPreferences (Android).
- Platform-specific User-Agent for accurate OS detection in Umami.
- Multi-platform support: Android, iOS, macOS, Windows.