Android: 1.8.0 migration guide

📘

This guide is focused on migration of Android SDK from pre 1.8.0 versions.

1.8.0 Migration

When updating the Smartlook SDK to 1.8.0 (or newer) from the older SDK version, some of the SDK imports may be broken. This is caused by major internal architecture changes made in 1.8.0.

Using Android studio

When using Android Studio, imports can be easily fixed by using the following two steps:

  • Delete all broken Smartlook SDK import lines. They start with com.smartlook.sdk.smartlook and are highlighted in red color.
  • Use Code Completion (IntelliSense) to fix missing imports.

Using migration table

If you want to fix imports using custom script or using bulk find/replace command, the following migration table can be used where all packages has same prefix = com.smartlook.sdk.smartlook:

Old import (package)New import (package)
.interceptors.SmartlookOkHttpInterceptor.analytic.interceptor.SmartlookOkHttpInterceptor
.SmartlookNamedController.core.api.model.SmartlookNamedController
.analytics.event.annotations.EventTrackingMode.analytic.api.EventTrackingMode
.analytics.identify.UserProperties.core.session.model.UserProperties
.integrations.IntegrationListener.integration.IntegrationListener
.analytics.video.annotations.RenderingMode.core.api.annotation.RenderingMode
.analytics.video.annotations.RenderingModeOption.core.api.annotation.RenderingModeOption
.analytics.video.model.annotation.ViewType.analytic.automatic.annotation.ViewType
.integrations.model.AmplitudeIntegration.integration.model.AmplitudeIntegration
.integrations.model.BugsnagIntegration.integration.model.BugsnagIntegration
.integrations.model.FirebaseCrashlyticsIntegration.integration.model.FirebaseCrashlyticsIntegration
.integrations.model.HeapIntegration.integration.model.HeapIntegration
.integrations.model.MixpanelIntegration.integration.model.MixpanelIntegration
.integrations.segment.SegmentMiddlewareOption.integration.segment.SegmentMiddlewareOption
.CrashTrackingMode.core.api.annotation.CrashTrackingMode
.util.annotations.LogAspect.util.logging.annotation.LogAspect