- 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
468 lines
17 KiB
Java
468 lines
17 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.util.AttributeSet;
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewParent;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.mediationsdk.ISBannerSize;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.model.Placement;
|
|
import com.ironsource.sdk.mediation.R;
|
|
import com.ironsource.x1;
|
|
import com.unity3d.mediation.LevelPlay;
|
|
import com.unity3d.mediation.LevelPlayAdError;
|
|
import com.unity3d.mediation.LevelPlayAdInfo;
|
|
import com.unity3d.mediation.LevelPlayAdSize;
|
|
import com.unity3d.mediation.banner.LevelPlayBannerAdViewListener;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nLevelPlayBannerAdViewInternal.kt\nKotlin\n*S Kotlin\n*F\n+ 1 LevelPlayBannerAdViewInternal.kt\ncom/unity3d/mediation/internal/ads/LevelPlayBannerAdViewInternal\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,218:1\n1#2:219\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class zj extends xj implements p5 {
|
|
private final p6 d;
|
|
private final pg e;
|
|
private LevelPlayAdSize f;
|
|
private LevelPlayBannerAdViewListener g;
|
|
private String h;
|
|
private o5 i;
|
|
private Placement j;
|
|
|
|
@SourceDebugExtension({"SMAP\nLevelPlayBannerAdViewInternal.kt\nKotlin\n*S Kotlin\n*F\n+ 1 LevelPlayBannerAdViewInternal.kt\ncom/unity3d/mediation/internal/ads/LevelPlayBannerAdViewInternal$setAttributes$1\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,218:1\n1#2:219\n*E\n"})
|
|
public static final class a extends yp {
|
|
final /* synthetic */ String a;
|
|
final /* synthetic */ String b;
|
|
final /* synthetic */ zj c;
|
|
|
|
public a(String str, String str2, zj zjVar) {
|
|
this.a = str;
|
|
this.b = str2;
|
|
this.c = zjVar;
|
|
}
|
|
|
|
@Override // com.ironsource.yp
|
|
public void a() {
|
|
String str = this.a;
|
|
if (str != null) {
|
|
this.c.a(str);
|
|
}
|
|
String str2 = this.b;
|
|
if (str2 != null) {
|
|
this.c.f = LevelPlayAdSize.Companion.createAdSize$mediationsdk_release(str2);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.yp
|
|
public void a(Throwable t) {
|
|
Intrinsics.checkNotNullParameter(t, "t");
|
|
if (t instanceof IllegalArgumentException) {
|
|
throw t;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public zj(p6 bannerContainer, AttributeSet attributeSet) {
|
|
super(new k1(IronSource.AD_UNIT.BANNER, x1.b.MEDIATION));
|
|
Intrinsics.checkNotNullParameter(bannerContainer, "bannerContainer");
|
|
this.d = bannerContainer;
|
|
this.e = el.p.d().n();
|
|
this.f = LevelPlayAdSize.BANNER;
|
|
this.h = "";
|
|
if (attributeSet != null) {
|
|
Context context = bannerContainer.getContext();
|
|
Intrinsics.checkNotNullExpressionValue(context, "bannerContainer.context");
|
|
a(context, attributeSet);
|
|
}
|
|
}
|
|
|
|
private final void a(Context context, AttributeSet attributeSet) {
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R.styleable.LevelPlayBannerAdView);
|
|
Intrinsics.checkNotNullExpressionValue(obtainStyledAttributes, "context.obtainStyledAttr…le.LevelPlayBannerAdView)");
|
|
a().d(new a(obtainStyledAttributes.getString(R.styleable.LevelPlayBannerAdView_adUnitId), obtainStyledAttributes.getString(R.styleable.LevelPlayBannerAdView_adSize), this));
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(final zj this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
if (!this$0.c()) {
|
|
IronLog.INTERNAL.warning(k1.a(this$0.a(), "Banner not loaded", (String) null, 2, (Object) null));
|
|
return;
|
|
}
|
|
if (this$0.i == null) {
|
|
IronLog.INTERNAL.warning(k1.a(this$0.a(), "Banner already destroyed", (String) null, 2, (Object) null));
|
|
return;
|
|
}
|
|
ok.a(this$0.a(), new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda12
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.b(zj.this);
|
|
}
|
|
}, 0L, 2, (Object) null);
|
|
o5 o5Var = this$0.i;
|
|
if (o5Var != null) {
|
|
o5Var.c();
|
|
}
|
|
this$0.i = null;
|
|
this$0.g = null;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(zj this$0, LevelPlayAdError it) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(it, "$it");
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this$0.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdLoadFailed(it);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(zj this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this$0.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdClicked(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(zj this$0, LevelPlayBannerAdViewListener levelPlayBannerAdViewListener) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.g = levelPlayBannerAdViewListener;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(zj this$0, String placementName) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(placementName, "$placementName");
|
|
if (this$0.c()) {
|
|
return;
|
|
}
|
|
this$0.h = placementName;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void b(zj this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.d.removeAllViews();
|
|
ViewParent parent = this$0.d.getParent();
|
|
ViewGroup viewGroup = parent instanceof ViewGroup ? (ViewGroup) parent : null;
|
|
if (viewGroup != null) {
|
|
viewGroup.removeView(this$0.d);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void b(zj this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this$0.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdDisplayed(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void b(zj this$0, LevelPlayAdSize adSize) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adSize, "$adSize");
|
|
if (this$0.c()) {
|
|
return;
|
|
}
|
|
this$0.f = adSize;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void c(zj this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
if (this$0.c()) {
|
|
IronLog.INTERNAL.warning(k1.a(this$0.a(), "Banner load already called", (String) null, 2, (Object) null));
|
|
return;
|
|
}
|
|
this$0.a(true);
|
|
if (this$0.d()) {
|
|
o5 e = this$0.e();
|
|
e.d();
|
|
this$0.i = e;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void c(zj this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this$0.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdLeftApplication(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void d(zj this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
o5 o5Var = this$0.i;
|
|
if (o5Var != null) {
|
|
o5Var.e();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void d(zj this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this$0.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdLoaded(adInfo);
|
|
}
|
|
}
|
|
|
|
private final o5 e() {
|
|
Placement placement;
|
|
this.j = a().a(this.h);
|
|
Context context = this.d.getContext();
|
|
if (context instanceof Activity) {
|
|
ContextProvider.getInstance().updateActivity((Activity) context);
|
|
}
|
|
String b = b();
|
|
Placement placement2 = this.j;
|
|
Placement placement3 = null;
|
|
if (placement2 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("bannerPlacement");
|
|
placement = null;
|
|
} else {
|
|
placement = placement2;
|
|
}
|
|
c6 c6Var = new c6(b, placement, this.f, null, null, this.e.a(), 24, null);
|
|
a(c6Var);
|
|
ISBannerSize a2 = a().a(c6Var.g());
|
|
lb e = a().e();
|
|
k1 a3 = a();
|
|
Placement placement4 = this.j;
|
|
if (placement4 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("bannerPlacement");
|
|
} else {
|
|
placement3 = placement4;
|
|
}
|
|
e.a(new s6(a3, a2, placement3.getPlacementName()));
|
|
return new o5(this, a(), c6Var, this.d);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void e(zj this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
o5 o5Var = this$0.i;
|
|
if (o5Var != null) {
|
|
o5Var.f();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void e(zj this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this$0.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdCollapsed(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void f(zj this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this$0.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdExpanded(adInfo);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.p5
|
|
public void a(final LevelPlayAdError levelPlayAdError) {
|
|
if (levelPlayAdError != null) {
|
|
b(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.a(zj.this, levelPlayAdError);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.p5
|
|
public void a(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
b(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.f(zj.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.p5
|
|
public void a(final LevelPlayAdInfo adInfo, boolean z) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
b(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda9
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.d(zj.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void a(final LevelPlayAdSize adSize) {
|
|
Intrinsics.checkNotNullParameter(adSize, "adSize");
|
|
a(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.b(zj.this, adSize);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void a(final LevelPlayBannerAdViewListener levelPlayBannerAdViewListener) {
|
|
a(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.a(zj.this, levelPlayBannerAdViewListener);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void b(final String placementName) {
|
|
Intrinsics.checkNotNullParameter(placementName, "placementName");
|
|
a(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.a(zj.this, placementName);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.p5
|
|
public void c(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
b(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda11
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.b(zj.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.xj
|
|
public boolean d() {
|
|
LevelPlayAdError levelPlayAdError;
|
|
if (b().length() == 0) {
|
|
levelPlayAdError = new LevelPlayAdError(b(), LevelPlayAdError.ERROR_CODE_NO_AD_UNIT_ID_SPECIFIED, "Ad unit ID should be specified");
|
|
} else {
|
|
if (a().h()) {
|
|
ak a2 = el.p.d().r().a();
|
|
if (a2 != null && a2.a(b(), LevelPlay.AdFormat.BANNER)) {
|
|
return true;
|
|
}
|
|
LevelPlayBannerAdViewListener levelPlayBannerAdViewListener = this.g;
|
|
if (levelPlayBannerAdViewListener != null) {
|
|
levelPlayBannerAdViewListener.onAdLoadFailed(new LevelPlayAdError(b(), LevelPlayAdError.ERROR_CODE_INVALID_AD_UNIT_ID, "Invalid ad unit id"));
|
|
}
|
|
return false;
|
|
}
|
|
levelPlayAdError = new LevelPlayAdError(b(), LevelPlayAdError.ERROR_CODE_LOAD_BEFORE_INIT_SUCCESS_CALLBACK, "load must be called after init success callback");
|
|
}
|
|
a(levelPlayAdError);
|
|
return false;
|
|
}
|
|
|
|
@Override // com.ironsource.p5
|
|
public void e(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
b(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.e(zj.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void f() {
|
|
a(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.a(zj.this);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final LevelPlayAdSize g() {
|
|
return this.f;
|
|
}
|
|
|
|
@Override // com.ironsource.p5
|
|
public void g(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
b(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda14
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.a(zj.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final LevelPlayBannerAdViewListener h() {
|
|
return this.g;
|
|
}
|
|
|
|
public final String i() {
|
|
return this.h;
|
|
}
|
|
|
|
public final pg j() {
|
|
return this.e;
|
|
}
|
|
|
|
public final void k() {
|
|
a(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.c(zj.this);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.p5
|
|
public void k(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
b(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda10
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.c(zj.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void l() {
|
|
a(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda13
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.d(zj.this);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void m() {
|
|
a(new Runnable() { // from class: com.ironsource.zj$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zj.e(zj.this);
|
|
}
|
|
});
|
|
}
|
|
}
|