Skip to main content

Upgrade guide

Upgrading from 1.5.0 to 2.0.0

The methods mark as deprecated in 1.5.0 have been removed from this release.

Please make sure not to have a hardcoded version of the Android SDK in the build.gradle file of your Android project. The correct way to include the Embrace Android SDK is using the emb_android_sdk like this:

buildscript {

dependencies {
classpath "io.embrace:embrace-swazzler:${findProject(':embrace_android').properties['emb_android_sdk']}"

Please refer to the Android setup guide for further information.

Upgrading from 1.4.0 to 1.5.0

Version 1.5.0 of the Embrace Flutter SDK renames some functions. This has been done to reduce confusion & increase consistency across our SDKs.

Functions that have been marked as deprecated will still work as before, but will be removed in the next major version release. Please upgrade when convenient, and get in touch if you have a use-case that isn’t supported by the new API.

Old APINew APIComments
Embrace.instance.setUserPersona Embrace.instance.addUserPersonaRenamed function for consistency
Embrace.instance.endStartupMomentEmbrace.instance.endAppStartupRenamed function for consistency
Embrace.instance.logBreadcrumbEmbrace.instance.addBreadcrumbRenamed function for consistency
Embrace.instance.logNetworkRequestEmbrace.instance.recordNetworkRequestRenamed function for consistency