atsameip v0.1版本的 MD5 值为:28547cf98b0a2d02acb37969dcfb83e9
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.ironsource.mediationsdk.impressionData;
import android.content.Context;
import com.ironsource.environment.ContextProvider;
import com.ironsource.mediationsdk.G;
import com.ironsource.mediationsdk.H;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.logger.IronLog;
import com.ironsource.mediationsdk.model.g;
import com.ironsource.mediationsdk.server.HttpFunctions;
import com.ironsource.mediationsdk.utils.IronSourceUtils;
import com.ironsource.mediationsdk.utils.i;
import java.util.List;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONObject;
public final class a implements i {
private boolean a = true;
private String b = "https://outcome-arm-ext-med-ext.sonic-us.supersonicads.com/aemData";
public static final class C0168a implements com.ironsource.mediationsdk.server.a {
C0168a() {
}
@Override
public final void a(boolean z) {
if (z) {
return;
}
IronLog.API.error("failed to send impression data");
}
}
private static JSONObject a() {
JSONObject jSONObject = new JSONObject();
jSONObject.put("deviceOS", "android");
ContextProvider contextProvider = ContextProvider.getInstance();
Intrinsics.checkNotNullExpressionValue(contextProvider, "ContextProvider.getInstance()");
Context applicationContext = contextProvider.getApplicationContext();
if (applicationContext != null) {
jSONObject.put("deviceType", IronSourceUtils.getDeviceType(applicationContext));
G ironSourceAdvId = IronSourceUtils.getIronSourceAdvId(applicationContext);
if (ironSourceAdvId != null) {
jSONObject.put("advId", ironSourceAdvId.a);
jSONObject.put("advIdType", ironSourceAdvId.b);
}
}
H a = H.a();
Intrinsics.checkNotNullExpressionValue(a, "IronSourceObject.getInstance()");
String k = a.k();
if (k != null) {
jSONObject.put("applicationKey", k);
}
return jSONObject;
}
@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 a = a();
JSONObject jSONObject = new JSONObject();
jSONObject.putOpt("externalMediationSource", dataSource);
jSONObject.putOpt("externalMediationData", impressionData);
jSONObject.putOpt("clientParams", a);
IronLog ironLog = IronLog.API;
ironLog.info("impressionData: " + jSONObject);
HttpFunctions.sendPostRequest(this.b, jSONObject.toString(), new C0168a());
} catch (Exception e) {
IronLog ironLog2 = IronLog.API;
ironLog2.error("exception " + e.getMessage() + " sending impression data");
e.printStackTrace();
}
}
@Override
public final void a(List<IronSource.AD_UNIT> list, boolean z, g gVar) {
if (gVar != null) {
com.ironsource.sdk.f.a applicationConfigurations = gVar.a();
Intrinsics.checkNotNullExpressionValue(applicationConfigurations, "applicationConfigurations");
this.a = applicationConfigurations.f().a;
com.ironsource.sdk.f.a applicationConfigurations2 = gVar.a();
Intrinsics.checkNotNullExpressionValue(applicationConfigurations2, "applicationConfigurations");
this.b = applicationConfigurations2.f().b;
}
}
@Override
public final void f() {
}
}