piano_common 1.0.8
piano_common: ^1.0.8 copied to clipboard
Common package for Piano Flutter SDK.
1.0.8 #
PianoClient.userAgentnames the operating system and the device the way the native Piano SDKs do, rather thanPiano SDK for Flutter v<version> (Flutter; <aid>), so Piano Analytics reports them for the requests of the SDK;Piano.initreads it from the system properties on Android and fromdart:ioon 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, andPianoClient.httpClient, the one of a Piano instance, sending its requests withPianoClient.userAgentand closed byPiano.close
1.0.7 #
- General improvements
1.0.6 #
Piano.initdefaultsendpointtoPianoEndpoint.productionandaidto an empty string, so both may be left outPianoEndpointand its predefined endpoints areconst
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.initacceptsPianoModuleConfigurations,PianoClient.modulesholds the modules they created, andPiano.closereleases them PianoModuleConfiguration.createModulemay create a module asynchronously —Piano.initawaits every module, and closes the modules it created already when one of them fails
1.0.3 #
- Added
languageparameter toPiano.initandPianoClientfor localization (defaults toen_US)
1.0.2 #
- General improvements
1.0.1 #
- General improvements
1.0.0 #
- Initial release of piano_common package