Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ maven.install(
"org.jetbrains.kotlin:kotlin-stdlib:{}".format(KOTLIN_STD_VERSION),
"androidx.emoji2:emoji2:1.5.0",
"androidx.collection:collection:1.4.5",
"androidx.metrics:metrics-performance:1.0.0",
"com.google.flatbuffers:flatbuffers-java:25.2.10",
"com.google.protobuf:protobuf-kotlin-lite:4.31.1",

Expand Down
1 change: 0 additions & 1 deletion examples/android/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ _maven_deps = [
artifact("com.squareup.okio:okio-jvm"),
artifact("org.jetbrains.kotlin:kotlin-stdlib"),
artifact("org.jetbrains:annotations"),
artifact("androidx.metrics:metrics-performance"),
artifact("com.squareup.retrofit2:retrofit"),
artifact("androidx.webkit:webkit"),
]
Expand Down
1 change: 0 additions & 1 deletion platform/jvm/capture/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ bitdrift_kt_android_library(
artifact("com.google.code.gson:gson"),
artifact("com.google.flatbuffers:flatbuffers-java"),
artifact("com.google.protobuf:protobuf-kotlin-lite"),
artifact("androidx.metrics:metrics-performance"),
# Compile-only dependency (neverlink wrapper). Not packaged nor appearing in POM.
":retrofit_compile_only",
":webkit_compile_only",
Expand Down
1 change: 0 additions & 1 deletion platform/jvm/capture/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dependencies {
implementation(libs.androidx.startup.runtime)
implementation(libs.jsr305)
implementation(libs.gson)
implementation(libs.performance)
implementation(libs.protobuf.kotlinlite)

compileOnly(libs.retrofit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
package io.bitdrift.capture

import android.app.ActivityManager
import android.app.Application
import android.content.Context
import android.util.Log
import androidx.annotation.VisibleForTesting
Expand All @@ -29,7 +28,6 @@ import io.bitdrift.capture.events.lifecycle.AppLifecycleListenerLogger
import io.bitdrift.capture.events.lifecycle.EventsListenerTarget
import io.bitdrift.capture.events.performance.BatteryMonitor
import io.bitdrift.capture.events.performance.DiskUsageMonitor
import io.bitdrift.capture.events.performance.JankStatsMonitor
import io.bitdrift.capture.events.performance.MemoryMetricsProvider
import io.bitdrift.capture.events.performance.ResourceUtilizationTarget
import io.bitdrift.capture.events.span.Span
Expand Down Expand Up @@ -100,7 +98,6 @@ internal class LoggerImpl(
private val memoryMetricsProvider: MemoryMetricsProvider
private val appExitLogger: AppExitLogger
private val runtime: JniRuntime
private var jankStatsMonitor: JankStatsMonitor? = null

// we can assume a properly formatted api url is being used, so we can follow the same pattern
// making sure we only replace the first occurrence
Expand Down Expand Up @@ -254,8 +251,6 @@ internal class LoggerImpl(
),
)

addJankStatsMonitorTarget(windowManager, context)

appExitLogger =
AppExitLogger(
logger = this,
Expand Down Expand Up @@ -331,7 +326,6 @@ internal class LoggerImpl(
}

override fun logScreenView(screenName: String) {
jankStatsMonitor?.trackScreenNameChanged(screenName)
CaptureJniLibrary.writeScreenViewLog(this.loggerId, screenName)
}

Expand Down Expand Up @@ -679,27 +673,6 @@ internal class LoggerImpl(
}
}
}

private fun addJankStatsMonitorTarget(
windowManager: IWindowManager,
context: Context,
) {
if (context is Application) {
jankStatsMonitor =
JankStatsMonitor(
context,
this,
ProcessLifecycleOwner.get(),
runtime,
windowManager,
)
jankStatsMonitor?.let {
eventsListenerTarget.add(it)
}
} else {
errorHandler.handleError("Couldn't start JankStatsMonitor. Invalid application provided")
}
}
}

internal sealed class LogAttributesOverrides {
Expand Down
Loading
Loading