- 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
100 lines
3.3 KiB
Java
100 lines
3.3 KiB
Java
package com.ironsource;
|
|
|
|
import android.webkit.JavascriptInterface;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class rs {
|
|
private final ns a;
|
|
private final ss b;
|
|
private final qg c;
|
|
|
|
public rs(ns adsManager, qg uiLifeCycleListener, ss javaScriptEvaluator) {
|
|
Intrinsics.checkNotNullParameter(adsManager, "adsManager");
|
|
Intrinsics.checkNotNullParameter(uiLifeCycleListener, "uiLifeCycleListener");
|
|
Intrinsics.checkNotNullParameter(javaScriptEvaluator, "javaScriptEvaluator");
|
|
this.a = adsManager;
|
|
this.b = javaScriptEvaluator;
|
|
this.c = uiLifeCycleListener;
|
|
}
|
|
|
|
private final void a(String str, IronSource.AD_UNIT ad_unit, List<? extends Object> list) {
|
|
this.b.a(str, ad_unit, list);
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void addBannerAdToScreen(double d) {
|
|
this.a.a().a(d);
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void closeTestSuite() {
|
|
destroyBannerAd();
|
|
this.c.onClosed();
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void destroyBannerAd() {
|
|
this.a.a().b();
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void isInterstitialReady() {
|
|
a("isInterstitialReady", IronSource.AD_UNIT.INTERSTITIAL, et.a.a(Boolean.valueOf(this.a.b().e())));
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void isRewardedVideoReady() {
|
|
a("isRewardedVideoReady", IronSource.AD_UNIT.REWARDED_VIDEO, et.a.a(Boolean.valueOf(this.a.c().a())));
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void loadBannerAd(String str, String adNetwork, boolean z, boolean z2, String description, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(adNetwork, "adNetwork");
|
|
Intrinsics.checkNotNullParameter(description, "description");
|
|
this.a.a().a(new ts(adNetwork, z, Boolean.valueOf(z2), str), description, i, i2);
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void loadBannerAd(String adNetwork, boolean z, boolean z2, String description, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(adNetwork, "adNetwork");
|
|
Intrinsics.checkNotNullParameter(description, "description");
|
|
loadBannerAd(null, adNetwork, z, z2, description, i, i2);
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void loadInterstitialAd(String str, String adNetwork, boolean z, boolean z2) {
|
|
Intrinsics.checkNotNullParameter(adNetwork, "adNetwork");
|
|
this.a.b().a(new ts(adNetwork, z, Boolean.valueOf(z2), str));
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void loadInterstitialAd(String adNetwork, boolean z, boolean z2) {
|
|
Intrinsics.checkNotNullParameter(adNetwork, "adNetwork");
|
|
loadInterstitialAd(null, adNetwork, z, z2);
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void loadRewardedVideoAd(String adNetwork, boolean z, boolean z2) {
|
|
Intrinsics.checkNotNullParameter(adNetwork, "adNetwork");
|
|
this.a.c().b(new ts(adNetwork, z, Boolean.valueOf(z2), null, 8, null));
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void onDataLoaded() {
|
|
this.c.onUIReady();
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void showInterstitialAd() {
|
|
this.a.b().c();
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public final void showRewardedVideoAd() {
|
|
this.a.c().d();
|
|
}
|
|
}
|