SDK 12.1.0 Migration Guide for Flutter
Guide for migrating to Instabug's SDK version 12.0 on Flutter
With the release of version 12.1.0, a whole host of new products have been released such as, Session Replay, App Ratings, and Rollout Management. Along with this release, a few APIs have been changed to better suit these new features and in order to improve the usage of these APIs.
Initializing the SDK
If you're using Instabug.start
to initialize the Instabug SDK, you'll need to migrate to the new Instabug.init
method introduced in v11.9.0
.
Before
Instabug.start('<APP_TOKEN>', [InvocationEvent.shake]);
Instabug.setSdkDebugLogsLevel(LogLevel.verbose);
After
Instabug.init(
token: '<APP_TOKEN>',
invocationEvents: [InvocationEvent.shake],
debugLogsLevel: LogLevel.verbose,
);
Removed APIs & Alternatives
Deprecated API | Corresponding API |
---|---|
Instabug.start | Instabug.init |
Instabug.setSdkDebugLogsLevel | Instabug.init 's debugLogsLevel parameter. |
Instabug.setDebugEnabled | Instabug.init 's debugLogsLevel parameter |
Instabug.setReproStepsMode | Instabug.setReproStepsConfig |
Instabug.enableAndroid | Instabug.setEnabled(true) |
Instabug.disableAndroid | Instabug.setEnabled(false) |
APM.setLogLevel | Instabug.init 's debugLogsLevel parameter |
LogLevel.warning | LogLevel.error |
LogLevel.info | LogLevel.debug |
IBGSDKDebugLogsLevel enum. | LogLevel |
CustomTextPlaceHolderKey.invalidCommentMessage | None |
Callback parameter of Replies.hasChats | The returned Future object. |
Callback parameter of Replies.getUnreadRepliesCount | The returned Future object. |
Callback parameter of Surveys.getAvailableSurveys | The returned Future object. |
Callback parameter of Surveys.hasRespondedToSurvey | The returned Future object. |
Updated about 1 year ago