- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
994 lines
41 KiB
Java
994 lines
41 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.adview.AppLovinAdView;
|
|
import com.applovin.adview.AppLovinAdViewDisplayErrorCode;
|
|
import com.applovin.adview.AppLovinAdViewEventListener;
|
|
import com.applovin.impl.sdk.AppLovinError;
|
|
import com.applovin.impl.sdk.ad.AppLovinAdImpl;
|
|
import com.applovin.impl.sdk.nativeAd.AppLovinNativeAd;
|
|
import com.applovin.impl.sdk.nativeAd.AppLovinNativeAdEventListener;
|
|
import com.applovin.impl.sdk.nativeAd.AppLovinNativeAdLoadListener;
|
|
import com.applovin.mediation.MaxAd;
|
|
import com.applovin.mediation.MaxAdExpirationListener;
|
|
import com.applovin.mediation.MaxAdListener;
|
|
import com.applovin.mediation.MaxAdRequestListener;
|
|
import com.applovin.mediation.MaxAdRevenueListener;
|
|
import com.applovin.mediation.MaxAdReviewListener;
|
|
import com.applovin.mediation.MaxAdViewAdListener;
|
|
import com.applovin.mediation.MaxError;
|
|
import com.applovin.mediation.MaxReward;
|
|
import com.applovin.mediation.MaxRewardedAdListener;
|
|
import com.applovin.mediation.nativeAds.MaxNativeAdListener;
|
|
import com.applovin.mediation.nativeAds.MaxNativeAdView;
|
|
import com.applovin.sdk.AppLovinAd;
|
|
import com.applovin.sdk.AppLovinAdClickListener;
|
|
import com.applovin.sdk.AppLovinAdDisplayListener;
|
|
import com.applovin.sdk.AppLovinAdRewardListener;
|
|
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
|
|
import com.applovin.sdk.AppLovinBidTokenCollectionListener;
|
|
import com.applovin.sdk.AppLovinPostbackListener;
|
|
import com.applovin.sdk.AppLovinSdkUtils;
|
|
import com.ironsource.bt;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class gc {
|
|
private static boolean a = true;
|
|
private static boolean b = true;
|
|
|
|
public static void a(boolean z) {
|
|
b = z;
|
|
}
|
|
|
|
public static void b(boolean z) {
|
|
a = z;
|
|
}
|
|
|
|
private static boolean c(boolean z) {
|
|
return z ? a : b;
|
|
}
|
|
|
|
public static void b(final AppLovinAdDisplayListener appLovinAdDisplayListener, final AppLovinAd appLovinAd) {
|
|
if (appLovinAd == null || appLovinAdDisplayListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.d(AppLovinAdDisplayListener.this, appLovinAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void a(final AppLovinAdClickListener appLovinAdClickListener, final AppLovinAd appLovinAd) {
|
|
if (appLovinAd == null || appLovinAdClickListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinAdClickListener.this, appLovinAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void a(final AppLovinAdDisplayListener appLovinAdDisplayListener, final AppLovinAd appLovinAd) {
|
|
if (appLovinAd == null || appLovinAdDisplayListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda14
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.c(AppLovinAdDisplayListener.this, appLovinAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void c(final AppLovinAdRewardListener appLovinAdRewardListener, final AppLovinAd appLovinAd, final Map map) {
|
|
if (appLovinAd == null || appLovinAdRewardListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda26
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.f(AppLovinAdRewardListener.this, appLovinAd, map);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void f(MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
f(maxAdListener, maxAd, false);
|
|
}
|
|
|
|
public static void b(final AppLovinAdRewardListener appLovinAdRewardListener, final AppLovinAd appLovinAd, final Map map) {
|
|
if (appLovinAd == null || appLovinAdRewardListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda15
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.e(AppLovinAdRewardListener.this, appLovinAd, map);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void e(MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
e(maxAdListener, maxAd, false);
|
|
}
|
|
|
|
public static void c(final AppLovinAdViewEventListener appLovinAdViewEventListener, final AppLovinAd appLovinAd, final AppLovinAdView appLovinAdView) {
|
|
if (appLovinAd == null || appLovinAdViewEventListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda28
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.f(AppLovinAdViewEventListener.this, appLovinAd, appLovinAdView);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void a(final AppLovinAdRewardListener appLovinAdRewardListener, final AppLovinAd appLovinAd, final Map map) {
|
|
if (appLovinAd == null || appLovinAdRewardListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda9
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.d(AppLovinAdRewardListener.this, appLovinAd, map);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void b(final AppLovinAdViewEventListener appLovinAdViewEventListener, final AppLovinAd appLovinAd, final AppLovinAdView appLovinAdView) {
|
|
if (appLovinAd == null || appLovinAdViewEventListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.e(AppLovinAdViewEventListener.this, appLovinAd, appLovinAdView);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void d(MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
d(maxAdListener, maxAd, false);
|
|
}
|
|
|
|
public static void f(final MaxAdListener maxAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.f(z, maxAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void b(final AppLovinBidTokenCollectionListener appLovinBidTokenCollectionListener, final String str) {
|
|
if (appLovinBidTokenCollectionListener != null) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda17
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.d(AppLovinBidTokenCollectionListener.this, str);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void e(final MaxAdListener maxAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda30
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.e(z, maxAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void c(MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
c(maxAdListener, maxAd, false);
|
|
}
|
|
|
|
public static void a(final AppLovinAdRewardListener appLovinAdRewardListener, final AppLovinAd appLovinAd, final int i) {
|
|
if (appLovinAd == null || appLovinAdRewardListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda20
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinAdRewardListener.this, appLovinAd, i);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void f(AppLovinAdRewardListener appLovinAdRewardListener, AppLovinAd appLovinAd, Map map) {
|
|
try {
|
|
appLovinAdRewardListener.userRewardVerified(a(appLovinAd), map);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad reward listener about successful reward validation request", th);
|
|
}
|
|
}
|
|
|
|
public static void a(final AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener, final AppLovinAd appLovinAd) {
|
|
if (appLovinAd == null || appLovinAdVideoPlaybackListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda36
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinAdVideoPlaybackListener.this, appLovinAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void e(AppLovinAdRewardListener appLovinAdRewardListener, AppLovinAd appLovinAd, Map map) {
|
|
try {
|
|
appLovinAdRewardListener.userOverQuota(a(appLovinAd), map);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad reward listener about exceeding quota", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void f(AppLovinAdViewEventListener appLovinAdViewEventListener, AppLovinAd appLovinAd, AppLovinAdView appLovinAdView) {
|
|
try {
|
|
appLovinAdViewEventListener.adOpenedFullscreen(a(appLovinAd), appLovinAdView);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about fullscreen opened event", th);
|
|
}
|
|
}
|
|
|
|
public static void a(final AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener, final AppLovinAd appLovinAd, final double d, final boolean z) {
|
|
if (appLovinAd == null || appLovinAdVideoPlaybackListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinAdVideoPlaybackListener.this, appLovinAd, d, z);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void c(final MaxAdListener maxAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda27
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.c(z, maxAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void d(final MaxAdListener maxAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || !(maxAdListener instanceof MaxAdViewAdListener)) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda23
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.d(z, maxAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void c(AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAd appLovinAd) {
|
|
try {
|
|
appLovinAdDisplayListener.adDisplayed(a(appLovinAd));
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about ad being displayed", th);
|
|
c("adDisplayed", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void e(AppLovinAdViewEventListener appLovinAdViewEventListener, AppLovinAd appLovinAd, AppLovinAdView appLovinAdView) {
|
|
try {
|
|
appLovinAdViewEventListener.adLeftApplication(a(appLovinAd), appLovinAdView);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about application leave event", th);
|
|
}
|
|
}
|
|
|
|
public static void b(MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
b(maxAdListener, maxAd, false);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void d(AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAd appLovinAd) {
|
|
try {
|
|
appLovinAdDisplayListener.adHidden(a(appLovinAd));
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about ad being hidden", th);
|
|
c("adHidden", th);
|
|
}
|
|
}
|
|
|
|
public static void a(final AppLovinAdViewEventListener appLovinAdViewEventListener, final AppLovinAd appLovinAd, final AppLovinAdView appLovinAdView) {
|
|
if (appLovinAd == null || appLovinAdViewEventListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda21
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.d(AppLovinAdViewEventListener.this, appLovinAd, appLovinAdView);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void c(AppLovinBidTokenCollectionListener appLovinBidTokenCollectionListener, String str) {
|
|
try {
|
|
appLovinBidTokenCollectionListener.onBidTokenCollected(str);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify bid token listener about successful bid token collection", th);
|
|
c("onBidTokenCollected", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void f(boolean z, MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdListener.onAdLoaded(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a(bt.j, th, z);
|
|
c("maxAdLoaded", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdListener.onAdLoaded(maxAd);
|
|
}
|
|
|
|
public static void a(final AppLovinAdViewEventListener appLovinAdViewEventListener, final AppLovinAd appLovinAd, final AppLovinAdView appLovinAdView, final AppLovinAdViewDisplayErrorCode appLovinAdViewDisplayErrorCode) {
|
|
if (appLovinAd == null || appLovinAdViewEventListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda25
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinAdViewEventListener.this, appLovinAd, appLovinAdView, appLovinAdViewDisplayErrorCode);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void d(AppLovinAdRewardListener appLovinAdRewardListener, AppLovinAd appLovinAd, Map map) {
|
|
try {
|
|
appLovinAdRewardListener.userRewardRejected(a(appLovinAd), map);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad reward listener about reward validation request being rejected", th);
|
|
}
|
|
}
|
|
|
|
public static void a(final AppLovinBidTokenCollectionListener appLovinBidTokenCollectionListener, final String str) {
|
|
if (appLovinBidTokenCollectionListener != null) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda16
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.c(AppLovinBidTokenCollectionListener.this, str);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void e(boolean z, MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdListener.onAdHidden(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onAdHidden", th, z);
|
|
c("maxAdHidden", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdListener.onAdHidden(maxAd);
|
|
}
|
|
|
|
public static void a(final AppLovinAdDisplayListener appLovinAdDisplayListener, final String str) {
|
|
if (appLovinAdDisplayListener instanceof qb) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda32
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinAdDisplayListener.this, str);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void c(boolean z, MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdListener.onAdDisplayed(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onAdDisplayed", th, z);
|
|
c("maxAdDisplayed", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdListener.onAdDisplayed(maxAd);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void d(AppLovinAdViewEventListener appLovinAdViewEventListener, AppLovinAd appLovinAd, AppLovinAdView appLovinAdView) {
|
|
try {
|
|
appLovinAdViewEventListener.adClosedFullscreen(a(appLovinAd), appLovinAdView);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about fullscreen closed event", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void d(AppLovinBidTokenCollectionListener appLovinBidTokenCollectionListener, String str) {
|
|
try {
|
|
appLovinBidTokenCollectionListener.onBidTokenCollectionFailed(str);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify bid token listener about bid token collection failure", th);
|
|
c("onBidTokenCollectionFailed", th);
|
|
}
|
|
}
|
|
|
|
public static void b(final MaxAdListener maxAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || !(maxAdListener instanceof MaxAdViewAdListener)) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda24
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(z, maxAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void a(MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
a(maxAdListener, maxAd, false);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void d(boolean z, MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
((MaxAdViewAdListener) maxAdListener).onAdExpanded(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onAdExpanded", th, z);
|
|
return;
|
|
}
|
|
}
|
|
((MaxAdViewAdListener) maxAdListener).onAdExpanded(maxAd);
|
|
}
|
|
|
|
public static void a(final MaxAdListener maxAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda33
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
private static void c(String str, Throwable th) {
|
|
com.applovin.impl.sdk.j jVar = com.applovin.impl.sdk.j.v0;
|
|
if (jVar != null) {
|
|
jVar.E().a("ListenerCallbackInvoker", str, th);
|
|
}
|
|
}
|
|
|
|
public static void b(final MaxNativeAdListener maxNativeAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxNativeAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda35
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(z, maxNativeAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinAdClickListener appLovinAdClickListener, AppLovinAd appLovinAd) {
|
|
try {
|
|
appLovinAdClickListener.adClicked(a(appLovinAd));
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about ad being clicked", th);
|
|
c("adClicked", th);
|
|
}
|
|
}
|
|
|
|
public static void a(MaxAdListener maxAdListener, MaxAd maxAd, MaxError maxError) {
|
|
a(maxAdListener, maxAd, maxError, false);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinAdRewardListener appLovinAdRewardListener, AppLovinAd appLovinAd, int i) {
|
|
try {
|
|
appLovinAdRewardListener.validationRequestFailed(a(appLovinAd), i);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad reward listener about reward validation request failing", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener, AppLovinAd appLovinAd) {
|
|
try {
|
|
appLovinAdVideoPlaybackListener.videoPlaybackBegan(a(appLovinAd));
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about ad playback began", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener, AppLovinAd appLovinAd, double d, boolean z) {
|
|
try {
|
|
appLovinAdVideoPlaybackListener.videoPlaybackEnded(a(appLovinAd), d, z);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about ad playback ended", th);
|
|
}
|
|
}
|
|
|
|
public static void a(final MaxAdListener maxAdListener, final MaxAd maxAd, final MaxError maxError, final boolean z) {
|
|
if (maxAd == null || maxAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxAdListener, maxAd, maxError);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinAdViewEventListener appLovinAdViewEventListener, AppLovinAd appLovinAd, AppLovinAdView appLovinAdView, AppLovinAdViewDisplayErrorCode appLovinAdViewDisplayErrorCode) {
|
|
try {
|
|
appLovinAdViewEventListener.adFailedToDisplay(a(appLovinAd), appLovinAdView, appLovinAdViewDisplayErrorCode);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify ad event listener about display failed event", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinAdDisplayListener appLovinAdDisplayListener, String str) {
|
|
((qb) appLovinAdDisplayListener).onAdDisplayFailed(str);
|
|
}
|
|
|
|
public static void a(MaxAdListener maxAdListener, String str, MaxError maxError) {
|
|
a(maxAdListener, str, maxError, false);
|
|
}
|
|
|
|
public static void a(final MaxAdListener maxAdListener, final String str, final MaxError maxError, final boolean z) {
|
|
if (str == null || maxAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxAdListener, str, maxError);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(boolean z, MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
((MaxAdViewAdListener) maxAdListener).onAdCollapsed(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onAdCollapsed", th, z);
|
|
return;
|
|
}
|
|
}
|
|
((MaxAdViewAdListener) maxAdListener).onAdCollapsed(maxAd);
|
|
}
|
|
|
|
public static void a(MaxAdRequestListener maxAdRequestListener, String str) {
|
|
a(maxAdRequestListener, str, false);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(boolean z, MaxNativeAdListener maxNativeAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxNativeAdListener.onNativeAdExpired(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onNativeAdExpired", th, z);
|
|
c("maxNativeAdExpired", th);
|
|
return;
|
|
}
|
|
}
|
|
maxNativeAdListener.onNativeAdExpired(maxAd);
|
|
}
|
|
|
|
public static void a(final MaxAdRequestListener maxAdRequestListener, final String str, final boolean z) {
|
|
if (str == null || maxAdRequestListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda29
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxAdRequestListener, str);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void a(MaxAdRevenueListener maxAdRevenueListener, MaxAd maxAd) {
|
|
a(maxAdRevenueListener, maxAd, false);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinPostbackListener appLovinPostbackListener, String str, int i) {
|
|
try {
|
|
appLovinPostbackListener.onPostbackFailure(str, i);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify AppLovinPostbackListener about postback URL (" + str + ") failing to execute with error code (" + i + "):", th);
|
|
}
|
|
}
|
|
|
|
public static void a(final MaxAdRevenueListener maxAdRevenueListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxAdRevenueListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda12
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxAdRevenueListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void a(final MaxAdExpirationListener maxAdExpirationListener, final MaxAd maxAd, final MaxAd maxAd2, final boolean z) {
|
|
if (maxAd == null || maxAd2 == null || maxAdExpirationListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxAdExpirationListener, maxAd, maxAd2);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void b(AppLovinPostbackListener appLovinPostbackListener, String str) {
|
|
try {
|
|
appLovinPostbackListener.onPostbackSuccess(str);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify AppLovinPostbackListener about postback URL (" + str + ") executed", th);
|
|
}
|
|
}
|
|
|
|
public static void a(final MaxNativeAdListener maxNativeAdListener, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxNativeAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda13
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxNativeAdListener, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void b(MaxAdReviewListener maxAdReviewListener, String str, MaxAd maxAd) {
|
|
a(maxAdReviewListener, str, maxAd, false);
|
|
}
|
|
|
|
public static void a(final MaxNativeAdListener maxNativeAdListener, final String str, final MaxError maxError, final boolean z) {
|
|
if (str == null || maxNativeAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda22
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxNativeAdListener, str, maxError);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void b(final AppLovinNativeAdEventListener appLovinNativeAdEventListener, final AppLovinNativeAd appLovinNativeAd) {
|
|
if (appLovinNativeAdEventListener != null) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda34
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(AppLovinNativeAdEventListener.this, appLovinNativeAd);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void a(final MaxNativeAdListener maxNativeAdListener, final MaxNativeAdView maxNativeAdView, final MaxAd maxAd, final boolean z) {
|
|
if (maxAd == null || maxNativeAdListener == null) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxNativeAdListener, maxNativeAdView, maxAd);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void b(final AppLovinNativeAdLoadListener appLovinNativeAdLoadListener, final AppLovinError appLovinError) {
|
|
if (appLovinNativeAdLoadListener != null) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda31
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(AppLovinNativeAdLoadListener.this, appLovinError);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
private static void b(String str, Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Error in publisher callback '" + str + "'", th);
|
|
}
|
|
|
|
public static void a(MaxAdListener maxAdListener, MaxAd maxAd, MaxReward maxReward) {
|
|
a(maxAdListener, maxAd, maxReward, false);
|
|
}
|
|
|
|
public static void a(final MaxAdListener maxAdListener, final MaxAd maxAd, final MaxReward maxReward, final boolean z) {
|
|
if (maxAd == null || !(maxAdListener instanceof MaxRewardedAdListener)) {
|
|
return;
|
|
}
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda18
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(z, maxAdListener, maxAd, maxReward);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void a(final AppLovinPostbackListener appLovinPostbackListener, final String str, final int i) {
|
|
if (appLovinPostbackListener != null) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda11
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinPostbackListener.this, str, i);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void a(final AppLovinPostbackListener appLovinPostbackListener, final String str) {
|
|
if (appLovinPostbackListener != null) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda19
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.b(AppLovinPostbackListener.this, str);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxAdListener maxAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdListener.onAdClicked(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a(bt.f, th, z);
|
|
c("maxAdClicked", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdListener.onAdClicked(maxAd);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxAdListener maxAdListener, MaxAd maxAd, MaxError maxError) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdListener.onAdDisplayFailed(maxAd, maxError);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onAdDisplayFailed", th, z);
|
|
c("maxAdDisplayFailed", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdListener.onAdDisplayFailed(maxAd, maxError);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxAdListener maxAdListener, String str, MaxError maxError) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdListener.onAdLoadFailed(str, maxError);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a(bt.b, th, z);
|
|
c("maxAdLoadFailed", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdListener.onAdLoadFailed(str, maxError);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxAdRequestListener maxAdRequestListener, String str) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdRequestListener.onAdRequestStarted(str);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onAdRequestStarted", th, z);
|
|
c("maxAdRequestStarted", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdRequestListener.onAdRequestStarted(str);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxAdRevenueListener maxAdRevenueListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdRevenueListener.onAdRevenuePaid(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onAdRevenuePaid", th, z);
|
|
c("maxAdPaidRevenue", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdRevenueListener.onAdRevenuePaid(maxAd);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxAdExpirationListener maxAdExpirationListener, MaxAd maxAd, MaxAd maxAd2) {
|
|
if (c(z)) {
|
|
try {
|
|
maxAdExpirationListener.onExpiredAdReloaded(maxAd, maxAd2);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onExpiredAdReloaded", th, z);
|
|
c("maxExpiredAdReloaded", th);
|
|
return;
|
|
}
|
|
}
|
|
maxAdExpirationListener.onExpiredAdReloaded(maxAd, maxAd2);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxNativeAdListener maxNativeAdListener, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxNativeAdListener.onNativeAdClicked(maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onNativeAdClicked", th, z);
|
|
c("maxNativeAdClicked", th);
|
|
return;
|
|
}
|
|
}
|
|
maxNativeAdListener.onNativeAdClicked(maxAd);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxNativeAdListener maxNativeAdListener, String str, MaxError maxError) {
|
|
if (c(z)) {
|
|
try {
|
|
maxNativeAdListener.onNativeAdLoadFailed(str, maxError);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onNativeAdLoadFailed", th, z);
|
|
c("maxNativeAdLoadFailed", th);
|
|
return;
|
|
}
|
|
}
|
|
maxNativeAdListener.onNativeAdLoadFailed(str, maxError);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxNativeAdListener maxNativeAdListener, MaxNativeAdView maxNativeAdView, MaxAd maxAd) {
|
|
if (c(z)) {
|
|
try {
|
|
maxNativeAdListener.onNativeAdLoaded(maxNativeAdView, maxAd);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onNativeAdLoaded", th, z);
|
|
c("maxNativeAdLoaded", th);
|
|
return;
|
|
}
|
|
}
|
|
maxNativeAdListener.onNativeAdLoaded(maxNativeAdView, maxAd);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(boolean z, MaxAdListener maxAdListener, MaxAd maxAd, MaxReward maxReward) {
|
|
if (c(z)) {
|
|
try {
|
|
((MaxRewardedAdListener) maxAdListener).onUserRewarded(maxAd, maxReward);
|
|
return;
|
|
} catch (Throwable th) {
|
|
a("onUserRewarded", th, z);
|
|
c("maxRewardedUser", th);
|
|
return;
|
|
}
|
|
}
|
|
((MaxRewardedAdListener) maxAdListener).onUserRewarded(maxAd, maxReward);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(MaxAdReviewListener maxAdReviewListener, String str, MaxAd maxAd) {
|
|
try {
|
|
maxAdReviewListener.onCreativeIdGenerated(str, maxAd);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify Ad Review creative id generated", th);
|
|
c("adReviewCreativeIdGenerated", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(AppLovinNativeAdEventListener appLovinNativeAdEventListener, AppLovinNativeAd appLovinNativeAd) {
|
|
try {
|
|
appLovinNativeAdEventListener.onNativeAdClicked(appLovinNativeAd);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify native ad event listener about ad click", th);
|
|
c("nativeAdClicked", th);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ void a(AppLovinNativeAdLoadListener appLovinNativeAdLoadListener, AppLovinError appLovinError) {
|
|
try {
|
|
appLovinNativeAdLoadListener.onNativeAdLoadFailed(appLovinError);
|
|
} catch (Throwable th) {
|
|
com.applovin.impl.sdk.n.c("ListenerCallbackInvoker", "Unable to notify native ad event listener about ad failing to load", th);
|
|
c("nativeAdLoadFailed", th);
|
|
}
|
|
}
|
|
|
|
private static void a(String str, Throwable th, boolean z) {
|
|
if (z) {
|
|
b(str, th);
|
|
} else {
|
|
a(str, th);
|
|
}
|
|
}
|
|
|
|
public static void a(final MaxAdReviewListener maxAdReviewListener, final String str, final MaxAd maxAd, boolean z) {
|
|
if (maxAdReviewListener != null) {
|
|
AppLovinSdkUtils.runOnUiThread(z, new Runnable() { // from class: com.applovin.impl.gc$$ExternalSyntheticLambda10
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
gc.a(MaxAdReviewListener.this, str, maxAd);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
private static AppLovinAd a(AppLovinAd appLovinAd) {
|
|
AppLovinAdImpl appLovinAdImpl = (AppLovinAdImpl) appLovinAd;
|
|
return appLovinAdImpl.getDummyAd() != null ? appLovinAdImpl.getDummyAd() : appLovinAd;
|
|
}
|
|
|
|
private static void a(String str, Throwable th) {
|
|
com.applovin.impl.sdk.n.b("ListenerCallbackInvoker", "Error in internal callback '" + str + "'", th);
|
|
}
|
|
}
|