Idle Tower v2.48版本的 MD5 值为:56f20496f6a85726b376356ed2ecee23
以下内容为反编译后的 Yodo1MasIronSourceAdapter.java 源代码,内容仅作参考
package com.yodo1.mas.mediation.ironsource;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.integration.IntegrationHelper;
import com.ironsource.mediationsdk.logger.IronSourceLogger;
import com.ironsource.mediationsdk.logger.LogListener;
import com.yodo1.mas.appopenad.Yodo1MasAppOpenAdapterBase;
import com.yodo1.mas.banner.Yodo1MasBannerAdapterBase;
import com.yodo1.mas.error.Yodo1MasError;
import com.yodo1.mas.helper.Yodo1MasHelper;
import com.yodo1.mas.interstitial.Yodo1MasInterstitialAdapterBase;
import com.yodo1.mas.mediation.Yodo1MasAdapterBase;
import com.yodo1.mas.nativeads.Yodo1MasNativeAdapterBase;
import com.yodo1.mas.reward.Yodo1MasRewardAdapterBase;
import com.yodo1.mas.rewardedinterstitial.Yodo1MasRewardedInterstitialAdapterBase;
public class Yodo1MasIronSourceAdapter extends Yodo1MasAdapterBase {
public static void lambda$initSDK$0(IronSourceLogger.IronSourceTag ironSourceTag, String str, int i) {
}
@Override
protected Class<? extends Yodo1MasAppOpenAdapterBase> appOpenAdapterClass() {
return null;
}
@Override
public String getAdvertCode() {
return "ironsource";
}
@Override
public String getMediationVersion() {
return "4.9.1";
}
@Override
public String getSDKVersion() {
return "7.3.1.1";
}
@Override
public Class<? extends Yodo1MasNativeAdapterBase> nativeAdapterClass() {
return null;
}
@Override
protected Class<? extends Yodo1MasRewardedInterstitialAdapterBase> rewardedInterstitialAdapterClass() {
return null;
}
private static void setIronSourcePrivacy(Context context) {
IronSource.setConsent(Yodo1MasHelper.getInstance().isGDPRUserConsent());
IronSource.setMetaData("do_not_sell", Boolean.toString(Yodo1MasHelper.getInstance().isCCPADoNotSell()));
boolean isCOPPAAgeRestricted = Yodo1MasHelper.getInstance().isCOPPAAgeRestricted();
IronSource.setMetaData("is_child_directed", Boolean.toString(isCOPPAAgeRestricted));
IronSource.setMetaData("is_deviceid_optout", Boolean.toString(isCOPPAAgeRestricted));
}
@Override
public void initSDK(Activity activity, Yodo1MasAdapterBase.Config config, Yodo1MasAdapterBase.InitCallback initCallback) {
super.initSDK(activity, config, initCallback);
if (isInitSDK()) {
if (initCallback != null) {
initCallback.onAdapterInitSuccessful(getAdvertCode());
return;
}
return;
}
this.init = true;
if (Yodo1MasHelper.getInstance().isDebug()) {
IronSource.setLogListener(new LogListener() {
@Override
public final void onLog(IronSourceLogger.IronSourceTag ironSourceTag, String str, int i) {
Yodo1MasIronSourceAdapter.lambda$initSDK$0(ironSourceTag, str, i);
}
});
IronSource.setAdaptersDebug(true);
}
if (TextUtils.isEmpty(config.appId)) {
if (initCallback != null) {
initCallback.onAdapterInitFailed(getAdvertCode(), new Yodo1MasError(Yodo1MasError.CODE_ADVERT_UNINITIALIZED, "config.appId is null"));
return;
}
return;
}
updatePrivacy();
IronSource.initISDemandOnly(activity, config.appId, IronSource.AD_UNIT.REWARDED_VIDEO, IronSource.AD_UNIT.INTERSTITIAL, IronSource.AD_UNIT.BANNER);
if (Yodo1MasHelper.getInstance().isDebug()) {
IntegrationHelper.validateIntegration(activity);
}
if (initCallback != null) {
initCallback.onAdapterInitSuccessful(getAdvertCode());
}
}
@Override
public void updatePrivacy() {
super.updatePrivacy();
setIronSourcePrivacy(this.applicationContext.getApplicationContext());
}
@Override
public void onActivityResume(Activity activity) {
super.onActivityResume(activity);
if (isInitSDK()) {
IronSource.onResume(activity);
}
}
@Override
public void onActivityPause(Activity activity) {
super.onActivityPause(activity);
if (isInitSDK()) {
IronSource.onPause(activity);
}
}
@Override
protected Class<? extends Yodo1MasRewardAdapterBase> rewardAdapterClass() {
return Yodo1MasIronSourceRewardAdapter.class;
}
@Override
protected Class<? extends Yodo1MasInterstitialAdapterBase> interstitialAdapterClass() {
return Yodo1MasIronSourceInterstitialAdapter.class;
}
@Override
public Class<? extends Yodo1MasBannerAdapterBase> bannerAdapterClass() {
return Yodo1MasIronSourceBannerAdapter.class;
}
}