Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 j.java 源代码,内容仅作参考
package com.chartboost.sdk.impl;
import com.chartboost.sdk.impl.c2;
import com.chartboost.sdk.impl.q;
import com.chartboost.sdk.internal.Model.CBError;
import com.fyber.inneractive.sdk.external.InneractiveMediationDefs;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.Arrays;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import org.json.JSONObject;
@Metadata(d1 = {"\u0000\u009e\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0012\u0018\u00002\u00020\u00012\u00020\u0002B?\u0012\u0006\u0010(\u001a\u00020$\u0012\u0006\u0010.\u001a\u00020)\u0012\u0006\u00104\u001a\u00020/\u0012\u0006\u0010:\u001a\u000205\u0012\u0006\u0010@\u001a\u00020;\u0012\u0006\u0010F\u001a\u00020A\u0012\u0006\u0010\u001e\u001a\u00020\u001d¢\u0006\u0004\bQ\u0010RJ3\u0010\f\u001a\u00020\n2\u0006\u0010\u0004\u001a\u00020\u00032!\u0010\u000b\u001a\u001d\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\u0004\u0012\u00020\n0\u0005H\u0016J\u001c\u0010\f\u001a\u00020\n2\b\u0010\u000e\u001a\u0004\u0018\u00010\r2\b\u0010\u0010\u001a\u0004\u0018\u00010\u000fH\u0016J\u001c\u0010\f\u001a\u00020\n2\b\u0010\u000e\u001a\u0004\u0018\u00010\r2\b\u0010\u0012\u001a\u0004\u0018\u00010\u0011H\u0016J\"\u0010\f\u001a\u0004\u0018\u00010\u00172\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0016\u001a\u00020\u0015H\u0002J@\u0010\f\u001a\u00020\r2\u0006\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u0019\u001a\u00020\u00182\u0006\u0010\u001a\u001a\u00020\u00182\u0006\u0010\u001c\u001a\u00020\u001b2\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u000b\u001a\u00020\u00022\u0006\u0010\u001e\u001a\u00020\u001dH\u0002J8\u0010\f\u001a\u00020 2\u0006\u0010\u000b\u001a\u00020\u00022\u0006\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u001f\u001a\u00020\u00182\u0006\u0010\u001c\u001a\u00020\u001b2\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u001e\u001a\u00020\u001dH\u0002J@\u0010\f\u001a\u00020!2\u0006\u0010\u000b\u001a\u00020\u00022\u0006\u0010\u0019\u001a\u00020\u00182\u0006\u0010\u001a\u001a\u00020\u00182\u0006\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u001f\u001a\u00020\u00182\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u001e\u001a\u00020\u001dH\u0002J\u0018\u0010\f\u001a\u00020\n2\u0006\u0010\"\u001a\u00020\u00172\u0006\u0010\u000e\u001a\u00020\rH\u0002J\u0010\u0010\f\u001a\u00020\n2\u0006\u0010#\u001a\u00020\u0015H\u0002R\u0017\u0010(\u001a\u00020$8\u0006¢\u0006\f\n\u0004\b\f\u0010%\u001a\u0004\b&\u0010'R\u0017\u0010.\u001a\u00020)8\u0006¢\u0006\f\n\u0004\b*\u0010+\u001a\u0004\b,\u0010-R\u0017\u00104\u001a\u00020/8\u0006¢\u0006\f\n\u0004\b0\u00101\u001a\u0004\b2\u00103R\u0017\u0010:\u001a\u0002058\u0006¢\u0006\f\n\u0004\b6\u00107\u001a\u0004\b8\u00109R\u0017\u0010@\u001a\u00020;8\u0006¢\u0006\f\n\u0004\b<\u0010=\u001a\u0004\b>\u0010?R\u0017\u0010F\u001a\u00020A8\u0006¢\u0006\f\n\u0004\bB\u0010C\u001a\u0004\bD\u0010ER\u0017\u0010\u001e\u001a\u00020\u001d8\u0006¢\u0006\f\n\u0004\bG\u0010H\u001a\u0004\bI\u0010JR\u0016\u0010\u0014\u001a\u00020\u00138\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bK\u0010LR\u0016\u0010\u0004\u001a\u00020\u00038\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bM\u0010NR1\u0010\u000b\u001a\u001d\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\u0004\u0012\u00020\n0\u00058\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bO\u0010P¨\u0006S"}, d2 = {"Lcom/chartboost/sdk/impl/j;", "Lcom/chartboost/sdk/impl/i;", "Lcom/chartboost/sdk/impl/c2$a;", "Lcom/chartboost/sdk/impl/d6;", "params", "Lkotlin/Function1;", "Lcom/chartboost/sdk/impl/e6;", "Lkotlin/ParameterName;", "name", IronSourceConstants.EVENTS_RESULT, "", "callback", "a", "Lcom/chartboost/sdk/impl/c2;", "request", "Lorg/json/JSONObject;", "response", "Lcom/chartboost/sdk/internal/Model/CBError;", CampaignEx.JSON_NATIVE_VIDEO_ERROR, "Lcom/chartboost/sdk/impl/j8;", "requestBodyFields", "", "location", "Lcom/chartboost/sdk/impl/r;", "", "height", "width", "", "isCacheRequest", "Lcom/chartboost/sdk/impl/w6;", "openMeasurementManager", "impressionCounter", "Lcom/chartboost/sdk/impl/k2;", "Lcom/chartboost/sdk/impl/e7;", "adUnit", "errorMsg", "Lcom/chartboost/sdk/impl/q;", "Lcom/chartboost/sdk/impl/q;", "getAdTraits", "()Lcom/chartboost/sdk/impl/q;", "adTraits", "Lcom/chartboost/sdk/impl/r4;", "b", "Lcom/chartboost/sdk/impl/r4;", "getFileCache", "()Lcom/chartboost/sdk/impl/r4;", "fileCache", "Lcom/chartboost/sdk/impl/h8;", "c", "Lcom/chartboost/sdk/impl/h8;", "getRequestBodyBuilder", "()Lcom/chartboost/sdk/impl/h8;", "requestBodyBuilder", "Lcom/chartboost/sdk/impl/z1;", DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_D, "Lcom/chartboost/sdk/impl/z1;", "getNetworkService", "()Lcom/chartboost/sdk/impl/z1;", "networkService", "Lcom/chartboost/sdk/impl/x;", com.ironsource.sdk.c.e.a, "Lcom/chartboost/sdk/impl/x;", "getAdUnitParser", "()Lcom/chartboost/sdk/impl/x;", "adUnitParser", "Lcom/chartboost/sdk/impl/d7;", InneractiveMediationDefs.GENDER_FEMALE, "Lcom/chartboost/sdk/impl/d7;", "getOpenRTBAdUnitParser", "()Lcom/chartboost/sdk/impl/d7;", "openRTBAdUnitParser", "g", "Lcom/chartboost/sdk/impl/w6;", "getOpenMeasurementManager", "()Lcom/chartboost/sdk/impl/w6;", "h", "Lcom/chartboost/sdk/impl/j8;", "i", "Lcom/chartboost/sdk/impl/d6;", "j", "Lkotlin/jvm/functions/Function1;", "<init>", "(Lcom/chartboost/sdk/impl/q;Lcom/chartboost/sdk/impl/r4;Lcom/chartboost/sdk/impl/h8;Lcom/chartboost/sdk/impl/z1;Lcom/chartboost/sdk/impl/x;Lcom/chartboost/sdk/impl/d7;Lcom/chartboost/sdk/impl/w6;)V", "Chartboost-9.4.1_productionRelease"}, k = 1, mv = {1, 8, 0})
public final class j implements i, c2.a {
public final q a;
public final r4 f2257b;
public final h8 c;
public final z1 d;
public final x e;
public final d7 f;
public final w6 g;
public j8 h;
public d6 i;
public Function1<? super e6, Unit> j;
public j(q adTraits, r4 fileCache, h8 requestBodyBuilder, z1 networkService, x adUnitParser, d7 openRTBAdUnitParser, w6 openMeasurementManager) {
Intrinsics.checkNotNullParameter(adTraits, "adTraits");
Intrinsics.checkNotNullParameter(fileCache, "fileCache");
Intrinsics.checkNotNullParameter(requestBodyBuilder, "requestBodyBuilder");
Intrinsics.checkNotNullParameter(networkService, "networkService");
Intrinsics.checkNotNullParameter(adUnitParser, "adUnitParser");
Intrinsics.checkNotNullParameter(openRTBAdUnitParser, "openRTBAdUnitParser");
Intrinsics.checkNotNullParameter(openMeasurementManager, "openMeasurementManager");
this.a = adTraits;
this.f2257b = fileCache;
this.c = requestBodyBuilder;
this.d = networkService;
this.e = adUnitParser;
this.f = openRTBAdUnitParser;
this.g = openMeasurementManager;
}
@Override
public void a(d6 params, Function1<? super e6, Unit> callback) {
Intrinsics.checkNotNullParameter(params, "params");
Intrinsics.checkNotNullParameter(callback, "callback");
this.i = params;
this.j = callback;
this.h = this.c.build();
String d = params.a().d();
Integer b2 = params.b();
int intValue = b2 != null ? b2.intValue() : 0;
Integer c = params.c();
int intValue2 = c != null ? c.intValue() : 0;
boolean d2 = params.d();
j8 j8Var = this.h;
if (j8Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("requestBodyFields");
j8Var = null;
}
c2 a = a(d, intValue, intValue2, d2, j8Var, this, this.g);
a.i = 1;
this.d.a(a);
}
public final r a(j8 j8Var, JSONObject jSONObject, String str) {
r a;
try {
q qVar = this.a;
q.a aVar = q.a.g;
if (Intrinsics.areEqual(qVar, aVar)) {
a = this.f.a(aVar, jSONObject);
} else if (!j8Var.a().b()) {
return null;
} else {
a = this.e.a(jSONObject);
}
return a;
} catch (Exception e) {
y3.d(new j3("cache_get_response_parsing_error", e.getMessage(), this.a.b(), str, null, 16, null));
return null;
}
}
public final c2 a(String str, int i, int i2, boolean z, j8 j8Var, c2.a aVar, w6 w6Var) {
int d;
q qVar = this.a;
if (Intrinsics.areEqual(qVar, q.c.g)) {
d = j8Var.h().e();
} else {
d = Intrinsics.areEqual(qVar, q.b.g) ? j8Var.h().d() : j8Var.h().a();
}
int i3 = d;
return Intrinsics.areEqual(this.a, q.a.g) ? a(aVar, i, i2, str, i3, j8Var, w6Var) : a(aVar, str, i3, z, j8Var, w6Var);
}
public final k2 a(c2.a aVar, String str, int i, boolean z, j8 j8Var, w6 w6Var) {
k7 c;
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
String format = String.format(this.a.e(), Arrays.copyOf(new Object[]{j8Var.a().c()}, 1));
Intrinsics.checkNotNullExpressionValue(format, "format(format, *args)");
k2 k2Var = new k2(format, j8Var, o7.NORMAL, aVar);
JSONObject f = this.f2257b.f();
Intrinsics.checkNotNullExpressionValue(f, "fileCache.webViewCacheAssets");
k2Var.b("cache_assets", f);
k2Var.b("location", str);
k2Var.b("imp_depth", Integer.valueOf(i));
if (w6Var.f() && (c = w6Var.c()) != null) {
k2Var.c("omidpn", c.a());
k2Var.c("omidpv", c.b());
}
k2Var.b("cache", Boolean.valueOf(z));
k2Var.o = true;
return k2Var;
}
public final e7 a(c2.a aVar, int i, int i2, String str, int i3, j8 j8Var, w6 w6Var) {
return new e7(new n6("https://da.chartboost.com", this.a.e(), j8Var, o7.NORMAL, aVar), new k(this.a, Integer.valueOf(i), Integer.valueOf(i2), str, i3), w6Var);
}
@Override
public void a(c2 c2Var, JSONObject jSONObject) {
if (c2Var != null && jSONObject != null) {
j8 j8Var = this.h;
Unit unit = null;
if (j8Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("requestBodyFields");
j8Var = null;
}
d6 d6Var = this.i;
if (d6Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("params");
d6Var = null;
}
r a = a(j8Var, jSONObject, d6Var.a().d());
if (a != null) {
a(a, c2Var);
unit = Unit.INSTANCE;
}
if (unit == null) {
a("Error parsing response");
return;
}
return;
}
a("Unexpected response");
}
public final void a(r rVar, c2 c2Var) {
Function1<? super e6, Unit> function1 = this.j;
d6 d6Var = null;
if (function1 == null) {
Intrinsics.throwUninitializedPropertyAccessException("callback");
function1 = null;
}
d6 d6Var2 = this.i;
if (d6Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("params");
} else {
d6Var = d6Var2;
}
function1.invoke(new e6(d6Var.a(), rVar, null, c2Var.h, c2Var.g));
}
public final void a(String str) {
Function1<? super e6, Unit> function1 = this.j;
d6 d6Var = null;
if (function1 == null) {
Intrinsics.throwUninitializedPropertyAccessException("callback");
function1 = null;
}
d6 d6Var2 = this.i;
if (d6Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("params");
} else {
d6Var = d6Var2;
}
function1.invoke(new e6(d6Var.a(), null, new CBError(CBError.b.UNEXPECTED_RESPONSE, str), 0L, 0L, 26, null));
}
@Override
public void a(c2 c2Var, CBError cBError) {
Function1<? super e6, Unit> function1 = this.j;
d6 d6Var = null;
if (function1 == null) {
Intrinsics.throwUninitializedPropertyAccessException("callback");
function1 = null;
}
d6 d6Var2 = this.i;
if (d6Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("params");
} else {
d6Var = d6Var2;
}
s0 a = d6Var.a();
if (cBError == null) {
cBError = new CBError(CBError.b.INVALID_RESPONSE, "Error parsing response");
}
function1.invoke(new e6(a, null, cBError, 0L, 0L, 26, null));
}
}