Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97

以下内容为反编译后的 CrashConfig.java 源代码,内容仅作参考


package com.inmobi.commons.core.configs;

import androidx.annotation.Keep;
import com.inmobi.media.d4;
import com.inmobi.media.i8;
import com.inmobi.media.s4;
import com.inmobi.media.v3;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONObject;
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0016\b\u0007\u0018\u0000 /2\u00020\u0001:\u00010B\u0011\u0012\b\u0010,\u001a\u0004\u0018\u00010\u0005¢\u0006\u0004\b-\u0010.J\u000f\u0010\u0003\u001a\u00020\u0002H\u0002¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0006\u0010\u0007J\u000f\u0010\t\u001a\u00020\bH\u0016¢\u0006\u0004\b\t\u0010\nJ\u000f\u0010\f\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\f\u0010\rJ\r\u0010\u000e\u001a\u00020\b¢\u0006\u0004\b\u000e\u0010\nJ\r\u0010\u000f\u001a\u00020\b¢\u0006\u0004\b\u000f\u0010\nJ\r\u0010\u0011\u001a\u00020\u0010¢\u0006\u0004\b\u0011\u0010\u0012J\r\u0010\u0013\u001a\u00020\u0010¢\u0006\u0004\b\u0013\u0010\u0012J\r\u0010\u0015\u001a\u00020\u0014¢\u0006\u0004\b\u0015\u0010\u0016J\r\u0010\u0017\u001a\u00020\u0005¢\u0006\u0004\b\u0017\u0010\u0007J\r\u0010\u0019\u001a\u00020\u0018¢\u0006\u0004\b\u0019\u0010\u001aJ\r\u0010\u001c\u001a\u00020\u001b¢\u0006\u0004\b\u001c\u0010\u001dR\u0016\u0010\u001e\u001a\u00020\u00188\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001e\u0010\u001fR\u0016\u0010 \u001a\u00020\b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b \u0010!R\u0016\u0010\"\u001a\u00020\u00058\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\"\u0010#R\u0016\u0010$\u001a\u00020\u00148\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b$\u0010%R\u0016\u0010&\u001a\u00020\u00148\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b&\u0010%R\u0016\u0010'\u001a\u00020\b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b'\u0010!R\u0016\u0010(\u001a\u00020\u00148\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b(\u0010%R\u0016\u0010)\u001a\u00020\u00188\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b)\u0010\u001fR\u001e\u0010+\u001a\n **\u0004\u0018\u00010\u00050\u00058\u0002@\u0003X\u0083\u0004¢\u0006\u0006\n\u0004\b+\u0010#¨\u00061"}, d2 = {"Lcom/inmobi/commons/core/configs/CrashConfig;", "Lcom/inmobi/commons/core/configs/Config;", "", "setDefaultNetworkConfig", "()V", "", "getType", "()Ljava/lang/String;", "", "isValid", "()Z", "Lorg/json/JSONObject;", "toJson", "()Lorg/json/JSONObject;", "getCrashEnabled", "getCatchEnabled", "Lcom/inmobi/media/i8$a;", "getMobileConfig", "()Lcom/inmobi/media/i8$a;", "getWifiConfig", "", "getEventTTL", "()J", "getUrl", "", "getMaxEventsToPersist", "()I", "Lcom/inmobi/media/v3;", "getEventConfig", "()Lcom/inmobi/media/v3;", "maxEventsToPersist", "I", "crashEnabled", "Z", "url", "Ljava/lang/String;", "processingInterval", "J", "eventTTL", "catchEnabled", "txLatency", "maxRetryCount", "kotlin.jvm.PlatformType", "TAG", "accountId", "<init>", "(Ljava/lang/String;)V", "Companion", "a", "media_release"}, k = 1, mv = {1, 5, 1})
public final class CrashConfig extends Config {
    public static final a Companion = new a();
    public static final boolean DEFAULT_CATCH_ENABLED = false;
    public static final boolean DEFAULT_CRASH_ENABLED = true;
    public static final long DEFAULT_EVENT_TTL_SEC = 259200;
    public static final long DEFAULT_INGESTION_LATENCY_SEC = 86400;
    public static final int DEFAULT_MAX_BATCH_SIZE = 2;
    public static final int DEFAULT_MAX_EVENTS_TO_PERSIST = 50;
    public static final int DEFAULT_MAX_RETRIES = 3;
    public static final int DEFAULT_MIN_BATCH_SIZE = 1;
    public static final long DEFAULT_PROCESSING_INTERVAL_SEC = 60;
    public static final long DEFAULT_RETRY_INTERVAL_SEC = 10;
    public static final String DEFAULT_URL = "https://crash-metrics.sdk.inmobi.com/trace";
    @s4
    private final String TAG;
    private boolean catchEnabled;
    private boolean crashEnabled;
    private long eventTTL;
    private int maxEventsToPersist;
    private int maxRetryCount;
    private i8 networkType;
    private long processingInterval;
    private long txLatency;
    private String url;

