- 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
155 lines
5.0 KiB
Java
155 lines
5.0 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import android.os.Handler;
|
|
import android.widget.FrameLayout;
|
|
import android.widget.RelativeLayout;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.IronSourceBannerLayout;
|
|
import com.ironsource.mediationsdk.testSuite.TestSuiteActivity;
|
|
import com.ironsource.ns;
|
|
import java.lang.ref.WeakReference;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class ct implements ns.c, ns.d, ns.b {
|
|
private final WeakReference<TestSuiteActivity> a;
|
|
private final Handler b;
|
|
private RelativeLayout c;
|
|
private IronSourceBannerLayout d;
|
|
|
|
public ct(TestSuiteActivity activity, Handler handler) {
|
|
Intrinsics.checkNotNullParameter(activity, "activity");
|
|
Intrinsics.checkNotNullParameter(handler, "handler");
|
|
this.a = new WeakReference<>(activity);
|
|
this.b = handler;
|
|
}
|
|
|
|
private final RelativeLayout a(TestSuiteActivity testSuiteActivity) {
|
|
RelativeLayout relativeLayout = new RelativeLayout(testSuiteActivity);
|
|
relativeLayout.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
|
|
return relativeLayout;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ct this$0) {
|
|
RelativeLayout container;
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
RelativeLayout relativeLayout = this$0.c;
|
|
if (relativeLayout != null) {
|
|
relativeLayout.removeAllViews();
|
|
}
|
|
TestSuiteActivity f = this$0.f();
|
|
if (f != null && (container = f.getContainer()) != null) {
|
|
container.removeView(this$0.c);
|
|
}
|
|
this$0.c = null;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ct this$0, TestSuiteActivity testSuiteActivity) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
RelativeLayout relativeLayout = this$0.c;
|
|
if (relativeLayout != null) {
|
|
relativeLayout.addView(this$0.d);
|
|
}
|
|
testSuiteActivity.getContainer().addView(this$0.c);
|
|
}
|
|
|
|
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.a.get();
|
|
}
|
|
|
|
@Override // com.ironsource.ns.b
|
|
public void a(double d) {
|
|
if (this.c == null) {
|
|
IronSourceBannerLayout ironSourceBannerLayout = this.d;
|
|
if (ironSourceBannerLayout != null) {
|
|
ironSourceBannerLayout.setLayoutParams(b(d));
|
|
}
|
|
final TestSuiteActivity f = f();
|
|
if (f != null) {
|
|
this.c = a(f);
|
|
this.b.post(new Runnable() { // from class: com.ironsource.ct$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ct.a(ct.this, f);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.ns.c
|
|
public void a(ts loadAdConfig) {
|
|
Intrinsics.checkNotNullParameter(loadAdConfig, "loadAdConfig");
|
|
zs zsVar = zs.a;
|
|
zsVar.a(IronSource.AD_UNIT.INTERSTITIAL, loadAdConfig);
|
|
zsVar.g();
|
|
}
|
|
|
|
@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();
|
|
zs zsVar = zs.a;
|
|
zsVar.a(IronSource.AD_UNIT.BANNER, loadAdConfig);
|
|
TestSuiteActivity f = f();
|
|
if (f != null) {
|
|
IronSourceBannerLayout a = zsVar.a(f, zsVar.a(description, i, i2));
|
|
this.d = a;
|
|
zsVar.b(a);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.ns.d
|
|
public boolean a() {
|
|
return zs.a.f();
|
|
}
|
|
|
|
@Override // com.ironsource.ns.b
|
|
public void b() {
|
|
IronSourceBannerLayout ironSourceBannerLayout = this.d;
|
|
if (ironSourceBannerLayout != null) {
|
|
zs.a.a(ironSourceBannerLayout);
|
|
}
|
|
this.b.post(new Runnable() { // from class: com.ironsource.ct$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ct.a(ct.this);
|
|
}
|
|
});
|
|
this.d = null;
|
|
}
|
|
|
|
@Override // com.ironsource.ns.d
|
|
public void b(ts loadAdConfig) {
|
|
Intrinsics.checkNotNullParameter(loadAdConfig, "loadAdConfig");
|
|
zs zsVar = zs.a;
|
|
zsVar.a(IronSource.AD_UNIT.REWARDED_VIDEO, loadAdConfig);
|
|
zsVar.h();
|
|
}
|
|
|
|
@Override // com.ironsource.ns.c
|
|
public void c() {
|
|
zs.a.a((Activity) this.a.get());
|
|
}
|
|
|
|
@Override // com.ironsource.ns.d
|
|
public void d() {
|
|
zs.a.b((Activity) this.a.get());
|
|
}
|
|
|
|
@Override // com.ironsource.ns.c
|
|
public boolean e() {
|
|
return zs.a.e();
|
|
}
|
|
}
|