diff --git a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/ContextHolder.kt b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/ContextHolder.kt index 36fd9101..955b46e5 100644 --- a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/ContextHolder.kt +++ b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/ContextHolder.kt @@ -25,6 +25,9 @@ class ContextHolder : Initializer { return emptyList() } + /** + * A way to access the Context and Initializer status for the Bitdrift SDK. + */ companion object { @SuppressLint("StaticFieldLeak") @Volatile diff --git a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogLevel.kt b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogLevel.kt index e61e12af..364c4e91 100644 --- a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogLevel.kt +++ b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogLevel.kt @@ -15,9 +15,28 @@ package io.bitdrift.capture * @property value the numeric representation of the log level. */ enum class LogLevel(val value: Int) { + /** + * Represents an error log level, which is the most severe log level. + */ ERROR(4), + + /** + * Represents a warning log level, which is less severe than error. + */ WARNING(3), + + /** + * Represents an info log level, which is less verbose than debug. + */ INFO(2), + + /** + * Represents a debug log level, which is more verbose than info. + */ DEBUG(1), + + /** + * Represents a trace log level, which is the most verbose log level. + */ TRACE(0), } diff --git a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogType.kt b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogType.kt index fb1cc4d8..a13517ab 100644 --- a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogType.kt +++ b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/LogType.kt @@ -14,13 +14,48 @@ package io.bitdrift.capture * @property value the numeric representation of the log type. */ enum class LogType(val value: Int) { + /** + * Represents a normal log type, from consumer apps code. + */ NORMAL(0), + + /** + * Represents a replay log type, from session replay. + */ REPLAY(1), + + /** + * Represents a lifecycle log type, from automatic instrumentation. + */ LIFECYCLE(2), + + /** + * Represents a resource log type, from automatic instrumentation. + */ RESOURCE(3), + + /** + * Represents an internal SDK log type, from the SDK itself. + */ INTERNALSDK(4), + + /** + * Represents a view lifecycle log type, from automatic instrumentation. + */ VIEW(5), + + /** + * Represents a device log type, from automatic instrumentation. + */ DEVICE(6), + + /** + * Represents a UX interaction log type, from automatic instrumentation. + */ UX(7), + + /** + * Represents a span log type, from automatic instrumentation. + */ SPAN(8), } diff --git a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/network/HttpResponse.kt b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/network/HttpResponse.kt index 6fe375da..d23a203e 100644 --- a/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/network/HttpResponse.kt +++ b/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/network/HttpResponse.kt @@ -30,8 +30,19 @@ data class HttpResponse @JvmOverloads constructor( * Represents the result of an http request operation */ enum class HttpResult { + /** + * Represents a successful http request operation + */ SUCCESS, + + /** + * Represents a failed http request operation + */ FAILURE, + + /** + * Represents an interrupted or incomplete http request operation + */ CANCELED, } } diff --git a/platform/jvm/gradle/libs.versions.toml b/platform/jvm/gradle/libs.versions.toml index 5b0e01bd..e52840fe 100644 --- a/platform/jvm/gradle/libs.versions.toml +++ b/platform/jvm/gradle/libs.versions.toml @@ -6,7 +6,7 @@ appcompat = "1.5.1" assertjCore = "3.22.0" androidxCore = "1.9.0" androidxTestCore = "1.6.0" -detektPlugin = "1.23.3" +detektPlugin = "1.23.7" dokkaPlugin = "1.9.20" gson = "2.10.1" jsr305 = "3.0.2"