    public static final class a {
    }

    public CrashConfig(String str) {
        super(str);
        this.TAG = "CrashConfig";
        this.url = DEFAULT_URL;
        this.processingInterval = 60L;
        this.maxRetryCount = 3;
        this.maxEventsToPersist = 50;
        this.eventTTL = DEFAULT_EVENT_TTL_SEC;
        this.txLatency = 86400L;
        this.crashEnabled = true;
        this.networkType = new i8();
        setDefaultNetworkConfig();
    }

    private final void setDefaultNetworkConfig() {
        i8 i8Var = this.networkType;
        i8.a aVar = new i8.a();
        aVar.a(10L);
        aVar.c(1);
        aVar.b(2);
        Unit unit = Unit.INSTANCE;
        i8Var.getClass();
        Intrinsics.checkNotNullParameter(aVar, "<set-?>");
        i8Var.wifi = aVar;
        i8 i8Var2 = this.networkType;
        i8.a aVar2 = new i8.a();
        aVar2.a(10L);
        aVar2.c(1);
        aVar2.b(2);
        i8Var2.getClass();
        Intrinsics.checkNotNullParameter(aVar2, "<set-?>");
        i8Var2.others = aVar2;
    }

    public final boolean getCatchEnabled() {
        return this.catchEnabled;
    }

    public final boolean getCrashEnabled() {
        return this.crashEnabled;
    }

    public final v3 getEventConfig() {
        return new v3(this.maxRetryCount, this.eventTTL, this.processingInterval, this.txLatency, getWifiConfig().b(), getWifiConfig().a(), getMobileConfig().b(), getMobileConfig().a(), getWifiConfig().c(), getMobileConfig().c());
    }

    public final long getEventTTL() {
        return this.eventTTL;
    }

    public final int getMaxEventsToPersist() {
        return this.maxEventsToPersist;
    }

    public final i8.a getMobileConfig() {
        return this.networkType.a();
    }

    @Override
    public String getType() {
        return "crashReporting";
    }

    public final String getUrl() {
        return this.url;
    }

    public final i8.a getWifiConfig() {
        return this.networkType.b();
    }

    @Override
    public boolean isValid() {
        if (d4.a(this.url)) {
            return false;
        }
        long j = this.txLatency;
        if (j < this.processingInterval || j > this.eventTTL) {
            return false;
        }
        i8 i8Var = this.networkType;
        int i = this.maxEventsToPersist;
        return (i8Var.b().a(i) && i8Var.a().a(i)) && this.processingInterval > 0 && this.maxRetryCount >= 0 && this.txLatency > 0 && this.eventTTL > 0 && this.maxEventsToPersist > 0;
    }

    @Override
    public JSONObject toJson() {
        Companion.getClass();
        JSONObject a2 = new com.inmobi.commons.utils.json.a().a((com.inmobi.commons.utils.json.a) this);
        if (a2 == null) {
            String TAG = this.TAG;
            Intrinsics.checkNotNullExpressionValue(TAG, "TAG");
            return new JSONObject();
        }
        return a2;
    }
}