正在查看: OLX India v19.42.007 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.amazon.aps.shared;
import android.content.Context;
import com.amazon.aps.shared.analytics.c;
import com.amazon.aps.shared.metrics.model.d;
import com.amazon.aps.shared.metrics.model.p;
import com.amazon.aps.shared.util.APSNetworkManager;
import java.util.Random;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.math.MathKt;
import org.json.JSONObject;
public abstract class b {
public static final a a = new a(null);
private static d b = new d(null, null, null, null, null, 31, null);
private static p c = new p(null, 1, null);
private static double d = 0.1d;
private static String e = "https://prod.tahoe-analytics.publishers.adversising.a2z.com/logevent/putRecord";
private static String f = "a5c71f6aff54eb34c826d952c285eaf0650b4259c83ae598962681a6429b63f6";
private static String g;
private static boolean h;
private static Context i;
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private final void b() {
try {
boolean z = true;
if (new Random().nextInt(10000000) + 1 > MathKt.c(j() * 100000)) {
z = false;
}
b.h = z;
} catch (RuntimeException e) {
com.amazon.aps.ads.d.c(Intrinsics.j("Unable to set the sampling rate ", e));
}
}
private final boolean m() {
return l() && b.h && !com.amazon.aps.shared.util.b.a(f()) && !com.amazon.aps.shared.util.b.a(i());
}
public final void a(String str, com.amazon.aps.shared.metrics.b bVar) {
com.amazon.aps.ads.d.a("Logging perf metrics event");
try {
if (m()) {
APSNetworkManager.g(b.i).l(bVar.d(str).a());
}
} catch (RuntimeException e) {
com.amazon.aps.shared.a.k(com.amazon.aps.shared.analytics.b.FATAL, c.EXCEPTION, "Error sending the ad event", e);
}
}
public final void c(String str, String str2, JSONObject jSONObject) {
d(str, str2, jSONObject, null);
}
public final void d(String str, String str2, JSONObject jSONObject, String str3) {
try {
com.amazon.aps.ads.d.a(Intrinsics.j("Logging custom event:", str));
if (m()) {
com.amazon.aps.shared.metrics.a aVar = new com.amazon.aps.shared.metrics.a();
aVar.d(str);
if (str2 != null) {
aVar.e(str2);
}
if (jSONObject != null) {
aVar.c(jSONObject);
}
if (str3 != null) {
aVar.b(str3);
}
JSONObject a = aVar.a();
if (a == null) {
return;
}
APSNetworkManager.g(b.i).l(a);
}
} catch (RuntimeException e) {
com.amazon.aps.shared.a.k(com.amazon.aps.shared.analytics.b.FATAL, c.EXCEPTION, "Error in sending the custom event", e);
}
}
public final String e() {
return b.g;
}
public final String f() {
return b.f;
}
public final d g() {
return b.b;
}
public final p h() {
return b.c;
}
public final String i() {
return b.e;
}
public final double j() {
return b.d;
}
public final void k(Context context, d dVar, p pVar) {
com.amazon.aps.ads.d.g(com.amazon.aps.ads.model.b.All);
if (dVar != null) {
try {
a aVar = b.a;
b.b = d.b(dVar, null, null, null, null, null, 31, null);
} catch (RuntimeException e) {
com.amazon.aps.shared.a.k(com.amazon.aps.shared.analytics.b.FATAL, c.EXCEPTION, "Error in initializing the ApsMetrics", e);
return;
}
}
if (pVar != null) {
a aVar2 = b.a;
b.c = p.b(pVar, null, 1, null);
}
b.i = context;
b();
}
public final boolean l() {
return b.i != null;
}
public final void n(String str) {
if (com.amazon.aps.shared.util.b.a(str)) {
return;
}
b.f = str;
}
public final void o(String str) {
if (com.amazon.aps.shared.util.b.a(str)) {
return;
}
b.e = str;
}
public final void p(double d) {
if (0.0d > d || d > 100.0d) {
return;
}
b.d = d;
b();
}
private a() {
}
}
public static final void p(String str, com.amazon.aps.shared.metrics.b bVar) {
a.a(str, bVar);
}
public static final void q(String str, String str2, JSONObject jSONObject) {
a.c(str, str2, jSONObject);
}
}