- 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
952 lines
52 KiB
Java
952 lines
52 KiB
Java
package com.ironsource.adapters.mintegral;
|
|
|
|
import android.content.Context;
|
|
import android.widget.FrameLayout;
|
|
import com.ironsource.adapters.mintegral.MintegralAdapter;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.mediationsdk.AbstractAdapter;
|
|
import com.ironsource.mediationsdk.AdapterUtils;
|
|
import com.ironsource.mediationsdk.INetworkInitCallbackListener;
|
|
import com.ironsource.mediationsdk.ISBannerSize;
|
|
import com.ironsource.mediationsdk.IntegrationData;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.IronSourceBannerLayout;
|
|
import com.ironsource.mediationsdk.LoadWhileShowSupportState;
|
|
import com.ironsource.mediationsdk.l;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.metadata.MetaData;
|
|
import com.ironsource.mediationsdk.metadata.MetaDataUtils;
|
|
import com.ironsource.mediationsdk.sdk.BannerSmashListener;
|
|
import com.ironsource.mediationsdk.sdk.InterstitialSmashListener;
|
|
import com.ironsource.mediationsdk.sdk.RewardedVideoSmashListener;
|
|
import com.ironsource.mediationsdk.utils.ErrorBuilder;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.MBridgeSDK;
|
|
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
|
|
import com.mbridge.msdk.foundation.same.net.Aa;
|
|
import com.mbridge.msdk.mbbid.out.BidManager;
|
|
import com.mbridge.msdk.newinterstitial.out.MBBidNewInterstitialHandler;
|
|
import com.mbridge.msdk.out.BannerSize;
|
|
import com.mbridge.msdk.out.MBBannerView;
|
|
import com.mbridge.msdk.out.MBBidRewardVideoHandler;
|
|
import com.mbridge.msdk.out.MBConfiguration;
|
|
import com.mbridge.msdk.out.MBridgeSDKFactory;
|
|
import com.mbridge.msdk.out.SDKInitStatusListener;
|
|
import com.mbridge.msdk.system.MBridgeSDKImpl;
|
|
import com.vungle.ads.internal.protos.Sdk;
|
|
import java.lang.ref.WeakReference;
|
|
import java.lang.reflect.Method;
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.text.StringsKt__StringsJVMKt;
|
|
import kotlin.text.StringsKt__StringsKt;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class MintegralAdapter extends AbstractAdapter implements INetworkInitCallbackListener {
|
|
private static final String APP_ID_KEY = "appId";
|
|
private static final String APP_KEY = "appKey";
|
|
private static final String GitHash = "b515122";
|
|
private static final String META_DATA_MINTEGRAL_COPPA_KEY = "Mintergral_COPPA";
|
|
public static final String MINTERGRAL_NO_FILL_EXCEPTION_RETURN_EMPTY = "EXCEPTION_RETURN_EMPTY";
|
|
private static final String NETWORK_NAME = "Mintegral";
|
|
private static final String PLACEMENT_ID_KEY = "placementId";
|
|
private static final String UNIT_ID_KEY = "unitId";
|
|
private static final String VERSION = "4.3.29";
|
|
private Boolean consentCollectingUserData;
|
|
private Boolean coppaUserData;
|
|
private Boolean doNotSellCollectingUserData;
|
|
private final ConcurrentHashMap<String, MintegralBannerListener> mBannerPlacementIdToAdListener;
|
|
private final ConcurrentHashMap<String, MBBannerView> mBannerPlacementIdToAdView;
|
|
private final ConcurrentHashMap<String, FrameLayout.LayoutParams> mBannerPlacementIdToLayout;
|
|
private ConcurrentHashMap<String, BannerSmashListener> mBannerPlacementIdToSmashListener;
|
|
private final ConcurrentHashMap<String, Boolean> mInterstitialPlacementIdToAdAvailability;
|
|
private final ConcurrentHashMap<String, MintegralInterstitialListener> mInterstitialPlacementIdToAdListener;
|
|
private ConcurrentHashMap<String, InterstitialSmashListener> mInterstitialPlacementIdToSmashListener;
|
|
private final ConcurrentHashMap<String, MBBidRewardVideoHandler> mRewardedVideoPlacementIdToAd;
|
|
private final ConcurrentHashMap<String, Boolean> mRewardedVideoPlacementIdToAdAvailability;
|
|
private final ConcurrentHashMap<String, MintergralRewardedVideoListener> mRewardedVideoPlacementIdToAdListener;
|
|
private ConcurrentHashMap<String, RewardedVideoSmashListener> mRewardedVideoPlacementIdToSmashListener;
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final AtomicBoolean mDidCallInit = new AtomicBoolean(false);
|
|
private static Companion.EInitState mInitState = Companion.EInitState.NOT_INIT;
|
|
private static final HashSet<INetworkInitCallbackListener> initCallbackListeners = new HashSet<>();
|
|
private static final ConcurrentHashMap<String, MBBidNewInterstitialHandler> mInterstitialPlacementIdToAd = new ConcurrentHashMap<>();
|
|
|
|
public /* synthetic */ class WhenMappings {
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
|
|
|
|
static {
|
|
int[] iArr = new int[Companion.EInitState.values().length];
|
|
try {
|
|
iArr[Companion.EInitState.INIT_SUCCESS.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[Companion.EInitState.INIT_FAIL.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
iArr[Companion.EInitState.NOT_INIT.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
iArr[Companion.EInitState.INIT_IN_PROGRESS.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
$EnumSwitchMapping$0 = iArr;
|
|
int[] iArr2 = new int[IronSource.AD_UNIT.values().length];
|
|
try {
|
|
iArr2[IronSource.AD_UNIT.REWARDED_VIDEO.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused5) {
|
|
}
|
|
try {
|
|
iArr2[IronSource.AD_UNIT.INTERSTITIAL.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused6) {
|
|
}
|
|
try {
|
|
iArr2[IronSource.AD_UNIT.BANNER.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused7) {
|
|
}
|
|
$EnumSwitchMapping$1 = iArr2;
|
|
}
|
|
}
|
|
|
|
public static final String getAdapterSDKVersion() {
|
|
return Companion.getAdapterSDKVersion();
|
|
}
|
|
|
|
public static final IntegrationData getIntegrationData(Context context) {
|
|
return Companion.getIntegrationData(context);
|
|
}
|
|
|
|
public static final MintegralAdapter startAdapter(String str) {
|
|
return Companion.startAdapter(str);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public String getVersion() {
|
|
return "4.3.29";
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public boolean isUsingActivityBeforeImpression(IronSource.AD_UNIT adUnit) {
|
|
Intrinsics.checkNotNullParameter(adUnit, "adUnit");
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public MintegralAdapter(String providerName) {
|
|
super(providerName);
|
|
Intrinsics.checkNotNullParameter(providerName, "providerName");
|
|
this.mRewardedVideoPlacementIdToSmashListener = new ConcurrentHashMap<>();
|
|
this.mRewardedVideoPlacementIdToAdListener = new ConcurrentHashMap<>();
|
|
this.mRewardedVideoPlacementIdToAd = new ConcurrentHashMap<>();
|
|
this.mRewardedVideoPlacementIdToAdAvailability = new ConcurrentHashMap<>();
|
|
this.mInterstitialPlacementIdToSmashListener = new ConcurrentHashMap<>();
|
|
this.mInterstitialPlacementIdToAdListener = new ConcurrentHashMap<>();
|
|
this.mInterstitialPlacementIdToAdAvailability = new ConcurrentHashMap<>();
|
|
this.mBannerPlacementIdToSmashListener = new ConcurrentHashMap<>();
|
|
this.mBannerPlacementIdToAdListener = new ConcurrentHashMap<>();
|
|
this.mBannerPlacementIdToAdView = new ConcurrentHashMap<>();
|
|
this.mBannerPlacementIdToLayout = new ConcurrentHashMap<>();
|
|
this.mLWSSupportState = LoadWhileShowSupportState.LOAD_WHILE_SHOW_BY_INSTANCE;
|
|
}
|
|
|
|
public static final class Companion {
|
|
|
|
public enum EInitState {
|
|
NOT_INIT,
|
|
INIT_IN_PROGRESS,
|
|
INIT_SUCCESS,
|
|
INIT_FAIL
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final String getAdapterSDKVersion() {
|
|
return MBConfiguration.SDK_VERSION;
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final ConcurrentHashMap<String, MBBidNewInterstitialHandler> getMInterstitialPlacementIdToAd() {
|
|
return MintegralAdapter.mInterstitialPlacementIdToAd;
|
|
}
|
|
|
|
public final MintegralAdapter startAdapter(String providerName) {
|
|
Intrinsics.checkNotNullParameter(providerName, "providerName");
|
|
return new MintegralAdapter(providerName);
|
|
}
|
|
|
|
public final IntegrationData getIntegrationData(Context context) {
|
|
return new IntegrationData(MintegralAdapter.NETWORK_NAME, "4.3.29");
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public String getCoreSDKVersion() {
|
|
return Companion.getAdapterSDKVersion();
|
|
}
|
|
|
|
private final void initSdk(final String str, final String str2) {
|
|
if (mInitState == Companion.EInitState.NOT_INIT || mInitState == Companion.EInitState.INIT_IN_PROGRESS) {
|
|
initCallbackListeners.add(this);
|
|
}
|
|
if (mDidCallInit.compareAndSet(false, true)) {
|
|
mInitState = Companion.EInitState.INIT_IN_PROGRESS;
|
|
if (isAdaptersDebugEnabled()) {
|
|
MBridgeConstans.DEBUG = true;
|
|
}
|
|
final MBridgeSDKImpl mBridgeSDK = MBridgeSDKFactory.getMBridgeSDK();
|
|
Intrinsics.checkNotNullExpressionValue(mBridgeSDK, "getMBridgeSDK()");
|
|
final Map<String, String> mBConfigurationMap = mBridgeSDK.getMBConfigurationMap(str, str2);
|
|
setChannelCode();
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.initSdk$lambda$2(MintegralAdapter.this, str, str2, mBridgeSDK, mBConfigurationMap);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void initSdk$lambda$2(final MintegralAdapter this$0, String appId, String appKey, MBridgeSDK sdk, Map map) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(appId, "$appId");
|
|
Intrinsics.checkNotNullParameter(appKey, "$appKey");
|
|
Intrinsics.checkNotNullParameter(sdk, "$sdk");
|
|
Boolean bool = this$0.consentCollectingUserData;
|
|
if (bool != null) {
|
|
this$0.setConsent(bool.booleanValue());
|
|
}
|
|
Boolean bool2 = this$0.doNotSellCollectingUserData;
|
|
if (bool2 != null) {
|
|
this$0.setCCPAValue(bool2.booleanValue());
|
|
}
|
|
IronLog.ADAPTER_API.verbose(this$0.getProviderName() + " initSDK with appId=" + appId + " and appKey=" + appKey);
|
|
sdk.init((Map<String, String>) map, ContextProvider.getInstance().getCurrentActiveActivity().getApplication(), new SDKInitStatusListener() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$initSdk$1$3
|
|
@Override // com.mbridge.msdk.out.SDKInitStatusListener
|
|
public void onInitSuccess() {
|
|
Boolean bool3;
|
|
HashSet hashSet;
|
|
HashSet hashSet2;
|
|
IronLog.ADAPTER_CALLBACK.verbose();
|
|
MintegralAdapter.Companion companion = MintegralAdapter.Companion;
|
|
MintegralAdapter.mInitState = MintegralAdapter.Companion.EInitState.INIT_SUCCESS;
|
|
bool3 = MintegralAdapter.this.coppaUserData;
|
|
if (bool3 != null) {
|
|
MintegralAdapter.this.setCOPPAValue(bool3.booleanValue());
|
|
}
|
|
hashSet = MintegralAdapter.initCallbackListeners;
|
|
Iterator it = hashSet.iterator();
|
|
while (it.hasNext()) {
|
|
Object initCallbackListeners2 = it.next();
|
|
Intrinsics.checkNotNullExpressionValue(initCallbackListeners2, "initCallbackListeners");
|
|
((INetworkInitCallbackListener) initCallbackListeners2).onNetworkInitCallbackSuccess();
|
|
}
|
|
hashSet2 = MintegralAdapter.initCallbackListeners;
|
|
hashSet2.clear();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.out.SDKInitStatusListener
|
|
public void onInitFail(String errorMsg) {
|
|
HashSet hashSet;
|
|
HashSet hashSet2;
|
|
Intrinsics.checkNotNullParameter(errorMsg, "errorMsg");
|
|
IronLog.ADAPTER_CALLBACK.verbose("error= " + errorMsg);
|
|
MintegralAdapter.Companion companion = MintegralAdapter.Companion;
|
|
MintegralAdapter.mInitState = MintegralAdapter.Companion.EInitState.INIT_FAIL;
|
|
hashSet = MintegralAdapter.initCallbackListeners;
|
|
Iterator it = hashSet.iterator();
|
|
while (it.hasNext()) {
|
|
Object initCallbackListeners2 = it.next();
|
|
Intrinsics.checkNotNullExpressionValue(initCallbackListeners2, "initCallbackListeners");
|
|
((INetworkInitCallbackListener) initCallbackListeners2).onNetworkInitCallbackFailed("SDK failed to init.");
|
|
}
|
|
hashSet2 = MintegralAdapter.initCallbackListeners;
|
|
hashSet2.clear();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.INetworkInitCallbackListener
|
|
public void onNetworkInitCallbackSuccess() {
|
|
for (Map.Entry<String, RewardedVideoSmashListener> entry : this.mRewardedVideoPlacementIdToSmashListener.entrySet()) {
|
|
Intrinsics.checkNotNullExpressionValue(entry, "mRewardedVideoPlacementIdToSmashListener.entries");
|
|
entry.getValue().onRewardedVideoInitSuccess();
|
|
}
|
|
for (Map.Entry<String, InterstitialSmashListener> entry2 : this.mInterstitialPlacementIdToSmashListener.entrySet()) {
|
|
Intrinsics.checkNotNullExpressionValue(entry2, "mInterstitialPlacementIdToSmashListener.entries");
|
|
entry2.getValue().onInterstitialInitSuccess();
|
|
}
|
|
for (Map.Entry<String, BannerSmashListener> entry3 : this.mBannerPlacementIdToSmashListener.entrySet()) {
|
|
Intrinsics.checkNotNullExpressionValue(entry3, "mBannerPlacementIdToSmashListener.entries");
|
|
entry3.getValue().onBannerInitSuccess();
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.INetworkInitCallbackListener
|
|
public void onNetworkInitCallbackFailed(String str) {
|
|
for (Map.Entry<String, RewardedVideoSmashListener> entry : this.mRewardedVideoPlacementIdToSmashListener.entrySet()) {
|
|
Intrinsics.checkNotNullExpressionValue(entry, "mRewardedVideoPlacementIdToSmashListener.entries");
|
|
entry.getValue().onRewardedVideoInitFailed(ErrorBuilder.buildInitFailedError("failed to init: " + str, IronSourceConstants.REWARDED_VIDEO_AD_UNIT));
|
|
}
|
|
for (Map.Entry<String, InterstitialSmashListener> entry2 : this.mInterstitialPlacementIdToSmashListener.entrySet()) {
|
|
Intrinsics.checkNotNullExpressionValue(entry2, "mInterstitialPlacementIdToSmashListener.entries");
|
|
entry2.getValue().onInterstitialInitFailed(ErrorBuilder.buildInitFailedError("failed to init: " + str, "Interstitial"));
|
|
}
|
|
for (Map.Entry<String, BannerSmashListener> entry3 : this.mBannerPlacementIdToSmashListener.entrySet()) {
|
|
Intrinsics.checkNotNullExpressionValue(entry3, "mBannerPlacementIdToSmashListener.entries");
|
|
entry3.getValue().onBannerInitFailed(ErrorBuilder.buildInitFailedError("failed to init: " + str, "Banner"));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.RewardedVideoAdapterInterface
|
|
public void initRewardedVideoWithCallback(String str, String str2, JSONObject config, RewardedVideoSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
String appId = config.optString(APP_ID_KEY);
|
|
String appKey = config.optString("appKey");
|
|
String placementId = config.optString("placementId");
|
|
if (appId == null || appId.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing appId");
|
|
listener.onRewardedVideoInitFailed(ErrorBuilder.buildInitFailedError("Missing params: appId", IronSourceConstants.REWARDED_VIDEO_AD_UNIT));
|
|
return;
|
|
}
|
|
if (appKey == null || appKey.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing appKey");
|
|
listener.onRewardedVideoInitFailed(ErrorBuilder.buildInitFailedError("Missing params: appKey", IronSourceConstants.REWARDED_VIDEO_AD_UNIT));
|
|
return;
|
|
}
|
|
if (placementId == null || placementId.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing placementId");
|
|
listener.onRewardedVideoInitFailed(ErrorBuilder.buildInitFailedError("Missing params: placementId", IronSourceConstants.REWARDED_VIDEO_AD_UNIT));
|
|
return;
|
|
}
|
|
ConcurrentHashMap<String, RewardedVideoSmashListener> concurrentHashMap = this.mRewardedVideoPlacementIdToSmashListener;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap.put(placementId, listener);
|
|
int i = WhenMappings.$EnumSwitchMapping$0[mInitState.ordinal()];
|
|
if (i == 1) {
|
|
listener.onRewardedVideoInitSuccess();
|
|
} else {
|
|
if (i == 2) {
|
|
listener.onRewardedVideoInitFailed(ErrorBuilder.buildInitFailedError("SDK failed to init.", IronSourceConstants.REWARDED_VIDEO_AD_UNIT));
|
|
return;
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(appId, "appId");
|
|
Intrinsics.checkNotNullExpressionValue(appKey, "appKey");
|
|
initSdk(appId, appKey);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.RewardedVideoAdapterInterface
|
|
public void loadRewardedVideoForBidding(JSONObject config, JSONObject jSONObject, final String str, RewardedVideoSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
final String placementId = config.optString("placementId");
|
|
final String optString = config.optString("unitId");
|
|
if (optString == null || optString.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing unitId");
|
|
listener.onRewardedVideoAvailabilityChanged(false);
|
|
return;
|
|
}
|
|
ConcurrentHashMap<String, Boolean> concurrentHashMap = this.mRewardedVideoPlacementIdToAdAvailability;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap.put(placementId, Boolean.FALSE);
|
|
MintergralRewardedVideoListener mintergralRewardedVideoListener = new MintergralRewardedVideoListener(placementId, new WeakReference(listener), new WeakReference(this));
|
|
this.mRewardedVideoPlacementIdToAdListener.put(placementId, mintergralRewardedVideoListener);
|
|
final MBBidRewardVideoHandler mBBidRewardVideoHandler = new MBBidRewardVideoHandler(ContextProvider.getInstance().getApplicationContext(), placementId, optString);
|
|
mBBidRewardVideoHandler.setRewardVideoListener(mintergralRewardedVideoListener);
|
|
this.mRewardedVideoPlacementIdToAd.put(placementId, mBBidRewardVideoHandler);
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.loadRewardedVideoForBidding$lambda$3(placementId, optString, str, mBBidRewardVideoHandler);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void loadRewardedVideoForBidding$lambda$3(String str, String str2, String str3, MBBidRewardVideoHandler rewardedVideoHandler) {
|
|
Intrinsics.checkNotNullParameter(rewardedVideoHandler, "$rewardedVideoHandler");
|
|
IronLog.ADAPTER_API.verbose("load rewarded video with placementId=" + str + " unitId=" + str2 + " serverData=" + str3);
|
|
rewardedVideoHandler.loadFromBid(str3);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.RewardedVideoAdapterInterface
|
|
public void showRewardedVideo(final JSONObject config, final RewardedVideoSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
final String optString = config.optString("placementId");
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.showRewardedVideo$lambda$4(MintegralAdapter.this, config, optString, listener);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void showRewardedVideo$lambda$4(MintegralAdapter this$0, JSONObject config, String placementId, RewardedVideoSmashListener listener) {
|
|
MBBidRewardVideoHandler mBBidRewardVideoHandler;
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(config, "$config");
|
|
Intrinsics.checkNotNullParameter(listener, "$listener");
|
|
if (this$0.isRewardedVideoAvailable(config) && (mBBidRewardVideoHandler = this$0.mRewardedVideoPlacementIdToAd.get(placementId)) != null && mBBidRewardVideoHandler.isBidReady()) {
|
|
IronLog.ADAPTER_API.verbose("show rewarded video with placementId = " + placementId);
|
|
MBBidRewardVideoHandler mBBidRewardVideoHandler2 = this$0.mRewardedVideoPlacementIdToAd.get(placementId);
|
|
if (mBBidRewardVideoHandler2 != null) {
|
|
mBBidRewardVideoHandler2.showFromBid();
|
|
}
|
|
} else {
|
|
listener.onRewardedVideoAdShowFailed(ErrorBuilder.buildNoAdsToShowError(IronSourceConstants.REWARDED_VIDEO_AD_UNIT));
|
|
}
|
|
ConcurrentHashMap<String, Boolean> concurrentHashMap = this$0.mRewardedVideoPlacementIdToAdAvailability;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap.put(placementId, Boolean.FALSE);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.RewardedVideoAdapterInterface
|
|
public boolean isRewardedVideoAvailable(JSONObject config) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
return Intrinsics.areEqual(this.mRewardedVideoPlacementIdToAdAvailability.get(config.optString("placementId")), Boolean.TRUE);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.RewardedVideoAdapterInterface
|
|
public Map<String, Object> getRewardedVideoBiddingData(JSONObject config, JSONObject jSONObject) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
return getBiddingData();
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.InterstitialAdapterInterface
|
|
public void initInterstitialForBidding(String str, String str2, JSONObject config, InterstitialSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
String appId = config.optString(APP_ID_KEY);
|
|
String appKey = config.optString("appKey");
|
|
String placementId = config.optString("placementId");
|
|
if (appId == null || appId.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing appId");
|
|
listener.onInterstitialInitFailed(ErrorBuilder.buildInitFailedError("Missing params: appId", "Interstitial"));
|
|
return;
|
|
}
|
|
if (appKey == null || appKey.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing appKey");
|
|
listener.onInterstitialInitFailed(ErrorBuilder.buildInitFailedError("Missing params: appKey", "Interstitial"));
|
|
return;
|
|
}
|
|
if (placementId == null || placementId.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing placementId");
|
|
listener.onInterstitialInitFailed(ErrorBuilder.buildInitFailedError("Missing params: placementId", "Interstitial"));
|
|
return;
|
|
}
|
|
ConcurrentHashMap<String, InterstitialSmashListener> concurrentHashMap = this.mInterstitialPlacementIdToSmashListener;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap.put(placementId, listener);
|
|
int i = WhenMappings.$EnumSwitchMapping$0[mInitState.ordinal()];
|
|
if (i == 1) {
|
|
listener.onInterstitialInitSuccess();
|
|
} else {
|
|
if (i == 2) {
|
|
listener.onInterstitialInitFailed(ErrorBuilder.buildInitFailedError("SDK failed to init.", "Interstitial"));
|
|
return;
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(appId, "appId");
|
|
Intrinsics.checkNotNullExpressionValue(appKey, "appKey");
|
|
initSdk(appId, appKey);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.InterstitialAdapterInterface
|
|
public void loadInterstitialForBidding(JSONObject config, JSONObject jSONObject, final String str, InterstitialSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
final String placementId = config.optString("placementId");
|
|
final String optString = config.optString("unitId");
|
|
if (optString == null || optString.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing unitId");
|
|
listener.onInterstitialAdLoadFailed(ErrorBuilder.buildLoadFailedError("Missing params: unitId"));
|
|
return;
|
|
}
|
|
ConcurrentHashMap<String, MBBidNewInterstitialHandler> concurrentHashMap = mInterstitialPlacementIdToAd;
|
|
if (concurrentHashMap.get(placementId) != null) {
|
|
String str2 = "Mintegral can't load multiple interstitial ads for the same placementId - " + placementId + ", skipping load attempt since there is a loaded interstitial ad for this placementId";
|
|
IronLog.INTERNAL.info(str2);
|
|
listener.onInterstitialAdLoadFailed(ErrorBuilder.buildLoadFailedError(str2));
|
|
return;
|
|
}
|
|
ConcurrentHashMap<String, Boolean> concurrentHashMap2 = this.mInterstitialPlacementIdToAdAvailability;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap2.put(placementId, Boolean.FALSE);
|
|
MintegralInterstitialListener mintegralInterstitialListener = new MintegralInterstitialListener(placementId, new WeakReference(listener), new WeakReference(this));
|
|
this.mInterstitialPlacementIdToAdListener.put(placementId, mintegralInterstitialListener);
|
|
final MBBidNewInterstitialHandler mBBidNewInterstitialHandler = new MBBidNewInterstitialHandler(ContextProvider.getInstance().getApplicationContext(), placementId, optString);
|
|
mBBidNewInterstitialHandler.setInterstitialVideoListener(mintegralInterstitialListener);
|
|
concurrentHashMap.put(placementId, mBBidNewInterstitialHandler);
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.loadInterstitialForBidding$lambda$5(placementId, optString, str, mBBidNewInterstitialHandler);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void loadInterstitialForBidding$lambda$5(String str, String str2, String str3, MBBidNewInterstitialHandler interstitialHandler) {
|
|
Intrinsics.checkNotNullParameter(interstitialHandler, "$interstitialHandler");
|
|
IronLog.ADAPTER_API.verbose("load interstitial with placementId=" + str + " unitId=" + str2 + " serverData=" + str3);
|
|
interstitialHandler.loadFromBid(str3);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.InterstitialAdapterInterface
|
|
public void showInterstitial(final JSONObject config, final InterstitialSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
final String optString = config.optString("placementId");
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.showInterstitial$lambda$6(MintegralAdapter.this, config, optString, listener);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void showInterstitial$lambda$6(MintegralAdapter this$0, JSONObject config, String placementId, InterstitialSmashListener listener) {
|
|
ConcurrentHashMap<String, MBBidNewInterstitialHandler> concurrentHashMap;
|
|
MBBidNewInterstitialHandler mBBidNewInterstitialHandler;
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(config, "$config");
|
|
Intrinsics.checkNotNullParameter(listener, "$listener");
|
|
if (this$0.isInterstitialReady(config) && (mBBidNewInterstitialHandler = (concurrentHashMap = mInterstitialPlacementIdToAd).get(placementId)) != null && mBBidNewInterstitialHandler.isBidReady()) {
|
|
IronLog.ADAPTER_API.verbose("show interstitial with placementId = " + placementId);
|
|
MBBidNewInterstitialHandler mBBidNewInterstitialHandler2 = concurrentHashMap.get(placementId);
|
|
if (mBBidNewInterstitialHandler2 != null) {
|
|
mBBidNewInterstitialHandler2.showFromBid();
|
|
}
|
|
} else {
|
|
listener.onInterstitialAdShowFailed(ErrorBuilder.buildNoAdsToShowError("Interstitial"));
|
|
}
|
|
ConcurrentHashMap<String, Boolean> concurrentHashMap2 = this$0.mInterstitialPlacementIdToAdAvailability;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap2.put(placementId, Boolean.FALSE);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.InterstitialAdapterInterface
|
|
public boolean isInterstitialReady(JSONObject config) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
return Intrinsics.areEqual(this.mInterstitialPlacementIdToAdAvailability.get(config.optString("placementId")), Boolean.TRUE);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.InterstitialAdapterInterface
|
|
public Map<String, Object> getInterstitialBiddingData(JSONObject config, JSONObject jSONObject) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
return getBiddingData();
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.BannerAdapterInterface
|
|
public void initBannerForBidding(String str, String str2, JSONObject config, BannerSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
String appId = config.optString(APP_ID_KEY);
|
|
String appKey = config.optString("appKey");
|
|
String placementId = config.optString("placementId");
|
|
if (appId == null || appId.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing appId");
|
|
listener.onBannerInitFailed(ErrorBuilder.buildInitFailedError("Missing params: appId", "Banner"));
|
|
return;
|
|
}
|
|
if (appKey == null || appKey.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing appKey");
|
|
listener.onBannerInitFailed(ErrorBuilder.buildInitFailedError("Missing params: appKey", "Banner"));
|
|
return;
|
|
}
|
|
if (placementId == null || placementId.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing placementId");
|
|
listener.onBannerInitFailed(ErrorBuilder.buildInitFailedError("Missing params: placementId", "Banner"));
|
|
return;
|
|
}
|
|
ConcurrentHashMap<String, BannerSmashListener> concurrentHashMap = this.mBannerPlacementIdToSmashListener;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap.put(placementId, listener);
|
|
int i = WhenMappings.$EnumSwitchMapping$0[mInitState.ordinal()];
|
|
if (i == 1) {
|
|
listener.onBannerInitSuccess();
|
|
} else {
|
|
if (i == 2) {
|
|
listener.onBannerInitFailed(ErrorBuilder.buildInitFailedError("SDK failed to init.", "Banner"));
|
|
return;
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(appId, "appId");
|
|
Intrinsics.checkNotNullExpressionValue(appKey, "appKey");
|
|
initSdk(appId, appKey);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.BannerAdapterInterface
|
|
public void loadBannerForBidding(JSONObject config, JSONObject jSONObject, final String str, final IronSourceBannerLayout ironSourceBannerLayout, final BannerSmashListener listener) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
final String optString = config.optString("placementId");
|
|
final String optString2 = config.optString("unitId");
|
|
if (optString2 == null || optString2.length() == 0) {
|
|
IronLog.INTERNAL.error("Missing unitId");
|
|
listener.onBannerAdLoadFailed(ErrorBuilder.buildLoadFailedError("Missing params: unitId"));
|
|
} else {
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.loadBannerForBidding$lambda$7(IronSourceBannerLayout.this, listener, this, optString, optString2, str);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void loadBannerForBidding$lambda$7(IronSourceBannerLayout ironSourceBannerLayout, BannerSmashListener listener, MintegralAdapter this$0, String placementId, String str, String str2) {
|
|
Intrinsics.checkNotNullParameter(listener, "$listener");
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
if (ironSourceBannerLayout == null || ironSourceBannerLayout.getSize() == null) {
|
|
IronLog.INTERNAL.verbose("banner is null");
|
|
listener.onBannerAdLoadFailed(ErrorBuilder.buildLoadFailedError("IronSourceBannerLayout is null"));
|
|
return;
|
|
}
|
|
Context context = ContextProvider.getInstance().getApplicationContext();
|
|
MBBannerView mBBannerView = new MBBannerView(ContextProvider.getInstance().getApplicationContext());
|
|
ConcurrentHashMap<String, MBBannerView> concurrentHashMap = this$0.mBannerPlacementIdToAdView;
|
|
Intrinsics.checkNotNullExpressionValue(placementId, "placementId");
|
|
concurrentHashMap.put(placementId, mBBannerView);
|
|
ConcurrentHashMap<String, FrameLayout.LayoutParams> concurrentHashMap2 = this$0.mBannerPlacementIdToLayout;
|
|
Intrinsics.checkNotNullExpressionValue(context, "context");
|
|
ISBannerSize size = ironSourceBannerLayout.getSize();
|
|
Intrinsics.checkNotNullExpressionValue(size, "banner.size");
|
|
concurrentHashMap2.put(placementId, this$0.createBannerLayoutParams(context, size));
|
|
ISBannerSize size2 = ironSourceBannerLayout.getSize();
|
|
Intrinsics.checkNotNullExpressionValue(size2, "banner.size");
|
|
BannerSize createBannerSize = this$0.createBannerSize(context, size2);
|
|
mBBannerView.init(createBannerSize, placementId, str);
|
|
mBBannerView.setRefreshTime(0);
|
|
mBBannerView.setAllowShowCloseBtn(false);
|
|
MintegralBannerListener mintegralBannerListener = new MintegralBannerListener(placementId, new WeakReference(listener), new WeakReference(this$0));
|
|
this$0.mBannerPlacementIdToAdListener.put(placementId, mintegralBannerListener);
|
|
mBBannerView.setBannerAdListener(mintegralBannerListener);
|
|
IronLog.ADAPTER_API.verbose("load banner with size " + createBannerSize.getWidth() + 'X' + createBannerSize.getHeight() + " placementId=" + placementId + " unitId=" + str + " serverData=" + str2);
|
|
mBBannerView.loadFromBid(str2);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.BannerAdapterInterface
|
|
public void destroyBanner(JSONObject config) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
final String optString = config.optString("placementId");
|
|
if (optString == null || optString.length() == 0) {
|
|
return;
|
|
}
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.destroyBanner$lambda$8(optString, this);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void destroyBanner$lambda$8(String str, MintegralAdapter this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
IronLog.ADAPTER_API.verbose("release banner placementId = " + str);
|
|
MBBannerView mBBannerView = this$0.mBannerPlacementIdToAdView.get(str);
|
|
if (mBBannerView != null) {
|
|
mBBannerView.release();
|
|
}
|
|
this$0.mBannerPlacementIdToAdView.remove(str);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.BannerAdapterInterface
|
|
public Map<String, Object> getBannerBiddingData(JSONObject config, JSONObject jSONObject) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
return getBiddingData();
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter, com.ironsource.mediationsdk.sdk.ReleaseMemoryAdapterInterface
|
|
public void releaseMemory(IronSource.AD_UNIT adUnit, JSONObject jSONObject) {
|
|
Intrinsics.checkNotNullParameter(adUnit, "adUnit");
|
|
int i = WhenMappings.$EnumSwitchMapping$1[adUnit.ordinal()];
|
|
if (i == 1) {
|
|
this.mRewardedVideoPlacementIdToSmashListener.clear();
|
|
this.mRewardedVideoPlacementIdToAd.clear();
|
|
this.mRewardedVideoPlacementIdToAdListener.clear();
|
|
this.mRewardedVideoPlacementIdToAdAvailability.clear();
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
this.mInterstitialPlacementIdToSmashListener.clear();
|
|
mInterstitialPlacementIdToAd.clear();
|
|
this.mInterstitialPlacementIdToAdListener.clear();
|
|
this.mInterstitialPlacementIdToAdAvailability.clear();
|
|
return;
|
|
}
|
|
if (i != 3) {
|
|
return;
|
|
}
|
|
for (final MBBannerView mBBannerView : this.mBannerPlacementIdToAdView.values()) {
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.releaseMemory$lambda$9(MBBannerView.this, this);
|
|
}
|
|
});
|
|
}
|
|
this.mBannerPlacementIdToSmashListener.clear();
|
|
this.mBannerPlacementIdToLayout.clear();
|
|
this.mBannerPlacementIdToAdListener.clear();
|
|
this.mBannerPlacementIdToAdView.clear();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void releaseMemory$lambda$9(MBBannerView bannerView, MintegralAdapter this$0) {
|
|
Intrinsics.checkNotNullParameter(bannerView, "$bannerView");
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
IronLog.ADAPTER_API.verbose("cleaning BN memory");
|
|
bannerView.release();
|
|
this$0.mBannerPlacementIdToAdView.clear();
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public void setConsent(boolean z) {
|
|
int i = WhenMappings.$EnumSwitchMapping$0[mInitState.ordinal()];
|
|
if (i == 3) {
|
|
this.consentCollectingUserData = Boolean.valueOf(z);
|
|
return;
|
|
}
|
|
if (i != 4) {
|
|
return;
|
|
}
|
|
MBridgeSDKImpl mBridgeSDK = MBridgeSDKFactory.getMBridgeSDK();
|
|
Intrinsics.checkNotNullExpressionValue(mBridgeSDK, "getMBridgeSDK()");
|
|
IronLog.ADAPTER_API.verbose("setConsentStatus consentStatus = " + (z ? 1 : 0));
|
|
mBridgeSDK.setConsentStatus(ContextProvider.getInstance().getApplicationContext(), z ? 1 : 0);
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public void setMetaData(String key, List<String> values) {
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
Intrinsics.checkNotNullParameter(values, "values");
|
|
if (values.isEmpty()) {
|
|
return;
|
|
}
|
|
String str = values.get(0);
|
|
IronLog.ADAPTER_API.verbose("key = " + key + ", value = " + str);
|
|
if (MetaDataUtils.isValidCCPAMetaData(key, str)) {
|
|
setCCPAValue(MetaDataUtils.getMetaDataBooleanValue(str));
|
|
return;
|
|
}
|
|
String formatValueForType = MetaDataUtils.formatValueForType(str, MetaData.MetaDataValueTypes.META_DATA_VALUE_BOOLEAN);
|
|
Intrinsics.checkNotNullExpressionValue(formatValueForType, "formatValueForType(value….META_DATA_VALUE_BOOLEAN)");
|
|
if (isCOPPAMetaData(key, formatValueForType)) {
|
|
setCOPPAValue(MetaDataUtils.getMetaDataBooleanValue(formatValueForType));
|
|
}
|
|
}
|
|
|
|
private final void setCCPAValue(boolean z) {
|
|
int i = WhenMappings.$EnumSwitchMapping$0[mInitState.ordinal()];
|
|
if (i == 3) {
|
|
this.doNotSellCollectingUserData = Boolean.valueOf(z);
|
|
return;
|
|
}
|
|
if (i != 4) {
|
|
return;
|
|
}
|
|
MBridgeSDKImpl mBridgeSDK = MBridgeSDKFactory.getMBridgeSDK();
|
|
Intrinsics.checkNotNullExpressionValue(mBridgeSDK, "getMBridgeSDK()");
|
|
IronLog.ADAPTER_API.verbose("setDoNotTrackStatus with ccpa = " + z);
|
|
mBridgeSDK.setDoNotTrackStatus(ContextProvider.getInstance().getApplicationContext(), z);
|
|
}
|
|
|
|
private final boolean isCOPPAMetaData(String str, String str2) {
|
|
boolean equals;
|
|
equals = StringsKt__StringsJVMKt.equals(str, META_DATA_MINTEGRAL_COPPA_KEY, true);
|
|
return equals && str2.length() > 0;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void setCOPPAValue(final boolean z) {
|
|
IronLog.ADAPTER_API.verbose("value = " + z);
|
|
if (WhenMappings.$EnumSwitchMapping$0[mInitState.ordinal()] == 1) {
|
|
AbstractAdapter.postOnUIThread(new Runnable() { // from class: com.ironsource.adapters.mintegral.MintegralAdapter$$ExternalSyntheticLambda4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MintegralAdapter.setCOPPAValue$lambda$12$lambda$11(z);
|
|
}
|
|
});
|
|
} else {
|
|
this.coppaUserData = Boolean.valueOf(z);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void setCOPPAValue$lambda$12$lambda$11(boolean z) {
|
|
MBridgeSDKImpl mBridgeSDK = MBridgeSDKFactory.getMBridgeSDK();
|
|
Intrinsics.checkNotNullExpressionValue(mBridgeSDK, "getMBridgeSDK()");
|
|
IronLog.ADAPTER_API.verbose("set coppa value = " + z);
|
|
mBridgeSDK.setCoppaStatus(ContextProvider.getInstance().getApplicationContext(), z);
|
|
}
|
|
|
|
public final boolean isNoFillError(String str) {
|
|
boolean contains$default;
|
|
if (str == null) {
|
|
return false;
|
|
}
|
|
contains$default = StringsKt__StringsKt.contains$default(str, MINTERGRAL_NO_FILL_EXCEPTION_RETURN_EMPTY, false, 2, null);
|
|
return contains$default;
|
|
}
|
|
|
|
public final void updateRewardedVideoAvailability(String placementId, boolean z) {
|
|
Intrinsics.checkNotNullParameter(placementId, "placementId");
|
|
this.mRewardedVideoPlacementIdToAdAvailability.put(placementId, Boolean.valueOf(z));
|
|
}
|
|
|
|
public final void updateInterstitialAvailability(String placementId, boolean z) {
|
|
Intrinsics.checkNotNullParameter(placementId, "placementId");
|
|
this.mInterstitialPlacementIdToAdAvailability.put(placementId, Boolean.valueOf(z));
|
|
}
|
|
|
|
public final MBBannerView getBannerView(String placementId) {
|
|
Intrinsics.checkNotNullParameter(placementId, "placementId");
|
|
return this.mBannerPlacementIdToAdView.get(placementId);
|
|
}
|
|
|
|
public final FrameLayout.LayoutParams getBannerLayoutParams(String placementId) {
|
|
Intrinsics.checkNotNullParameter(placementId, "placementId");
|
|
return this.mBannerPlacementIdToLayout.get(placementId);
|
|
}
|
|
|
|
/* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue
|
|
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because the return value of "jadx.core.dex.visitors.regions.SwitchOverStringVisitor$SwitchData.getNewCases()" is null
|
|
at jadx.core.dex.visitors.regions.SwitchOverStringVisitor.restoreSwitchOverString(SwitchOverStringVisitor.java:109)
|
|
at jadx.core.dex.visitors.regions.SwitchOverStringVisitor.visitRegion(SwitchOverStringVisitor.java:66)
|
|
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseIterativeStepInternal(DepthRegionTraversal.java:77)
|
|
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseIterativeStepInternal(DepthRegionTraversal.java:82)
|
|
*/
|
|
private final BannerSize createBannerSize(Context context, ISBannerSize iSBannerSize) {
|
|
String description = iSBannerSize.getDescription();
|
|
if (description != null) {
|
|
switch (description.hashCode()) {
|
|
case -387072689:
|
|
if (description.equals(l.c)) {
|
|
return new BannerSize(2, 300, 250);
|
|
}
|
|
break;
|
|
case 72205083:
|
|
if (description.equals(l.b)) {
|
|
return new BannerSize(1, Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE, 90);
|
|
}
|
|
break;
|
|
case 79011241:
|
|
if (description.equals(l.e)) {
|
|
return AdapterUtils.isLargeScreen(context) ? new BannerSize(3, 728, 90) : new BannerSize(4, Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE, 50);
|
|
}
|
|
break;
|
|
case 1951953708:
|
|
if (description.equals(l.a)) {
|
|
return new BannerSize(4, Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE, 50);
|
|
}
|
|
break;
|
|
case 1999208305:
|
|
if (description.equals(l.f)) {
|
|
return new BannerSize(5, iSBannerSize.getWidth(), iSBannerSize.getHeight());
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return new BannerSize(5, iSBannerSize.getWidth(), iSBannerSize.getHeight());
|
|
}
|
|
|
|
/* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue
|
|
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because the return value of "jadx.core.dex.visitors.regions.SwitchOverStringVisitor$SwitchData.getNewCases()" is null
|
|
at jadx.core.dex.visitors.regions.SwitchOverStringVisitor.restoreSwitchOverString(SwitchOverStringVisitor.java:109)
|
|
at jadx.core.dex.visitors.regions.SwitchOverStringVisitor.visitRegion(SwitchOverStringVisitor.java:66)
|
|
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseIterativeStepInternal(DepthRegionTraversal.java:77)
|
|
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseIterativeStepInternal(DepthRegionTraversal.java:82)
|
|
*/
|
|
private final FrameLayout.LayoutParams createBannerLayoutParams(Context context, ISBannerSize iSBannerSize) {
|
|
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(0, 0);
|
|
String description = iSBannerSize.getDescription();
|
|
if (description != null) {
|
|
switch (description.hashCode()) {
|
|
case -387072689:
|
|
if (description.equals(l.c)) {
|
|
layoutParams = new FrameLayout.LayoutParams(AdapterUtils.dpToPixels(context, 300), AdapterUtils.dpToPixels(context, 250));
|
|
break;
|
|
}
|
|
break;
|
|
case 72205083:
|
|
if (description.equals(l.b)) {
|
|
layoutParams = new FrameLayout.LayoutParams(AdapterUtils.dpToPixels(context, Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE), AdapterUtils.dpToPixels(context, 90));
|
|
break;
|
|
}
|
|
break;
|
|
case 79011241:
|
|
if (description.equals(l.e)) {
|
|
layoutParams = AdapterUtils.isLargeScreen(context) ? new FrameLayout.LayoutParams(AdapterUtils.dpToPixels(context, 728), AdapterUtils.dpToPixels(context, 90)) : new FrameLayout.LayoutParams(AdapterUtils.dpToPixels(context, Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE), AdapterUtils.dpToPixels(context, 50));
|
|
break;
|
|
}
|
|
break;
|
|
case 1951953708:
|
|
if (description.equals(l.a)) {
|
|
layoutParams = new FrameLayout.LayoutParams(AdapterUtils.dpToPixels(context, Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE), AdapterUtils.dpToPixels(context, 50));
|
|
break;
|
|
}
|
|
break;
|
|
case 1999208305:
|
|
if (description.equals(l.f)) {
|
|
layoutParams = new FrameLayout.LayoutParams(AdapterUtils.dpToPixels(context, iSBannerSize.getWidth()), AdapterUtils.dpToPixels(context, iSBannerSize.getHeight()));
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
layoutParams.gravity = 17;
|
|
return layoutParams;
|
|
}
|
|
|
|
private final Map<String, Object> getBiddingData() {
|
|
if (mInitState != Companion.EInitState.INIT_SUCCESS) {
|
|
IronLog.INTERNAL.verbose("returning null as token since init is not successful");
|
|
return null;
|
|
}
|
|
HashMap hashMap = new HashMap();
|
|
String buyerUid = BidManager.getBuyerUid(ContextProvider.getInstance().getApplicationContext());
|
|
if (buyerUid == null) {
|
|
buyerUid = "";
|
|
}
|
|
IronLog.ADAPTER_API.verbose("token = " + buyerUid);
|
|
hashMap.put("token", buyerUid);
|
|
return hashMap;
|
|
}
|
|
|
|
private final void setChannelCode() {
|
|
try {
|
|
Method declaredMethod = Aa.class.getDeclaredMethod(DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_B, String.class);
|
|
declaredMethod.setAccessible(true);
|
|
declaredMethod.invoke(Aa.class, "Y+H6DFttYrPQYcIb+F2F+F5/Hv==");
|
|
} catch (Throwable th) {
|
|
th.printStackTrace();
|
|
IronLog.INTERNAL.error("Error setting channel code " + th);
|
|
}
|
|
}
|
|
}
|