正在查看: Oolka v2.4.42 应用的 r2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 r2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package one.upswing.sdk;
import android.content.Context;
import io.sentry.Hint;
import io.sentry.SentryEvent;
import io.sentry.SentryLevel;
import io.sentry.SentryOptions;
import io.sentry.android.core.SentryAndroidOptions;
import io.sentry.b3;
import io.sentry.protocol.User;
import java.util.Locale;
import java.util.Objects;
import kotlin.jvm.internal.Intrinsics;
public final class r2 implements x2 {
public final Context a;
public r2(Context context) {
this.a = context;
g();
}
public static final SentryEvent d(r2 r2Var, String str, SentryEvent sentryEvent, Hint hint) {
r2Var.getClass();
if (sentryEvent.r0() != SentryLevel.DEBUG) {
String upperCase = "prodWithoutTink".toUpperCase(Locale.ROOT);
Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
if (!Intrinsics.areEqual(upperCase, "STAGE")) {
Objects.toString(sentryEvent.p0());
sentryEvent.d0("ICI", str);
User user = new User();
user.r(str);
sentryEvent.f0(user);
return sentryEvent;
}
}
return null;
}
public static final void e(r2 r2Var, c3 c3Var, SentryAndroidOptions sentryAndroidOptions) {
String str;
sentryAndroidOptions.setDsn("https://ba2f02d671c44fbbbba3004f3b1b1c2f@o4504989055844352.ingest.sentry.io/4505374291591168");
r2Var.getClass();
String upperCase = "prodWithoutTink".toUpperCase(Locale.ROOT);
Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
sentryAndroidOptions.setEnvironment(upperCase);
sentryAndroidOptions.setAttachScreenshot(true);
sentryAndroidOptions.setEnableUserInteractionBreadcrumbs(true);
sentryAndroidOptions.setAttachViewHierarchy(true);
sentryAndroidOptions.setTracesSampleRate(Double.valueOf(1.0d));
sentryAndroidOptions.setProfilesSampleRate(Double.valueOf(0.1d));
if (c3Var == null || (str = ((j3) c3Var).d()) == null) {
str = "NA";
}
sentryAndroidOptions.setTag("PARTNER_CODE", str);
sentryAndroidOptions.setTag("DEVICE_ID", new o6(r2Var.a).a());
sentryAndroidOptions.setRelease(UpswingSdkKt.getUpswingSdkVersion());
sentryAndroidOptions.setBeforeSend(r2Var.f(((m2) ((u2) ((j3) c3Var).b.getValue())).a("internalCustomerId")));
}
@Override
public final void a() {
try {
io.sentry.b3.m();
} catch (Exception e) {
e.getMessage();
}
}
@Override
public final void b() {
try {
io.sentry.b3.j("Device is rooted");
} catch (Exception e) {
e.getMessage();
}
}
@Override
public final void c(Exception exc) {
try {
io.sentry.b3.h(exc);
exc.getMessage();
} catch (Exception e) {
e.getMessage();
}
}
public final SentryOptions.d f(final String str) {
return new SentryOptions.d() {
@Override
public final SentryEvent a(SentryEvent sentryEvent, Hint hint) {
return r2.d(r2.this, str, sentryEvent, hint);
}
};
}
public final void g() {
try {
final c3 c3Var = (c3) j3.f.a(this.a.getApplicationContext());
io.sentry.android.core.n1.g(this.a.getApplicationContext(), new b3.a() {
@Override
public final void a(SentryOptions sentryOptions) {
r2.e(r2.this, c3Var, (SentryAndroidOptions) sentryOptions);
}
});
} catch (Exception e) {
e.getMessage();
}
}
@Override
public final void b(String str) {
try {
io.sentry.b3.j(str);
} catch (Exception e) {
e.getMessage();
}
}
}