Pixel Fusion v1.0.3版本的 MD5 值为:e0cc7f5615caec50798ef549b679d557
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.chartboost.sdk.impl;
import DCbaAbccBC.BbdcDCacCa;
import DCbaAbccBC.daAbdddd;
import android.view.ViewGroup;
import com.chartboost.sdk.ads.Ad;
import com.chartboost.sdk.ads.Banner;
import com.chartboost.sdk.ads.Interstitial;
import com.chartboost.sdk.ads.Rewarded;
import com.chartboost.sdk.callbacks.AdCallback;
import com.chartboost.sdk.events.CacheError;
import com.chartboost.sdk.events.ClickError;
import com.chartboost.sdk.events.ShowError;
import com.chartboost.sdk.impl.c;
import com.chartboost.sdk.impl.tb;
import com.chartboost.sdk.impl.u;
import com.chartboost.sdk.internal.Model.CBError;
import com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.atomic.AtomicReference;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Result;
import kotlin.Unit;
import kotlin.jvm.internal.DcBba;
import kotlin.jvm.internal.dcaDDdccCCc;
public abstract class c implements j0, z, a5 {
public final y f34992a;
public final h0 b;
public final AtomicReference c;
public final ScheduledExecutorService d;
public final d e;
public final ta f;
public final q1 g;
public final BbdcDCacCa h;
public final a5 i;
public Ad j;
public AdCallback k;
public class a {
public static final int[] f34993a;
static {
int[] iArr = new int[CBError.CBImpressionError.values().length];
try {
iArr[CBError.CBImpressionError.ASSET_MISSING.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[CBError.CBImpressionError.ASSETS_DOWNLOAD_FAILURE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[CBError.CBImpressionError.ASSET_PREFETCH_IN_PROGRESS.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[CBError.CBImpressionError.WEB_VIEW_CLIENT_RECEIVED_ERROR.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[CBError.CBImpressionError.WEB_VIEW_PAGE_LOAD_TIMEOUT.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
iArr[CBError.CBImpressionError.ERROR_LOADING_WEB_VIEW.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
f34993a = iArr;
}
}
public class b extends dcaDDdccCCc implements daAbdddd {
public b(Object obj) {
super(2, obj, c.class, "onAdFailToLoad", "onAdFailToLoad(Ljava/lang/String;Lcom/chartboost/sdk/internal/Model/CBError$CBImpressionError;)V", 0);
}
public final void a(String str, CBError.CBImpressionError p1) {
DcBba.daAbdddd(p1, "p1");
((c) this.receiver).b(str, p1);
}
@Override
public Object invoke(Object obj, Object obj2) {
a((String) obj, (CBError.CBImpressionError) obj2);
return Unit.INSTANCE;
}
}
public c(y adUnitLoader, h0 adUnitRenderer, AtomicReference sdkConfig, ScheduledExecutorService backgroundExecutorService, d adApiCallbackSender, ta session, q1 base64Wrapper, a5 eventTracker, BbdcDCacCa androidVersion) {
DcBba.daAbdddd(adUnitLoader, "adUnitLoader");
DcBba.daAbdddd(adUnitRenderer, "adUnitRenderer");
DcBba.daAbdddd(sdkConfig, "sdkConfig");
DcBba.daAbdddd(backgroundExecutorService, "backgroundExecutorService");
DcBba.daAbdddd(adApiCallbackSender, "adApiCallbackSender");
DcBba.daAbdddd(session, "session");
DcBba.daAbdddd(base64Wrapper, "base64Wrapper");
DcBba.daAbdddd(eventTracker, "eventTracker");
DcBba.daAbdddd(androidVersion, "androidVersion");
this.f34992a = adUnitLoader;
this.b = adUnitRenderer;
this.c = sdkConfig;
this.d = backgroundExecutorService;
this.e = adApiCallbackSender;
this.f = session;
this.g = base64Wrapper;
this.h = androidVersion;
this.i = eventTracker;
}
public final void a(final String location, final Ad ad, AdCallback callback, String str) {
DcBba.daAbdddd(location, "location");
DcBba.daAbdddd(ad, "ad");
DcBba.daAbdddd(callback, "callback");
this.j = ad;
this.k = callback;
Object a2 = g.f35034a.a(str, this.g, new b(this));
if (Result.m183exceptionOrNullimpl(a2) == null) {
final String str2 = (String) a2;
this.d.execute(new Runnable() {
@Override
public final void run() {
c.a(Ad.this, this, location, str2);
}
});
}
}
public final boolean b() {
b1 a2 = this.f34992a.a();
return (a2 != null ? a2.a() : null) != null;
}
@Override
public void c(String str) {
a(tb.e.IMPRESSION_RECORDED, "", str);
this.e.b(str, this.j, this.k);
}
@Override
public void clear(String type, String location) {
DcBba.daAbdddd(type, "type");
DcBba.daAbdddd(location, "location");
this.i.clear(type, location);
}
@Override
public qb clearFromStorage(qb qbVar) {
DcBba.daAbdddd(qbVar, "<this>");
return this.i.clearFromStorage(qbVar);
}
@Override
public void d(String str) {
this.e.c(str, this.j, this.k);
}
@Override
public void e(String str) {
a(tb.h.FINISH_SUCCESS, "", str);
c();
this.e.a(str, (ShowError) null, this.j, this.k);
}
public final ib f(String str) {
if (str == null) {
str = "";
}
return new ib(null, null, str, null, null, null, null, null, MatroskaExtractor.f39734bcBbD, null);
}
public final boolean g(String location) {
DcBba.daAbdddd(location, "location");
if (((Number) this.h.invoke()).intValue() < 21) {
return true;
}
pa paVar = (pa) this.c.get();
if (paVar != null && paVar.e()) {
w7.b("AdApi", "Chartboost Integration Warning: your account has been disabled for this session. This app has no active publishing campaigns, please create a publishing campaign in the Chartboost dashboard and wait at least 30 minutes to re-enable. If you need assistance, please visit http://chartboo.st/publishing .");
return true;
}
if (location.length() == 0) {
return true;
}
return false;
}
@Override
public qb persist(qb qbVar) {
DcBba.daAbdddd(qbVar, "<this>");
return this.i.persist(qbVar);
}
@Override
public ob refresh(ob obVar) {
DcBba.daAbdddd(obVar, "<this>");
return this.i.refresh(obVar);
}
@Override
public ib store(ib ibVar) {
DcBba.daAbdddd(ibVar, "<this>");
return this.i.store(ibVar);
}
@Override
public qb track(qb qbVar) {
DcBba.daAbdddd(qbVar, "<this>");
return this.i.track(qbVar);
}
@Override
public void b(String str) {
this.e.a(str, (ClickError) null, this.j, this.k);
}
@Override
public void mo5clearFromStorage(qb event) {
DcBba.daAbdddd(event, "event");
this.i.mo5clearFromStorage(event);
}
@Override
public void mo6persist(qb event) {
DcBba.daAbdddd(event, "event");
this.i.mo6persist(event);
}
@Override
public void mo7refresh(ob config) {
DcBba.daAbdddd(config, "config");
this.i.mo7refresh(config);
}
@Override
public void mo8store(ib ad) {
DcBba.daAbdddd(ad, "ad");
this.i.mo8store(ad);
}
@Override
public void mo9track(qb event) {
DcBba.daAbdddd(event, "event");
this.i.mo9track(event);
}
public static final void a(Ad ad, c this$0, String location, String str) {
DcBba.daAbdddd(ad, "$ad");
DcBba.daAbdddd(this$0, "this$0");
DcBba.daAbdddd(location, "$location");
if (ad instanceof Banner) {
ViewGroup viewGroup = (ViewGroup) ad;
Banner banner = (Banner) ad;
this$0.f34992a.a(location, this$0, str, new w(viewGroup, banner.getBannerWidth(), banner.getBannerHeight()));
return;
}
y.a(this$0.f34992a, location, this$0, str, null, 8, null);
}
@Override
public void b(String str, CBError.CBImpressionError error) {
DcBba.daAbdddd(error, "error");
a(tb.a.FINISH_FAILURE, error.name(), str);
this.e.a(str, j.a(error), this.j, this.k);
}
public final void c() {
u a2;
Ad ad = this.j;
if (ad == null || (a2 = a(ad)) == null) {
return;
}
this.f.a(a2);
w7.c("AdApi", "Current session impression count: " + this.f.b(a2) + " in session: " + this.f.c());
}
public final void a(Ad ad, AdCallback callback) {
DcBba.daAbdddd(ad, "ad");
DcBba.daAbdddd(callback, "callback");
this.j = ad;
this.k = callback;
this.d.execute(new Runnable() {
@Override
public final void run() {
c.a(c.this);
}
});
}
public static final void a(c this$0) {
DcBba.daAbdddd(this$0, "this$0");
b1 a2 = this$0.f34992a.a();
if (a2 != null) {
this$0.b.a(a2, this$0);
}
}
public final void a() {
if (b()) {
this.f34992a.b();
}
}
@Override
public void a(String str, String str2, CBError.CBClickError error) {
DcBba.daAbdddd(error, "error");
String str3 = "Click error: " + error.name() + " url: " + str2;
a(tb.b.INVALID_URL_ERROR, str3, str);
this.e.a(str, j.a(error, str3), this.j, this.k);
}
@Override
public void a(String str, CBError.CBImpressionError error) {
DcBba.daAbdddd(error, "error");
a(error, str);
this.e.a(str, j.b(error), this.j, this.k);
}
public final void a(CBError.CBImpressionError cBImpressionError, String str) {
tb.h hVar;
switch (a.f34993a[cBImpressionError.ordinal()]) {
case 1:
case 2:
case 3:
hVar = tb.h.UNAVAILABLE_ASSET_ERROR;
break;
case 4:
case 5:
case 6:
hVar = tb.h.WEBVIEW_ERROR;
break;
default:
hVar = tb.h.FINISH_FAILURE;
break;
}
a(hVar, cBImpressionError.name(), str);
}
@Override
public void a(String str, tb trackingEventName) {
DcBba.daAbdddd(trackingEventName, "trackingEventName");
a(trackingEventName, "", str);
this.e.a(str, (CacheError) null, this.j, this.k);
}
@Override
public void a(String str, int i) {
this.e.a(str, this.j, this.k, i);
}
@Override
public void a(String str) {
this.e.a(str, this.j, this.k);
}
public final void a(tb eventName, String message, u adType, String location) {
DcBba.daAbdddd(eventName, "eventName");
DcBba.daAbdddd(message, "message");
DcBba.daAbdddd(adType, "adType");
DcBba.daAbdddd(location, "location");
track((qb) new m7(eventName, message, adType.b(), location, this.b.F(), null, 32, null));
}
public final u a(Ad ad) {
if (ad instanceof Interstitial) {
return u.b.g;
}
if (ad instanceof Rewarded) {
return u.c.g;
}
if (ad instanceof Banner) {
return u.a.g;
}
throw new NoWhenBranchMatchedException();
}
public final void a(tb tbVar, String str, String str2) {
String str3;
String str4;
qb m7Var;
u a2;
Ad ad = this.j;
if (ad == null || (a2 = a(ad)) == null || (str3 = a2.b()) == null) {
str3 = "Unknown";
}
String str5 = str3;
Ad ad2 = this.j;
if (ad2 == null || (str4 = ad2.getLocation()) == null) {
str4 = "";
}
String str6 = str4;
if (tbVar == tb.b.INVALID_URL_ERROR) {
m7Var = new d4(tbVar, str, str5, str6, this.b.F(), f(str2));
} else {
m7Var = new m7(tbVar, str, str5, str6, this.b.F(), f(str2));
}
track(m7Var);
}
}