Flutter
Migrating from v0.0.22 to v6.9.x of the Sentiance Flutter SDKs
v0.0.22 to v6.9.x of the Sentiance Flutter SDKsChanges regarding library imports
// import #1, brings in CreateUserResult and CreateUserOptions types among other types
import 'package:sentiance_core/api.g.dart';
// import #2, brings in SentianceCore and more
import 'package:sentiance_core/sentiance_core.dart';
void createNewSentianceUser() async {
final sentianceCore = SentianceCore();
CreateUserResult result = await sentianceCore.createUser(
CreateUserOptions(...)
);
}// This brings in everything you previously needed in addition to all other public declarations of the package
import 'package:sentiance_core/sentiance_core.dart';
void createNewSentianceUser() async {
final sentianceCore = SentianceCore();
CreateUserResult result = await sentianceCore.createUser(
CreateUserOptions(...)
);
}Changes regarding duplicate type definitions across packages
Changes regarding the public signature of certain APIs
APIs that were removed
Changes concerning overall usage of background listeners
Setting a background listener
Before migrating
After migrating
Setting crash detection background listeners
Setting a user context updates' background listener
Changes impacting users of event timeline features
Changes impacting users of user context features
Segment attributes
Changes impacting users of driving insights features
Call-while-moving events
Transport events associated with a driving insights payload
Last updated