Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 b.java 源代码,内容仅作参考
package myobfuscated.o7;
import android.content.Context;
import com.amazon.aps.shared.analytics.APSEventSeverity;
import com.amazon.aps.shared.analytics.APSEventType;
import java.util.Random;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.i7.f;
import myobfuscated.q7.d;
import myobfuscated.q7.n;
import myobfuscated.r7.c;
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;
public final class b {
@NotNull
public static d a = new d(0);
@NotNull
public static n b = new n(null);
public static double c = 0.01d;
public static String d = "https://prod.tahoe-analytics.publishers.advertising.a2z.com/logevent/putRecord";
public static String e = "a5c71f6aff54eb34c826d952c285eaf0650b4259c83ae598962681a6429b63f6";
public static boolean f;
public static Context g;
public static final class a {
public static void a(String str, @NotNull myobfuscated.p7.b builder) {
Intrinsics.checkNotNullParameter(builder, "builder");
f.a("APSAndroidShared", "Logging perf metrics event");
try {
if (d()) {
if (c.c == null) {
c.c = new c();
}
c cVar = c.c;
builder.b(str);
JSONObject a = builder.a();
cVar.getClass();
if (a != null) {
cVar.b(b.d, b.e, a.toString());
}
}
} catch (RuntimeException e) {
myobfuscated.o7.a.b(APSEventSeverity.FATAL, APSEventType.EXCEPTION, "Error sending the ad event", e);
}
}
public static void b() {
try {
boolean z = true;
if (new Random().nextInt(10000000) + 1 > myobfuscated.zk2.c.a(b.c * 100000)) {
z = false;
}
b.f = z;
} catch (RuntimeException e) {
f.b("APSAndroidShared", Intrinsics.l(e, "Unable to set the sampling rate "));
}
}
public static void c(@NotNull String eventName, String eventValue) {
Intrinsics.checkNotNullParameter(eventName, "eventName");
Intrinsics.checkNotNullParameter(eventName, "eventName");
f.a("APSAndroidShared", "Logging custom event");
try {
if (d()) {
myobfuscated.p7.a aVar = new myobfuscated.p7.a();
Intrinsics.checkNotNullParameter(eventName, "eventName");
aVar.a = eventName;
if (eventValue != null) {
Intrinsics.checkNotNullParameter(eventValue, "eventValue");
aVar.b = eventValue;
}
JSONObject a = aVar.a();
if (a == null) {
return;
}
if (c.c == null) {
c.c = new c();
}
c cVar = c.c;
cVar.getClass();
cVar.b(b.d, b.e, a.toString());
}
} catch (RuntimeException e) {
myobfuscated.o7.a.b(APSEventSeverity.FATAL, APSEventType.EXCEPTION, "Error in sending the custom event", e);
}
}
public static boolean d() {
return (b.g == null || !b.f || myobfuscated.fk.a.e(b.e) || myobfuscated.fk.a.e(b.d)) ? false : true;
}
}
}