atsameip v0.1版本的 MD5 值为:28547cf98b0a2d02acb37969dcfb83e9
以下内容为反编译后的 MraidAdapter.java 源代码,内容仅作参考
package io.bidmachine.ads.networks.mraid;
import com.explorestack.iab.bridge.JsBridgeHandler;
import com.explorestack.iab.bridge.NativeStorageJsBridge;
import com.explorestack.iab.mraid.MraidActivity;
import com.explorestack.iab.mraid.MraidLog;
import com.explorestack.iab.utils.Logger;
import io.bidmachine.AdsType;
import io.bidmachine.ContextProvider;
import io.bidmachine.InitializationParams;
import io.bidmachine.NetworkAdapter;
import io.bidmachine.NetworkConfigParams;
import io.bidmachine.measurer.OMSDKSettings;
import io.bidmachine.unified.UnifiedBannerAd;
import io.bidmachine.unified.UnifiedFullscreenAd;
public class MraidAdapter extends NetworkAdapter {
public static final String KEY = "mraid";
public MraidAdapter() {
super("mraid", "2.0", "1.9.3.1", 1, new AdsType[]{AdsType.Banner, AdsType.Interstitial, AdsType.Rewarded});
}
@Override
public void setLogging(boolean z) throws Throwable {
MraidLog.setLoggingLevel(z ? Logger.LogLevel.debug : Logger.LogLevel.none);
}
@Override
public boolean onInitialize(ContextProvider contextProvider, InitializationParams initializationParams, NetworkConfigParams networkConfigParams) throws Throwable {
super.onInitialize(contextProvider, initializationParams, networkConfigParams);
JsBridgeHandler.addBridge(new NativeStorageJsBridge());
OMSDKSettings.initialize(contextProvider.getContext());
return true;
}
@Override
public UnifiedBannerAd createBanner() {
return new MraidBannerAd();
}
@Override
public UnifiedFullscreenAd createInterstitial() {
return new MraidFullScreenAd(MraidActivity.MraidType.Static);
}
@Override
public UnifiedFullscreenAd createRewarded() {
return new MraidFullScreenAd(MraidActivity.MraidType.Rewarded);
}
}