Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 c.java 源代码,内容仅作参考
package f8;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.amazon.aps.ads.activity.ApsInterstitialActivity;
import com.amazon.device.ads.AdType;
import com.amazon.device.ads.DtbOmSdkSessionManager;
import com.amazon.device.ads.SDKUtilities;
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
import java.lang.ref.WeakReference;
import ti.g0;
import ti.l;
public final class c {
public final Context f17554a;
public final String f17555b;
public final String f17556c;
public final h8.a f17557d;
public i f17558e;
public f8.b f17559f;
public final b f17560g;
public class a {
public static final int[] f17561a;
static {
int[] iArr = new int[j8.a.values().length];
iArr[2] = 1;
iArr[1] = 2;
iArr[3] = 3;
iArr[0] = 4;
iArr[5] = 5;
iArr[4] = 6;
iArr[6] = 7;
f17561a = iArr;
}
}
public static final class b implements h8.a {
public b() {
}
@Override
public final void onAdClicked(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onAdClicked called");
cVar.f17557d.onAdClicked(bVar);
}
@Override
public final void onAdClosed(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onAdClosed called");
cVar.f17557d.onAdClosed(bVar);
}
@Override
public final void onAdError(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onAdError called");
cVar.f17557d.onAdError(bVar);
}
@Override
public final void onAdFailedToLoad(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onAdFailedToLoad called");
cVar.f17557d.onAdFailedToLoad(bVar);
}
@Override
public final void onAdLoaded(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onAdLoaded called");
cVar.f17557d.onAdLoaded(bVar);
}
@Override
public final void onAdOpen(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onAdOpen called");
cVar.f17557d.onAdOpen(bVar);
}
@Override
public final void onImpressionFired(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onImpressionFired called");
cVar.f17557d.onImpressionFired(bVar);
}
@Override
public final void onVideoCompleted(f8.b bVar) {
c cVar = c.this;
j.a(cVar.f17556c, "onVideoCompleted called");
cVar.f17557d.onVideoCompleted(bVar);
}
}
public c(Context context, h8.a aVar) {
l.f(context, xa.c.CONTEXT);
l.f(aVar, ServiceSpecificExtraArgs.CastExtraArgs.LISTENER);
this.f17554a = context;
this.f17555b = "https://c.amazon-adsystem.com/";
this.f17556c = g0.f30657a.b(c.class).c();
this.f17557d = aVar;
h.a(context, aVar);
this.f17560g = new b();
}
public final void a(f8.b bVar) {
m8.c cVar = m8.c.f23770a;
l.f(bVar, "apsAd");
h.a(bVar);
try {
this.f17559f = bVar;
j8.a b10 = bVar.b();
switch (b10 == null ? -1 : a.f17561a[b10.ordinal()]) {
case 1:
case 2:
case 3:
case 4:
c(bVar);
return;
case 5:
case 6:
this.f17558e = new i(this.f17554a, j8.a.f21616e, this.f17560g);
e().fetchAd(SDKUtilities.getBidInfo(bVar), bVar.getRenderingBundle());
bVar.f17550b = new WeakReference<>(e());
return;
case 7:
l8.a.b(m8.b.f23767b, cVar, "InStream video adFormat not supported", null);
return;
default:
return;
}
} catch (RuntimeException e10) {
l8.a.b(m8.b.f23766a, cVar, "API failure:ApsAdController - fetchAd", e10);
}
}
public final void b(int i10, int i11, Bundle bundle) {
l.f(bundle, "extraInfo");
this.f17559f = new f8.b(bundle, f.a(i11, i10, AdType.DISPLAY));
this.f17558e = new i(this.f17554a, j8.a.f21612a, this.f17560g);
f8.b bVar = this.f17559f;
if (bVar == null) {
l.l("apsAd");
throw null;
}
bVar.f17550b = new WeakReference<>(e());
i e10 = e();
f8.b bVar2 = this.f17559f;
if (bVar2 == null) {
l.l("apsAd");
throw null;
}
e10.setApsAd(bVar2);
e().fetchAd(bundle);
}
public final void c(f8.b bVar) {
this.f17558e = new i(this.f17554a, j8.a.f21612a, this.f17560g);
i e10 = e();
h.a(bVar);
try {
bVar.getClass();
bVar.f17550b = new WeakReference<>(e10);
e10.f17570a = new WeakReference<>(bVar);
e10.fetchAd(SDKUtilities.getBidInfo(bVar), bVar.getRenderingBundle());
} catch (RuntimeException e11) {
l8.a.b(m8.b.f23766a, m8.c.f23770a, "Error in ApsAdView - fetchAd", e11);
}
}
public final void d(Bundle bundle) {
l.f(bundle, "extraInfo");
this.f17559f = new f8.b(bundle, f.a(9999, 9999, AdType.INTERSTITIAL));
this.f17558e = new i(this.f17554a, j8.a.f21616e, this.f17560g);
f8.b bVar = this.f17559f;
if (bVar == null) {
l.l("apsAd");
throw null;
}
bVar.f17550b = new WeakReference<>(e());
i e10 = e();
f8.b bVar2 = this.f17559f;
if (bVar2 == null) {
l.l("apsAd");
throw null;
}
e10.setApsAd(bVar2);
e().fetchAd(bundle);
}
public final i e() {
i iVar = this.f17558e;
if (iVar != null) {
return iVar;
}
l.l("apsAdView");
throw null;
}
public final void f() {
Context context = this.f17554a;
String str = this.f17556c;
m8.c cVar = m8.c.f23770a;
m8.b bVar = m8.b.f23766a;
try {
if (e().getMraidHandler() == null) {
l8.a.b(bVar, cVar, "There is no controller before showing the interstitial ad", null);
return;
}
g();
j.a(str, "Starting the Aps interstitial activity");
ApsInterstitialActivity.a aVar = ApsInterstitialActivity.f6810e;
WeakReference<i> weakReference = new WeakReference<>(e());
aVar.getClass();
ApsInterstitialActivity.f6811f = weakReference;
context.startActivity(new Intent(context, ApsInterstitialActivity.class));
j.a(str, "Sending the ApsAdView in live data");
} catch (RuntimeException e10) {
l8.a.b(bVar, cVar, "API failure:ApsAdController - show", e10);
}
}
public final void g() {
try {
DtbOmSdkSessionManager omSdkManager = e().getOmSdkManager();
if (omSdkManager == null) {
return;
}
boolean isVideo = e().isVideo();
String str = this.f17555b;
if (isVideo) {
omSdkManager.initJavaScriptOmAdSession(e(), str);
} else {
omSdkManager.initHtmlDisplayOmAdSession(e(), str);
}
omSdkManager.registerAdView(e());
omSdkManager.startAdSession();
omSdkManager.displayAdEventLoaded();
} catch (RuntimeException e10) {
l8.a.b(m8.b.f23766a, m8.c.f23770a, "Unable to start OM SDK session for Interstitial ad", e10);
}
}
}