You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FoxMagiskModuleManager/app/src/main/java/com/fox2code/mmm/utils/SentryBreadcrumb.java

33 lines
799 B
Java

package com.fox2code.mmm.utils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Objects;
import io.sentry.Breadcrumb;
import io.sentry.SentryLevel;
public class SentryBreadcrumb {
public final Breadcrumb breadcrumb;
public SentryBreadcrumb() {
breadcrumb = new Breadcrumb();
breadcrumb.setLevel(SentryLevel.INFO);
}
public void setType(@Nullable String type) {
breadcrumb.setType(type);
}
public void setData(@NotNull String key, @Nullable Object value) {
if (value == null) value = "null";
Objects.requireNonNull(key);
breadcrumb.setData(key, value);
}
public void setCategory(@Nullable String category) {
breadcrumb.setCategory(category);
}
}