From a176c7bfacb0b925ff358898c859399a171b0438 Mon Sep 17 00:00:00 2001 From: Jamie Lynch Date: Fri, 19 Jul 2024 17:20:14 +0100 Subject: [PATCH] refactor: move breadcrumb data source --- .../internal/capture/crumbs/BreadcrumbDataSource.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename {embrace-android-sdk/src/main/java => embrace-android-features/src/main/kotlin}/io/embrace/android/embracesdk/internal/capture/crumbs/BreadcrumbDataSource.kt (92%) diff --git a/embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/capture/crumbs/BreadcrumbDataSource.kt b/embrace-android-features/src/main/kotlin/io/embrace/android/embracesdk/internal/capture/crumbs/BreadcrumbDataSource.kt similarity index 92% rename from embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/capture/crumbs/BreadcrumbDataSource.kt rename to embrace-android-features/src/main/kotlin/io/embrace/android/embracesdk/internal/capture/crumbs/BreadcrumbDataSource.kt index 11d731dfa2..be8f898466 100644 --- a/embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/capture/crumbs/BreadcrumbDataSource.kt +++ b/embrace-android-features/src/main/kotlin/io/embrace/android/embracesdk/internal/capture/crumbs/BreadcrumbDataSource.kt @@ -10,7 +10,7 @@ import io.embrace.android.embracesdk.internal.logging.EmbLogger /** * Captures breadcrumbs. */ -internal class BreadcrumbDataSource( +public class BreadcrumbDataSource( breadcrumbBehavior: BreadcrumbBehavior, writer: SessionSpanWriter, logger: EmbLogger @@ -20,7 +20,7 @@ internal class BreadcrumbDataSource( limitStrategy = UpToLimitStrategy(breadcrumbBehavior::getCustomBreadcrumbLimit) ) { - fun logCustom(message: String, timestamp: Long) { + public fun logCustom(message: String, timestamp: Long) { captureData( inputValidation = { message.isNotEmpty() @@ -43,7 +43,7 @@ internal class BreadcrumbDataSource( } } - companion object { + public companion object { private const val BREADCRUMB_MESSAGE_MAX_LENGTH = 256 } }