Pixel Fusion v1.0.2版本的 MD5 值为:7c04c460c2996569d4ad075cd671a946
以下内容为反编译后的 m.java 源代码,内容仅作参考
package com.chartboost.sdk.impl;
import AdDcdCab.CCDAD;
import com.chartboost.sdk.impl.l;
import com.chartboost.sdk.impl.t2;
import com.chartboost.sdk.impl.tb;
import com.chartboost.sdk.impl.u;
import com.chartboost.sdk.internal.Model.CBError;
import io.bidmachine.ProtoExtConstants;
import java.net.URL;
import java.util.Arrays;
import kotlin.Unit;
import kotlin.jvm.internal.DcBba;
import kotlin.jvm.internal.cdaAcAdAD;
import org.json.JSONObject;
public final class m implements l, t2.a, a5 {
public final u f46185a;
public final v5 b;
public final ca c;
public final q2 d;
public final f0 e;
public final x8 f;
public final q8 g;
public final a5 h;
public ea i;
public u7 j;
public CCDAD k;
public m(u adTraits, v5 fileCache, ca requestBodyBuilder, q2 networkService, f0 adUnitParser, x8 openRTBAdUnitParser, q8 openMeasurementManager, a5 eventTracker) {
DcBba.daAbdddd(adTraits, "adTraits");
DcBba.daAbdddd(fileCache, "fileCache");
DcBba.daAbdddd(requestBodyBuilder, "requestBodyBuilder");
DcBba.daAbdddd(networkService, "networkService");
DcBba.daAbdddd(adUnitParser, "adUnitParser");
DcBba.daAbdddd(openRTBAdUnitParser, "openRTBAdUnitParser");
DcBba.daAbdddd(openMeasurementManager, "openMeasurementManager");
DcBba.daAbdddd(eventTracker, "eventTracker");
this.f46185a = adTraits;
this.b = fileCache;
this.c = requestBodyBuilder;
this.d = networkService;
this.e = adUnitParser;
this.f = openRTBAdUnitParser;
this.g = openMeasurementManager;
this.h = eventTracker;
}
public String a(JSONObject jSONObject, String str, String str2) {
return l.a.a(this, jSONObject, str, str2);
}
@Override
public void clear(String type, String location) {
DcBba.daAbdddd(type, "type");
DcBba.daAbdddd(location, "location");
this.h.clear(type, location);
}
@Override
public qb clearFromStorage(qb qbVar) {
DcBba.daAbdddd(qbVar, "<this>");
return this.h.clearFromStorage(qbVar);
}
@Override
public qb persist(qb qbVar) {
DcBba.daAbdddd(qbVar, "<this>");
return this.h.persist(qbVar);
}
@Override
public ob refresh(ob obVar) {
DcBba.daAbdddd(obVar, "<this>");
return this.h.refresh(obVar);
}
@Override
public ib store(ib ibVar) {
DcBba.daAbdddd(ibVar, "<this>");
return this.h.store(ibVar);
}
@Override
public qb track(qb qbVar) {
DcBba.daAbdddd(qbVar, "<this>");
return this.h.track(qbVar);
}
@Override
public void a(u7 params, CCDAD callback) {
DcBba.daAbdddd(params, "params");
DcBba.daAbdddd(callback, "callback");
this.j = params;
this.k = callback;
this.i = this.c.a();
String d = params.a().d();
Integer b = params.b();
int intValue = b != null ? b.intValue() : 0;
Integer c = params.c();
int intValue2 = c != null ? c.intValue() : 0;
boolean e = params.e();
ea eaVar = this.i;
if (eaVar == null) {
DcBba.BcddBaCAcda("requestBodyFields");
eaVar = null;
}
t2 a2 = a(d, intValue, intValue2, e, eaVar, this, this.g);
a2.i = 1;
this.d.a(a2);
}
@Override
public void mo2clearFromStorage(qb event) {
DcBba.daAbdddd(event, "event");
this.h.mo2clearFromStorage(event);
}
@Override
public void mo3persist(qb event) {
DcBba.daAbdddd(event, "event");
this.h.mo3persist(event);
}
@Override
public void mo4refresh(ob config) {
DcBba.daAbdddd(config, "config");
this.h.mo4refresh(config);
}
@Override
public void mo5store(ib ad) {
DcBba.daAbdddd(ad, "ad");
this.h.mo5store(ad);
}
@Override
public void mo6track(qb event) {
DcBba.daAbdddd(event, "event");
this.h.mo6track(event);
}
public final v a(ea eaVar, JSONObject jSONObject, String str) {
v a2;
try {
u uVar = this.f46185a;
u.a aVar = u.a.g;
if (DcBba.dDbCdDC(uVar, aVar)) {
a2 = this.f.a(aVar, jSONObject);
} else {
if (!eaVar.a().b()) {
return null;
}
a2 = this.e.a(jSONObject);
}
return a2;
} catch (Exception e) {
tb.a aVar2 = tb.a.GET_RESPONSE_PARSING_ERROR;
JSONObject jSONObject2 = new JSONObject();
String message = e.getMessage();
if (message == null) {
message = "no message";
}
String jSONObject3 = jSONObject.toString();
DcBba.bBCadBacC(jSONObject3, "response.toString()");
track((qb) new d4(aVar2, a(jSONObject2, message, jSONObject3), this.f46185a.b(), str, null, null, 48, null));
return null;
}
}
public final t2 a(String str, int i, int i2, boolean z, ea eaVar, t2.a aVar, q8 q8Var) {
int d;
u uVar = this.f46185a;
if (DcBba.dDbCdDC(uVar, u.c.g)) {
d = eaVar.h().e();
} else {
d = DcBba.dDbCdDC(uVar, u.b.g) ? eaVar.h().d() : eaVar.h().a();
}
int i3 = d;
return DcBba.dDbCdDC(this.f46185a, u.a.g) ? a(aVar, i, i2, str, i3, eaVar, q8Var) : a(aVar, str, i3, z, eaVar, q8Var);
}
public final a3 a(t2.a aVar, String str, int i, boolean z, ea eaVar, q8 q8Var) {
a3 a3Var;
e9 c;
String e;
cdaAcAdAD cdaacadad = cdaAcAdAD.f69157BbdcDCacCa;
String format = String.format(this.f46185a.e(), Arrays.copyOf(new Object[]{eaVar.a().c()}, 1));
DcBba.bBCadBacC(format, "format(format, *args)");
la laVar = la.f46180a;
if (laVar.g() && (e = laVar.e()) != null && e.length() != 0) {
URL url = new URL(laVar.e());
a3Var = new a3("POST", url.getProtocol() + "://" + url.getHost(), url.getPath(), eaVar, i9.NORMAL, null, aVar, this.h);
} else {
a3Var = new a3(format, eaVar, i9.NORMAL, aVar, this.h);
}
JSONObject f = this.b.f();
DcBba.bBCadBacC(f, "fileCache.webViewCacheAssets");
a3Var.b("cache_assets", f);
a3Var.b("location", str);
a3Var.b("imp_depth", Integer.valueOf(i));
if (q8Var.g() && (c = q8Var.c()) != null) {
a3Var.c(ProtoExtConstants.Source.OMID_PN, c.a());
a3Var.c(ProtoExtConstants.Source.OMID_PV, c.b());
}
a3Var.b("cache", Boolean.valueOf(z));
a3Var.r = true;
return a3Var;
}
public final y8 a(t2.a aVar, int i, int i2, String str, int i3, ea eaVar, q8 q8Var) {
g8 g8Var;
String e;
la laVar = la.f46180a;
if (laVar.g() && (e = laVar.e()) != null && e.length() != 0) {
URL url = new URL(laVar.e());
g8Var = new g8("POST", url.getProtocol() + "://" + url.getHost(), url.getPath(), eaVar, i9.NORMAL, aVar);
} else {
g8Var = new g8("https://da.chartboost.com", this.f46185a.e(), eaVar, i9.NORMAL, aVar);
}
return new y8(g8Var, new o(this.f46185a, Integer.valueOf(i), Integer.valueOf(i2), str, i3), q8Var, this.h);
}
@Override
public void a(t2 t2Var, JSONObject jSONObject) {
if (t2Var != null && jSONObject != null) {
ea eaVar = this.i;
Unit unit = null;
if (eaVar == null) {
DcBba.BcddBaCAcda("requestBodyFields");
eaVar = null;
}
u7 u7Var = this.j;
if (u7Var == null) {
DcBba.BcddBaCAcda("params");
u7Var = null;
}
JSONObject a2 = u7Var.d().a(jSONObject);
u7 u7Var2 = this.j;
if (u7Var2 == null) {
DcBba.BcddBaCAcda("params");
u7Var2 = null;
}
v a3 = a(eaVar, a2, u7Var2.a().d());
if (a3 != null) {
a(a3, t2Var);
unit = Unit.INSTANCE;
}
if (unit == null) {
a("Error parsing response");
return;
}
return;
}
a("Unexpected response");
}
public final void a(v vVar, t2 t2Var) {
CCDAD ccdad = this.k;
u7 u7Var = null;
if (ccdad == null) {
DcBba.BcddBaCAcda("callback");
ccdad = null;
}
u7 u7Var2 = this.j;
if (u7Var2 == null) {
DcBba.BcddBaCAcda("params");
} else {
u7Var = u7Var2;
}
ccdad.invoke(new v7(u7Var.a(), vVar, null, t2Var.h, t2Var.g));
}
public final void a(String str) {
CCDAD ccdad = this.k;
u7 u7Var = null;
if (ccdad == null) {
DcBba.BcddBaCAcda("callback");
ccdad = null;
}
u7 u7Var2 = this.j;
if (u7Var2 == null) {
DcBba.BcddBaCAcda("params");
} else {
u7Var = u7Var2;
}
ccdad.invoke(new v7(u7Var.a(), null, new CBError(CBError.a.UNEXPECTED_RESPONSE, str), 0L, 0L, 26, null));
}
@Override
public void a(t2 t2Var, CBError cBError) {
CCDAD ccdad = this.k;
u7 u7Var = null;
if (ccdad == null) {
DcBba.BcddBaCAcda("callback");
ccdad = null;
}
u7 u7Var2 = this.j;
if (u7Var2 == null) {
DcBba.BcddBaCAcda("params");
} else {
u7Var = u7Var2;
}
b1 a2 = u7Var.a();
if (cBError == null) {
cBError = new CBError(CBError.a.INVALID_RESPONSE, "Error parsing response");
}
ccdad.invoke(new v7(a2, null, cBError, 0L, 0L, 26, null));
}
}