Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.ironsource.mediationsdk.impressionData;
import android.content.Context;
import com.ironsource.environment.ContextProvider;
import com.ironsource.mediationsdk.C1347x;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.logger.IronLog;
import com.ironsource.mediationsdk.model.j;
import com.ironsource.mediationsdk.server.HttpFunctions;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
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.Intrinsics;
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", "", IronSourceConstants.EVENTS_ERROR_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 a implements h {
private boolean a = true;
private String b = "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 C0327a implements com.ironsource.mediationsdk.server.a {
C0327a() {
}
@Override
public final void a(boolean z) {
if (z) {
return;
}
IronLog.API.error("failed to send impression data");
}
}
@Override
public final void a(String str) {
}
public final void a(String dataSource, JSONObject impressionData) {
Intrinsics.checkNotNullParameter(dataSource, "dataSource");
Intrinsics.checkNotNullParameter(impressionData, "impressionData");
if (!this.a) {
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));
C1347x ironSourceAdvId = IronSourceUtils.getIronSourceAdvId(applicationContext);
if (ironSourceAdvId != null) {
jSONObject.put("advId", ironSourceAdvId.a);
jSONObject.put("advIdType", ironSourceAdvId.b);
}
}
String str = y.a().g;
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(Intrinsics.stringPlus("impressionData: ", jSONObject2));
HttpFunctions.sendPostRequest(this.b, jSONObject2.toString(), new C0327a());
} catch (Exception e) {
IronLog ironLog = IronLog.API;
ironLog.error("exception " + ((Object) e.getMessage()) + " sending impression data");
e.printStackTrace();
}
}
@Override
public final void a(List<IronSource.AD_UNIT> list, boolean z, j jVar) {
if (jVar == null) {
return;
}
this.a = jVar.e.f.a;
this.b = jVar.e.f.b;
}
@Override
public final void b() {
}
}