- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
516 lines
19 KiB
Java
516 lines
19 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import com.ironsource.f1;
|
|
import com.ironsource.k1;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.x1;
|
|
import com.unity3d.mediation.LevelPlay;
|
|
import com.unity3d.mediation.LevelPlayAdError;
|
|
import com.unity3d.mediation.LevelPlayAdInfo;
|
|
import com.unity3d.mediation.interstitial.LevelPlayInterstitialAdListener;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nLevelPlayInterstitialAdInternal.kt\nKotlin\n*S Kotlin\n*F\n+ 1 LevelPlayInterstitialAdInternal.kt\ncom/unity3d/mediation/internal/ads/LevelPlayInterstitialAdInternal\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,160:1\n1#2:161\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class ck implements lh {
|
|
public static final a j = new a(null);
|
|
private final k1 a;
|
|
private final kh b;
|
|
private final me c;
|
|
private final wd d;
|
|
private final k9 e;
|
|
private String f;
|
|
private jh g;
|
|
private LevelPlayInterstitialAdListener h;
|
|
private ci i;
|
|
|
|
public static final class a {
|
|
private a() {
|
|
}
|
|
|
|
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final boolean a(String placementName) {
|
|
boolean d;
|
|
j0 a;
|
|
String e;
|
|
Intrinsics.checkNotNullParameter(placementName, "placementName");
|
|
k1 a2 = k1.a.a(IronSource.AD_UNIT.INTERSTITIAL, x1.b.MEDIATION);
|
|
if (a2.h()) {
|
|
f8 a3 = el.p.d().w().a(placementName, LevelPlay.AdFormat.INTERSTITIAL);
|
|
d = a3.d();
|
|
a = a2.e().a();
|
|
e = a3.e();
|
|
} else {
|
|
a = a2.e().a();
|
|
e = "SDK is not initialized";
|
|
d = false;
|
|
}
|
|
a.a(placementName, e, d);
|
|
return d;
|
|
}
|
|
}
|
|
|
|
public static final class b {
|
|
public static final b a = new b();
|
|
|
|
private b() {
|
|
}
|
|
|
|
public static final ck a() {
|
|
return new ck(new k1(IronSource.AD_UNIT.INTERSTITIAL, x1.b.MEDIATION), new kh(), null, null, null, 28, null);
|
|
}
|
|
}
|
|
|
|
public ck(k1 adTools, kh interstitialAdControllerFactory, me mediationServicesProvider, wd adUnitCappingProvider, k9 currentTimeProvider) {
|
|
Intrinsics.checkNotNullParameter(adTools, "adTools");
|
|
Intrinsics.checkNotNullParameter(interstitialAdControllerFactory, "interstitialAdControllerFactory");
|
|
Intrinsics.checkNotNullParameter(mediationServicesProvider, "mediationServicesProvider");
|
|
Intrinsics.checkNotNullParameter(adUnitCappingProvider, "adUnitCappingProvider");
|
|
Intrinsics.checkNotNullParameter(currentTimeProvider, "currentTimeProvider");
|
|
this.a = adTools;
|
|
this.b = interstitialAdControllerFactory;
|
|
this.c = mediationServicesProvider;
|
|
this.d = adUnitCappingProvider;
|
|
this.e = currentTimeProvider;
|
|
this.f = "";
|
|
this.i = new mh(this);
|
|
}
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public /* synthetic */ ck(com.ironsource.k1 r7, com.ironsource.kh r8, com.ironsource.me r9, com.ironsource.wd r10, com.ironsource.k9 r11, int r12, kotlin.jvm.internal.DefaultConstructorMarker r13) {
|
|
/*
|
|
r6 = this;
|
|
r13 = r12 & 4
|
|
if (r13 == 0) goto La
|
|
com.ironsource.el$b r9 = com.ironsource.el.p
|
|
com.ironsource.me r9 = r9.d()
|
|
La:
|
|
r3 = r9
|
|
r9 = r12 & 8
|
|
if (r9 == 0) goto L13
|
|
com.ironsource.wd r10 = r3.s()
|
|
L13:
|
|
r4 = r10
|
|
r9 = r12 & 16
|
|
if (r9 == 0) goto L1d
|
|
com.ironsource.k9$a r11 = new com.ironsource.k9$a
|
|
r11.<init>()
|
|
L1d:
|
|
r5 = r11
|
|
r0 = r6
|
|
r1 = r7
|
|
r2 = r8
|
|
r0.<init>(r1, r2, r3, r4, r5)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.ironsource.ck.<init>(com.ironsource.k1, com.ironsource.kh, com.ironsource.me, com.ironsource.wd, com.ironsource.k9, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ck this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.a.e().g().b();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ck this$0, Activity activity, String str) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(activity, "$activity");
|
|
this$0.a.e().g().c();
|
|
this$0.i.a(activity, str);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ck this$0, LevelPlayAdError levelPlayAdError) {
|
|
String str;
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
ut g = this$0.a.e().g();
|
|
int errorCode = levelPlayAdError != null ? levelPlayAdError.getErrorCode() : 0;
|
|
if (levelPlayAdError == null || (str = levelPlayAdError.getErrorMessage()) == null) {
|
|
str = "";
|
|
}
|
|
g.b(errorCode, str);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ck this$0, LevelPlayAdError error, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(error, "$error");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayInterstitialAdListener levelPlayInterstitialAdListener = this$0.h;
|
|
if (levelPlayInterstitialAdListener != null) {
|
|
levelPlayInterstitialAdListener.onAdDisplayFailed(error, adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ck this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayInterstitialAdListener levelPlayInterstitialAdListener = this$0.h;
|
|
if (levelPlayInterstitialAdListener != null) {
|
|
levelPlayInterstitialAdListener.onAdLoaded(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(ck this$0, LevelPlayInterstitialAdListener levelPlayInterstitialAdListener) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.h = levelPlayInterstitialAdListener;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(LevelPlayAdError levelPlayAdError, ck this$0) {
|
|
LevelPlayInterstitialAdListener levelPlayInterstitialAdListener;
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
if (levelPlayAdError == null || (levelPlayInterstitialAdListener = this$0.h) == null) {
|
|
return;
|
|
}
|
|
levelPlayInterstitialAdListener.onAdLoadFailed(levelPlayAdError);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void b(ck this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.a.e().g().a();
|
|
this$0.i.loadAd();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void b(ck this$0, LevelPlayAdError error) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(error, "$error");
|
|
this$0.a.e().g().a(error);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void b(ck this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
this$0.i.onAdInfoChanged(adInfo);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void c(ck this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.a(new mh(this$0));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void c(ck this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayInterstitialAdListener levelPlayInterstitialAdListener = this$0.h;
|
|
if (levelPlayInterstitialAdListener != null) {
|
|
levelPlayInterstitialAdListener.onAdInfoChanged(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void d(ck this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.a(new mh(this$0));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void d(ck this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayInterstitialAdListener levelPlayInterstitialAdListener = this$0.h;
|
|
if (levelPlayInterstitialAdListener != null) {
|
|
levelPlayInterstitialAdListener.onAdClicked(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void e(ck this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.a.e().g().d();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void e(ck this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayInterstitialAdListener levelPlayInterstitialAdListener = this$0.h;
|
|
if (levelPlayInterstitialAdListener != null) {
|
|
levelPlayInterstitialAdListener.onAdClosed(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void f(ck this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.a(new mh(this$0));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void f(ck this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
LevelPlayInterstitialAdListener levelPlayInterstitialAdListener = this$0.h;
|
|
if (levelPlayInterstitialAdListener != null) {
|
|
levelPlayInterstitialAdListener.onAdDisplayed(adInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void g(ck this$0, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInfo, "$adInfo");
|
|
this$0.a(new vh(this$0, adInfo, this$0.e));
|
|
}
|
|
|
|
public final jh a() {
|
|
return this.g;
|
|
}
|
|
|
|
public final void a(final Activity activity, final String str) {
|
|
Intrinsics.checkNotNullParameter(activity, "activity");
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda10
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.a(ck.this, activity, str);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void a(ci state) {
|
|
Intrinsics.checkNotNullParameter(state, "state");
|
|
this.i = state;
|
|
}
|
|
|
|
public final void a(jh jhVar) {
|
|
this.g = jhVar;
|
|
}
|
|
|
|
@Override // com.ironsource.lh
|
|
public void a(LevelPlayAdError levelPlayAdError) {
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.f(ck.this);
|
|
}
|
|
});
|
|
b(levelPlayAdError);
|
|
}
|
|
|
|
@Override // com.ironsource.lh
|
|
public void a(LevelPlayAdError error, LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(error, "error");
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda11
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.d(ck.this);
|
|
}
|
|
});
|
|
b(error, adInfo);
|
|
}
|
|
|
|
@Override // com.ironsource.lh
|
|
public void a(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
IronLog.CALLBACK.verbose(k1.a(this.a, "onAdClicked adInfo: " + adInfo, (String) null, 2, (Object) null));
|
|
this.a.e(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda18
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.d(ck.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void a(final LevelPlayInterstitialAdListener levelPlayInterstitialAdListener) {
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.a(ck.this, levelPlayInterstitialAdListener);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void a(String str) {
|
|
Intrinsics.checkNotNullParameter(str, "<set-?>");
|
|
this.f = str;
|
|
}
|
|
|
|
public final k1 b() {
|
|
return this.a;
|
|
}
|
|
|
|
public final void b(final LevelPlayAdError levelPlayAdError) {
|
|
IronLog.CALLBACK.verbose(k1.a(this.a, "onAdLoadFailed adInfo: " + levelPlayAdError, (String) null, 2, (Object) null));
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.a(ck.this, levelPlayAdError);
|
|
}
|
|
});
|
|
this.a.e(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.a(LevelPlayAdError.this, this);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void b(final LevelPlayAdError error, final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(error, "error");
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
IronLog.CALLBACK.verbose(k1.a(this.a, "onAdDisplayFailed error: " + error + ", adInfo: " + adInfo, (String) null, 2, (Object) null));
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda12
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.b(ck.this, error);
|
|
}
|
|
});
|
|
this.a.e(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda13
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.a(ck.this, error, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.lh
|
|
public void b(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
IronLog.CALLBACK.verbose(k1.a(this.a, "onAdClosed adInfo: " + adInfo, (String) null, 2, (Object) null));
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda14
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.c(ck.this);
|
|
}
|
|
});
|
|
this.a.e(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda15
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.e(ck.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void b(LevelPlayInterstitialAdListener levelPlayInterstitialAdListener) {
|
|
this.h = levelPlayInterstitialAdListener;
|
|
}
|
|
|
|
public final wd c() {
|
|
return this.d;
|
|
}
|
|
|
|
@Override // com.ironsource.lh
|
|
public void c(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
IronLog.CALLBACK.verbose(k1.a(this.a, "onAdDisplayed adInfo: " + adInfo, (String) null, 2, (Object) null));
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.e(ck.this);
|
|
}
|
|
});
|
|
this.a.e(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.f(ck.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final String d() {
|
|
return this.f;
|
|
}
|
|
|
|
@Override // com.ironsource.lh
|
|
public void d(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.g(ck.this, adInfo);
|
|
}
|
|
});
|
|
e(adInfo);
|
|
}
|
|
|
|
public final kh e() {
|
|
return this.b;
|
|
}
|
|
|
|
public final void e(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
IronLog.CALLBACK.verbose(k1.a(this.a, "onAdLoaded adInfo: " + adInfo, (String) null, 2, (Object) null));
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda16
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.a(ck.this);
|
|
}
|
|
});
|
|
this.a.e(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda17
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.a(ck.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final LevelPlayInterstitialAdListener f() {
|
|
return this.h;
|
|
}
|
|
|
|
public final me g() {
|
|
return this.c;
|
|
}
|
|
|
|
public final boolean h() {
|
|
f1 a2 = this.i.a();
|
|
this.a.e().e().a(Boolean.valueOf(a2.a()), a2 instanceof f1.a ? ((f1.a) a2).d() : null);
|
|
return a2.a();
|
|
}
|
|
|
|
public final void i() {
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.b(ck.this);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void j() {
|
|
a(new wh(this));
|
|
jh jhVar = this.g;
|
|
if (jhVar != null) {
|
|
jhVar.c();
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.lh
|
|
public void onAdInfoChanged(final LevelPlayAdInfo adInfo) {
|
|
Intrinsics.checkNotNullParameter(adInfo, "adInfo");
|
|
IronLog.CALLBACK.verbose(k1.a(this.a, "onAdInfoChanged adInfo: " + adInfo, (String) null, 2, (Object) null));
|
|
this.a.d(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.b(ck.this, adInfo);
|
|
}
|
|
});
|
|
this.a.e(new Runnable() { // from class: com.ironsource.ck$$ExternalSyntheticLambda9
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ck.c(ck.this, adInfo);
|
|
}
|
|
});
|
|
}
|
|
}
|