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
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@
public final class MemoryLimiterIntegration implements Integration, Closeable {

static final @NotNull String MEMORY_LIMITER_DESCRIPTION_PREFIX = "MemoryLimiter:";
static final @NotNull String MEMORY_LIMITER_DESCRIPTION =
MEMORY_LIMITER_DESCRIPTION_PREFIX + "AnonSwap";
static final @NotNull String MEMORY_LIMITER_FINGERPRINT = "memory-limiter";
static final @NotNull String MEMORY_LIMITER_MECHANISM = "memory_limiter";
static final @NotNull String MEMORY_LIMITER_MESSAGE_PREFIX =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ApplicationExitInfoCrossIntegrationTest {
addExitInfo(
reason = ApplicationExitInfo.REASON_OTHER,
timestamp = timestamp,
description = MemoryLimiterIntegration.MEMORY_LIMITER_DESCRIPTION,
description = "MemoryLimiter:AnonSwap",
importance = ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import org.robolectric.shadow.api.Shadow
import org.robolectric.shadows.ShadowActivityManager
import org.robolectric.shadows.ShadowActivityManager.ApplicationExitInfoBuilder

private const val MEMORY_LIMITER_DESCRIPTION = "MemoryLimiter:AnonSwap"

@RunWith(AndroidJUnit4::class)
@Config(sdk = [30])
class MemoryLimiterIntegrationTest {
Expand Down Expand Up @@ -110,7 +112,7 @@ class MemoryLimiterIntegrationTest {
fun addAppExitInfo(
reason: Int = ApplicationExitInfo.REASON_OTHER,
timestamp: Long,
description: String? = MemoryLimiterIntegration.MEMORY_LIMITER_DESCRIPTION,
description: String? = MEMORY_LIMITER_DESCRIPTION,
importance: Int = ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND,
) {
val builder = ApplicationExitInfoBuilder.newBuilder()
Expand Down Expand Up @@ -244,7 +246,7 @@ class MemoryLimiterIntegrationTest {
)
fixture.addAppExitInfo(
reason = ApplicationExitInfo.REASON_OTHER,
description = MemoryLimiterIntegration.MEMORY_LIMITER_DESCRIPTION,
description = MEMORY_LIMITER_DESCRIPTION,
timestamp = newTimestamp,
)

Expand Down Expand Up @@ -277,7 +279,7 @@ class MemoryLimiterIntegrationTest {
val mechanism = exception.mechanism!!
assertEquals("AppExitInfo", mechanism.type)
assertEquals(
MemoryLimiterIntegration.MEMORY_LIMITER_DESCRIPTION,
MEMORY_LIMITER_DESCRIPTION,
mechanism.description,
)
assertEquals(false, mechanism.isHandled)
Expand Down Expand Up @@ -330,7 +332,7 @@ class MemoryLimiterIntegrationTest {
val integration = fixture.getSut(tmpDir, lastReportedTimestamp = oldTimestamp)
fixture.addAppExitInfo(
reason = ApplicationExitInfo.REASON_ANR,
description = MemoryLimiterIntegration.MEMORY_LIMITER_DESCRIPTION,
description = MEMORY_LIMITER_DESCRIPTION,
timestamp = newTimestamp,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import android.graphics.drawable.Drawable

internal class DebugOverlayDrawable : Drawable() {
private val paint = Paint(Paint.ANTI_ALIAS_FLAG)
private val padding = 6f
private val tmpRect = Rect()
private var masks: List<Rect> = emptyList()

Expand Down
14 changes: 0 additions & 14 deletions sentry/api/sentry.api
Original file line number Diff line number Diff line change
Expand Up @@ -5606,13 +5606,6 @@ public final class io/sentry/logger/NoOpLoggerApi : io/sentry/logger/ILoggerApi
public fun warn (Ljava/lang/String;[Ljava/lang/Object;)V
}

public final class io/sentry/logger/NoOpLoggerBatchProcessor : io/sentry/logger/ILoggerBatchProcessor {
public fun add (Lio/sentry/SentryLogEvent;)V
public fun close (Z)V
public fun flush (J)V
public static fun getInstance ()Lio/sentry/logger/NoOpLoggerBatchProcessor;
}

public final class io/sentry/logger/SentryLogParameters {
public fun <init> ()V
public static fun create (Lio/sentry/SentryAttributes;)Lio/sentry/logger/SentryLogParameters;
Expand Down Expand Up @@ -5734,13 +5727,6 @@ public final class io/sentry/metrics/NoOpMetricsApi : io/sentry/metrics/IMetrics
public static fun getInstance ()Lio/sentry/metrics/NoOpMetricsApi;
}

public final class io/sentry/metrics/NoOpMetricsBatchProcessor : io/sentry/metrics/IMetricsBatchProcessor {
public fun add (Lio/sentry/SentryMetricsEvent;)V
public fun close (Z)V
public fun flush (J)V
public static fun getInstance ()Lio/sentry/metrics/NoOpMetricsBatchProcessor;
}

public final class io/sentry/metrics/SentryMetricsParameters {
public fun <init> ()V
public static fun create (Lio/sentry/SentryAttributes;)Lio/sentry/metrics/SentryMetricsParameters;
Expand Down
10 changes: 0 additions & 10 deletions sentry/src/main/java/io/sentry/SentryOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -2021,16 +2021,6 @@ public void addIgnoredExceptionForType(final @NotNull Class<? extends Throwable>
this.ignoredExceptionsForType.add(exceptionType);
}

/**
* Checks if the type of exception given by parameter is ignored.
*
* @param throwable the throwable
* @return if the type of exception is ignored
*/
boolean containsIgnoredExceptionForType(final @NotNull Throwable throwable) {
return this.ignoredExceptionsForType.contains(throwable.getClass());
}

/**
* Returns the list of strings/regex patterns that `event.message`, `event.formatted`, and
* `{event.throwable.class.name}: {event.throwable.message}` are checked against to determine if
Expand Down

This file was deleted.

This file was deleted.

Loading