- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
158 lines
5.8 KiB
Java
158 lines
5.8 KiB
Java
package com.ironsource;
|
|
|
|
import android.os.Handler;
|
|
import android.widget.FrameLayout;
|
|
import com.ironsource.mediationsdk.testSuite.TestSuiteActivity;
|
|
import com.ironsource.ns;
|
|
import com.ironsource.pg;
|
|
import com.unity3d.mediation.LevelPlayAdSize;
|
|
import com.unity3d.mediation.banner.LevelPlayBannerAdView;
|
|
import com.unity3d.mediation.interstitial.LevelPlayInterstitialAd;
|
|
import java.lang.ref.WeakReference;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class ws implements ns.c, ns.d, ns.b {
|
|
private final pg.a a;
|
|
private final WeakReference<TestSuiteActivity> b;
|
|
private final Handler c;
|
|
private final AtomicReference<LevelPlayBannerAdView> d;
|
|
private final AtomicReference<LevelPlayInterstitialAd> e;
|
|
|
|
public ws(TestSuiteActivity activity, Handler handler) {
|
|
Intrinsics.checkNotNullParameter(activity, "activity");
|
|
Intrinsics.checkNotNullParameter(handler, "handler");
|
|
this.a = el.p.a().q();
|
|
this.b = new WeakReference<>(activity);
|
|
this.c = handler;
|
|
this.d = new AtomicReference<>();
|
|
this.e = new AtomicReference<>();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(TestSuiteActivity testSuiteActivity, LevelPlayBannerAdView it) {
|
|
Intrinsics.checkNotNullParameter(testSuiteActivity, "$testSuiteActivity");
|
|
Intrinsics.checkNotNullParameter(it, "$it");
|
|
testSuiteActivity.getContainer().removeView(it);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(TestSuiteActivity testSuiteActivity, LevelPlayBannerAdView banner, ws this$0, double d) {
|
|
Intrinsics.checkNotNullParameter(testSuiteActivity, "$testSuiteActivity");
|
|
Intrinsics.checkNotNullParameter(banner, "$banner");
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
testSuiteActivity.getContainer().addView(banner, this$0.b(d));
|
|
}
|
|
|
|
private final FrameLayout.LayoutParams b(double d) {
|
|
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);
|
|
layoutParams.topMargin = (int) (zs.a.a() * d);
|
|
return layoutParams;
|
|
}
|
|
|
|
private final TestSuiteActivity f() {
|
|
return this.b.get();
|
|
}
|
|
|
|
@Override // com.ironsource.ns.b
|
|
public void a(final double d) {
|
|
final LevelPlayBannerAdView levelPlayBannerAdView;
|
|
final TestSuiteActivity f = f();
|
|
if (f == null || (levelPlayBannerAdView = this.d.get()) == null) {
|
|
return;
|
|
}
|
|
this.c.post(new Runnable() { // from class: com.ironsource.ws$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ws.a(TestSuiteActivity.this, levelPlayBannerAdView, this, d);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.ns.c
|
|
public void a(ts loadAdConfig) {
|
|
Intrinsics.checkNotNullParameter(loadAdConfig, "loadAdConfig");
|
|
this.a.a(loadAdConfig);
|
|
AtomicReference<LevelPlayInterstitialAd> atomicReference = this.e;
|
|
String a = loadAdConfig.a();
|
|
if (a == null) {
|
|
a = "";
|
|
}
|
|
LevelPlayInterstitialAd levelPlayInterstitialAd = new LevelPlayInterstitialAd(a);
|
|
levelPlayInterstitialAd.setListener(new ys());
|
|
levelPlayInterstitialAd.loadAd();
|
|
atomicReference.set(levelPlayInterstitialAd);
|
|
}
|
|
|
|
@Override // com.ironsource.ns.b
|
|
public void a(ts loadAdConfig, String description, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(loadAdConfig, "loadAdConfig");
|
|
Intrinsics.checkNotNullParameter(description, "description");
|
|
b();
|
|
TestSuiteActivity f = f();
|
|
if (f != null) {
|
|
this.a.a(loadAdConfig);
|
|
AtomicReference<LevelPlayBannerAdView> atomicReference = this.d;
|
|
String a = loadAdConfig.a();
|
|
if (a == null) {
|
|
a = "";
|
|
}
|
|
LevelPlayBannerAdView levelPlayBannerAdView = new LevelPlayBannerAdView(f, a);
|
|
levelPlayBannerAdView.setAdSize(LevelPlayAdSize.Companion.createCustomSize(i, i2));
|
|
levelPlayBannerAdView.setBannerListener(new xs());
|
|
levelPlayBannerAdView.loadAd();
|
|
atomicReference.set(levelPlayBannerAdView);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.ns.d
|
|
public boolean a() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.ironsource.ns.b
|
|
public void b() {
|
|
final LevelPlayBannerAdView andSet;
|
|
final TestSuiteActivity f = f();
|
|
if (f == null || (andSet = this.d.getAndSet(null)) == null) {
|
|
return;
|
|
}
|
|
andSet.destroy();
|
|
this.c.post(new Runnable() { // from class: com.ironsource.ws$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ws.a(TestSuiteActivity.this, andSet);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.ns.d
|
|
public void b(ts loadAdConfig) {
|
|
Intrinsics.checkNotNullParameter(loadAdConfig, "loadAdConfig");
|
|
}
|
|
|
|
@Override // com.ironsource.ns.c
|
|
public void c() {
|
|
TestSuiteActivity f = f();
|
|
if (f != null) {
|
|
LevelPlayInterstitialAd levelPlayInterstitialAd = this.e.get();
|
|
Intrinsics.checkNotNullExpressionValue(levelPlayInterstitialAd, "interstitialAdRef.get()");
|
|
LevelPlayInterstitialAd.showAd$default(levelPlayInterstitialAd, f, null, 2, null);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.ns.d
|
|
public void d() {
|
|
}
|
|
|
|
@Override // com.ironsource.ns.c
|
|
public boolean e() {
|
|
LevelPlayInterstitialAd levelPlayInterstitialAd = this.e.get();
|
|
if (levelPlayInterstitialAd != null) {
|
|
return levelPlayInterstitialAd.isAdReady();
|
|
}
|
|
return false;
|
|
}
|
|
}
|