Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.ironsource.mediationsdk.impressionData;
import android.content.Context;
import com.ironsource.environment.ContextProvider;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.logger.IronLog;
import com.ironsource.mediationsdk.model.f;
import com.ironsource.mediationsdk.server.HttpFunctions;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.ironsource.mediationsdk.utils.IronSourceUtils;
import com.ironsource.mediationsdk.utils.b;
import com.ironsource.mediationsdk.utils.h;
import com.ironsource.mediationsdk.y;
import com.ironsource.mediationsdk.z;
import com.ironsource.sdk.a.g;
import com.unity3d.services.core.request.metrics.MetricCommonTags;
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", "configurations", "Lcom/ironsource/mediationsdk/model/Configurations;", "onStillInProgressAfter15Secs", "setAdRevenueData", "dataSource", "impressionData", "mediationsdk_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public final class a implements h {
private boolean gt65QHUX = true;
private String jB = "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, 7, 1}, xi = 48)
public static final class C0350a implements com.ironsource.mediationsdk.server.a {
C0350a() {
}
@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.gt65QHUX) {
IronLog.INTERNAL.verbose("disabled from server");
return;
}
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("deviceOS", MetricCommonTags.METRIC_COMMON_TAG_PLATFORM_ANDROID);
Context applicationContext = ContextProvider.getInstance().getApplicationContext();
if (applicationContext != null) {
jSONObject.put("deviceType", IronSourceUtils.getDeviceType(applicationContext));
y ironSourceAdvId = IronSourceUtils.getIronSourceAdvId(applicationContext);
if (ironSourceAdvId != null) {
jSONObject.put("advId", ironSourceAdvId.a);
jSONObject.put("advIdType", ironSourceAdvId.f3540b);
}
}
String str = z.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 ironLog = IronLog.API;
ironLog.info("impressionData: " + jSONObject2);
HttpFunctions.sendPostRequest(this.jB, jSONObject2.toString(), new C0350a());
} 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, f fVar) {
if (fVar != null) {
g gVar = fVar.f3523b;
b f = gVar != null ? gVar.f() : null;
Intrinsics.checkNotNull(f);
this.gt65QHUX = f.a;
this.jB = fVar.f3523b.f().f3534b;
}
}
@Override
public final void c() {
}
}