Skip to main content

piano_common 1.0.8 copy "piano_common: ^1.0.8" to clipboard
piano_common: ^1.0.8 copied to clipboard

Common package for Piano Flutter SDK.

1.0.8 #

  • PianoClient.userAgent names the operating system and the device the way the native Piano SDKs do, rather than Piano SDK for Flutter v<version> (Flutter; <aid>), so Piano Analytics reports them for the requests of the SDK; Piano.init reads it from the system properties on Android and from dart:io on iOS, with no plugin, so a test calling it needs nothing more mocked
  • Added PianoUserAgent.fallback, the user agent of a device whose details cannot be read, which names its operating system only
  • Added PianoHttpClient, an HTTP client sending every request with a user agent, and PianoClient.httpClient, the one of a Piano instance, sending its requests with PianoClient.userAgent and closed by Piano.close

1.0.7 #

  • General improvements

1.0.6 #

  • Piano.init defaults endpoint to PianoEndpoint.production and aid to an empty string, so both may be left out
  • PianoEndpoint and its predefined endpoints are const

1.0.5 #

  • Added PianoModules.ofOrCreate, which creates and holds a module the application configured none of — for a module package whose module works without a configuration
  • Requires Dart 3.13.2 and Flutter 3.47.2 or newer

1.0.4 #

  • Added optional modules: Piano.init accepts PianoModuleConfigurations, PianoClient.modules holds the modules they created, and Piano.close releases them
  • PianoModuleConfiguration.createModule may create a module asynchronously — Piano.init awaits every module, and closes the modules it created already when one of them fails

1.0.3 #

  • Added language parameter to Piano.init and PianoClient for localization (defaults to en_US)

1.0.2 #

  • General improvements

1.0.1 #

  • General improvements

1.0.0 #

  • Initial release of piano_common package
0
likes
130
points
1.21k
downloads

Documentation

API reference

Publisher

verified publisherpiano.io

Weekly Downloads

Common package for Piano Flutter SDK.

Homepage

License

Apache-2.0 (license)

Dependencies

ffi, flutter, http, logger, meta, piano_consents_flutter, shared_preferences, uuid

More

Packages that depend on piano_common