truemetrics_flutter_sdk 0.0.11
truemetrics_flutter_sdk: ^0.0.11 copied to clipboard
Flutter plugin for Truemetrics SDK
0.0.11 #
- Updated native Android SDK to 1.5.4
- Fixed metadata values being corrupted: characters like
:,/,\,*,?, and;are now preserved as sent - Fixed crash when
StandardMetadata.extraisnull - Fixed a rare crash when the background upload worker was restarted by the system before the host app re-initialized the SDK
0.0.10 #
- Updated native Android SDK to 1.5.3
- Improved crash report accuracy — stack traces now include correct line numbers and method attribution
0.0.9 #
- Updated native Android SDK to 1.5.2
- Fixed spurious error logs when optional stats module is not bundled
- Fixed crash when metadata contains null values (e.g. from Java/Xamarin callers)
- Removed debug recording notification that could appear on some builds
0.0.8 #
- Updated native Android SDK to 1.5.1
- Added
logStandardMetadata(StandardMetadata)for logging standardized delivery/pickup event metadata with structured fields - Deprecated:
logMetadata(Map)is deprecated in favor oflogStandardMetadata(StandardMetadata) - Fixed device ID rotation attaching a new device ID to sensor data collected before the rotation
- Increased default device ID rotation period from 14 to 30 days
0.0.7 #
- Updated native Android SDK to 1.5.0
- Added new state:
initializing— emitted during config fetch on startup, SDK retries automatically on recoverable errors - Device ID rotation is now handled automatically based on server-configured TTL
- BREAKING: Removed
getActiveConfig(),onConfigChangecallback, andTruemetricsConfiguration/UploadMode/TrafficStatusclasses (internal server config not relevant to SDK consumers) - Multiple bug fixes in the native SDK (see Android SDK 1.5.0 changelog)
0.0.6 #
- Updated native Android SDK to 1.4.6
- Fixed crash on startup when service binding takes longer than expected
- Fixed
startRecording()not working in several edge cases (called immediately afterinit(), after service reconnect, during engine initialization) - Fixed
getDeviceId()returning null afterstopRecording() - Fixed error status being silently cleared on
deinitialize() - Fixed crash when backend sends invalid payload size limit
- Fixed Sentry version conflict with host apps using Sentry 9.x or other incompatible versions
0.0.5 #
- Updated native Android SDK to 1.4.2
- Added Statistics APIs:
getUploadStatistics()- returns upload count and last successful upload timestampgetSensorStatistics()- returns per-sensor frequency and quality data
- Added Metadata Templates APIs:
- Template management:
createMetadataTemplate(),getMetadataTemplate(),getMetadataTemplateNames(),removeMetadataTemplate() - Tagged metadata:
createMetadataFromTemplate(),appendToMetadataTag(),appendSingleToMetadataTag(),getMetadataByTag(),getMetadataTags(),logMetadataByTag(),removeMetadataTag(),removeFromMetadataTag(),clearAllMetadata()
- Template management:
- Added Recording State APIs:
isRecordingInProgress()- check if recording is currently activeisRecordingStopped()- check if recording has been stoppedgetRecordingStartTime()- get the timestamp when recording started
- Added Sensor Control APIs:
setAllSensorsEnabled()- enable or disable all sensorsgetAllSensorsEnabled()- check if all sensors are enabled
- Added Sensor Info API:
getSensorInfo()- returns current sensor information (name, status, frequency, missing permissions)
- Added Configuration APIs:
getActiveConfig()- returns the active SDK configuration from the serveronConfigChangecallback insetStatusListener()for live configuration updates
- BREAKING:
StateChangeCallbacknow receivesTruemetricsStatusEventinstead ofTruemetricsStateenum- Access state via
event.state, device ID viaevent.deviceId, delay viaevent.delayMs deviceIdis now directly available ininitialized,recordingInProgress, anddelayedStarteventsdelayMsis now included indelayedStartevents
- Access state via
- Added new state:
readingsDatabaseFull- indicates the readings database is full due to insufficient storage - Added new model classes:
UploadStatistics,SensorStatistics,SensorDataQuality,TruemetricsConfiguration,UploadMode,TrafficStatus,SensorInfo,SensorName,SensorStatus,TruemetricsStatusEvent - All public types now exported from the main barrel file (
truemetrics_flutter_sdk.dart)
0.0.4 #
- Updated native Android SDK to 1.3.3
- BREAKING BEHAVIOR CHANGE: Recording now starts automatically after
initialize()by default. In v1.2.2, you needed to explicitly callstartRecording(). To restore the old behavior, use'delayAutoStartRecording': TruemetricsConfig.explicitStartin config. - Added new states:
delayedStartandtrafficLimitReached - Added
delayAutoStartRecordingconfig parameter:TruemetricsConfig.explicitStart(-1) - recording starts only when you callstartRecording()(old v1.2.2 behavior)TruemetricsConfig.autoStartOnInit(0) - recording starts automatically after initialization (new default)- Any positive number (milliseconds) - delay before auto-starting recording
- Added
getDeviceId()method to retrieve device identifier - Removed
debugparameter (not supported in SDK 1.3.3) - Note:
deviceIdis no longer returned frominitialize()method, usegetDeviceId()instead
0.0.3 #
- Use truemetrics-sdk version 1.2.0
0.0.2 #
- Initial release