Closed TesteurManiak closed 1 year ago
This is a good idea. People can now use whatever storage solution pleases them, although I think 99% will use shared_preferences. However, we need to add documentation about this change.
@Pierre-Monier You're right as this represents a major change for the next release on pub.dev I'll add a migration guide section to the README.
To simplify maintenance on the package I've abstracted the SharedPreferences with a
LocalStorage
class I've also added some exception and argument checks instead of assertion to leverage an error even in profile and release mode.This cause a breaking change in
MatomoTracker.initialize
as you know can only pass aLocalStorage
instead of aSharedPreferences
.