Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 ExternalImpressionDataHandler.java 源代码,内容仅作参考
package com.ironsource.mediationsdk.impressionData;
import android.content.Context;
import com.ironsource.environment.ContextProvider;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.IronSourceAdvId;
import com.ironsource.mediationsdk.logger.IronLog;
import com.ironsource.mediationsdk.model.j;
import com.ironsource.mediationsdk.server.HttpFunctions;
import com.ironsource.mediationsdk.utils.ApplicationGeneralSettings;
import com.ironsource.mediationsdk.utils.IronSourceUtils;
import com.ironsource.mediationsdk.utils.h;
import com.ironsource.mediationsdk.y;
import com.tapjoy.TapjoyConstants;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.s;
import org.json.JSONObject;
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0007\u001a\u00020\bH\u0002J\u0012\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\u0004H\u0016J*\u0010\f\u001a\u00020\n2\u000e\u0010\r\u001a\n\u0012\u0004\u0012\u00020\u000f\u0018\u00010\u000e2\u0006\u0010\u0010\u001a\u00020\u00062\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012H\u0016J\b\u0010\u0013\u001a\u00020\nH\u0016J\u0016\u0010\u0014\u001a\u00020\n2\u0006\u0010\u0015\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\bR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u0017"}, d2 = {"Lcom/ironsource/mediationsdk/impressionData/ExternalImpressionDataHandler;", "Lcom/ironsource/mediationsdk/utils/OnMediationInitializationListener;", "()V", "externalArmEventsUrl", "", "isExternalArmEventsEnabled", "", "buildClientParamsForRequest", "Lorg/json/JSONObject;", "onInitFailed", "", "reason", "onInitSuccess", "adUnits", "", "Lcom/ironsource/mediationsdk/IronSource$AD_UNIT;", "revived", TapjoyConstants.PREF_SERVER_PROVIDED_CONFIGURATIONS, "Lcom/ironsource/mediationsdk/model/Configurations;", "onStillInProgressAfter15Secs", "setAdRevenueData", "dataSource", "impressionData", "mediationsdk_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class ExternalImpressionDataHandler implements h {
public boolean f44725a = true;
public String f44726b = "https://outcome-arm-ext-med-ext.sonic-us.supersonicads.com/aemData";
@Metadata(d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0016¨\u0006\u0006"}, d2 = {"com/ironsource/mediationsdk/impressionData/ExternalImpressionDataHandler$setAdRevenueData$1", "Lcom/ironsource/mediationsdk/server/HttpFunctionsListener;", "onResponse", "", "requestSucceeded", "", "mediationsdk_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class a implements com.ironsource.mediationsdk.server.a {
@Override
public final void a(boolean z11) {
if (!z11) {
IronLog.API.error("failed to send impression data");
}
}
}
@Override
public final void a(String str) {
}
public final void a(String dataSource, JSONObject impressionData) {
s.j(dataSource, "dataSource");
s.j(impressionData, "impressionData");
if (!this.f44725a) {
IronLog.INTERNAL.verbose("disabled from server");
return;
}
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("deviceOS", "android");
Context applicationContext = ContextProvider.getInstance().getApplicationContext();
if (applicationContext != null) {
jSONObject.put("deviceType", IronSourceUtils.getDeviceType(applicationContext));
IronSourceAdvId ironSourceAdvId = IronSourceUtils.getIronSourceAdvId(applicationContext);
if (ironSourceAdvId != null) {
jSONObject.put("advId", ironSourceAdvId.f45256a);
jSONObject.put("advIdType", ironSourceAdvId.f45257b);
}
}
String str = y.a().f45271g;
if (str != null) {
jSONObject.put("applicationKey", str);
}
JSONObject jSONObject2 = new JSONObject();
jSONObject2.putOpt("externalMediationSource", dataSource);
jSONObject2.putOpt("externalMediationData", impressionData);
jSONObject2.putOpt("clientParams", jSONObject);
IronLog.API.info(s.s("impressionData: ", jSONObject2));
HttpFunctions.sendPostRequest(this.f44726b, jSONObject2.toString(), new a());
} catch (Exception e11) {
IronLog.API.error("exception " + ((Object) e11.getMessage()) + " sending impression data");
e11.printStackTrace();
}
}
@Override
public final void a(List<IronSource.AD_UNIT> list, boolean z11, j jVar) {
if (jVar == null) {
return;
}
ApplicationGeneralSettings applicationGeneralSettings = jVar.f44866e.f44822f;
this.f44725a = applicationGeneralSettings.f45077a;
this.f44726b = applicationGeneralSettings.f45078b;
}
@Override
public final void b() {
}
}