Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 SignalsConfig.java 源代码,内容仅作参考
package com.inmobi.commons.core.configs;
import android.webkit.URLUtil;
import androidx.annotation.Keep;
import com.inmobi.commons.utils.json.Constructor;
import com.inmobi.media.p6;
import com.inmobi.media.sb;
import com.inmobi.media.tb;
import com.inmobi.media.x4;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.EmptyList;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u001a\b\u0007\u0018\u0000 #2\u00020\u0001:\u0006$%&'()B\u0011\u0012\b\u0010 \u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b!\u0010\"J\b\u0010\u0003\u001a\u00020\u0002H\u0016J\b\u0010\u0005\u001a\u00020\u0004H\u0016J\b\u0010\u0007\u001a\u00020\u0006H\u0016J\u0006\u0010\t\u001a\u00020\bJ\u0006\u0010\u000b\u001a\u00020\nJ\u0006\u0010\r\u001a\u00020\fJ\b\u0010\u000e\u001a\u0004\u0018\u00010\u0004J\u0006\u0010\u000f\u001a\u00020\u0002J\u0006\u0010\u0011\u001a\u00020\u0010R\u001e\u0010\u0013\u001a\n \u0012*\u0004\u0018\u00010\u00020\u00028\u0002@\u0003X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014R\u0016\u0010\u0015\u001a\u00020\b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0015\u0010\u0016R\u0018\u0010\u0017\u001a\u0004\u0018\u00010\u00048\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0017\u0010\u0018R\u0016\u0010\u0019\u001a\u00020\n8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0019\u0010\u001aR\u0016\u0010\u001b\u001a\u00020\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001b\u0010\u001cR\u0016\u0010\u001d\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001d\u0010\u0014R\u0016\u0010\u001e\u001a\u00020\u00108\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001e\u0010\u001f¨\u0006*"}, d2 = {"Lcom/inmobi/commons/core/configs/SignalsConfig;", "Lcom/inmobi/commons/core/configs/Config;", "", "getType", "Lorg/json/JSONObject;", "toJson", "", "isValid", "Lcom/inmobi/commons/core/configs/SignalsConfig$IceConfig;", "getIceConfig", "Lcom/inmobi/commons/core/configs/SignalsConfig$UnifiedIdServiceConfig;", "getUnifiedIdServiceConfig", "Lcom/inmobi/commons/core/configs/SignalsConfig$NovatiqConfig;", "getNovatiqConfig", "getExt", "getAK", "", "getAKV", "kotlin.jvm.PlatformType", "TAG", "Ljava/lang/String;", "ice", "Lcom/inmobi/commons/core/configs/SignalsConfig$IceConfig;", "ext", "Lorg/json/JSONObject;", "unifiedIdServiceConfig", "Lcom/inmobi/commons/core/configs/SignalsConfig$UnifiedIdServiceConfig;", "novatiqConfig", "Lcom/inmobi/commons/core/configs/SignalsConfig$NovatiqConfig;", "kA", "vAK", "I", "accountId", "<init>", "(Ljava/lang/String;)V", "Companion", "CellIceConfig", com.inmobi.commons.core.configs.a.d, "IceConfig", "NovatiqConfig", "UnifiedIdServiceConfig", "WifiIceConfig", "media_release"}, k = 1, mv = {1, 5, 1})
public final class SignalsConfig extends Config {
@NotNull
public static final a Companion = new a();
@x4
private final String TAG;
private JSONObject ext;
@NotNull
private IceConfig ice;
@NotNull
private String kA;
@NotNull
private NovatiqConfig novatiqConfig;
@NotNull
private UnifiedIdServiceConfig unifiedIdServiceConfig;
private int vAK;
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u000f\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0016\u0010\u0017R\"\u0010\u0003\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\"\u0010\n\u001a\u00020\t8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR\"\u0010\u0010\u001a\u00020\t8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010\u000b\u001a\u0004\b\u0011\u0010\r\"\u0004\b\u0012\u0010\u000fR\"\u0010\u0013\u001a\u00020\t8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0013\u0010\u000b\u001a\u0004\b\u0014\u0010\r\"\u0004\b\u0015\u0010\u000f¨\u0006\u0018"}, d2 = {"Lcom/inmobi/commons/core/configs/SignalsConfig$CellIceConfig;", "", "", "cof", "I", "getCof", "()I", "setCof", "(I)V", "", "oe", "Z", "getOe", "()Z", "setOe", "(Z)V", "vce", "getVce", "setVce", "cce", "getCce", "setCce", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class CellIceConfig {
private boolean cce;
private int cof;
private boolean oe;
private boolean vce;
public final boolean getCce() {
return this.cce;
}
public final int getCof() {
return this.cof;
}
public final boolean getOe() {
return this.oe;
}
public final boolean getVce() {
return this.vce;
}
public final void setCce(boolean z) {
this.cce = z;
}
public final void setCof(int i) {
this.cof = i;
}
public final void setOe(boolean z) {
this.oe = z;
}
public final void setVce(boolean z) {
this.vce = z;
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u001c\u0010\u001dJ\u0006\u0010\u0003\u001a\u00020\u0002J\u0006\u0010\u0004\u001a\u00020\u0002J\u0006\u0010\u0006\u001a\u00020\u0005J\u0006\u0010\u0007\u001a\u00020\u0005J\u0006\u0010\b\u001a\u00020\u0002J\u0006\u0010\t\u001a\u00020\u0005J\u0006\u0010\n\u001a\u00020\u0005J\u0006\u0010\u000b\u001a\u00020\u0002J\u0006\u0010\f\u001a\u00020\u0005J\u0006\u0010\r\u001a\u00020\u0005J\u0006\u0010\u000e\u001a\u00020\u0005J\u0006\u0010\u000f\u001a\u00020\u0005R\u0016\u0010\u0010\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0010\u0010\u0011R\u0016\u0010\u0012\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0012\u0010\u0011R\u0016\u0010\u0013\u001a\u00020\u00058\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014R\u0016\u0010\u0015\u001a\u00020\u00058\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0015\u0010\u0014R\u0016\u0010\u0017\u001a\u00020\u00168\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0017\u0010\u0018R\u0016\u0010\u001a\u001a\u00020\u00198\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001a\u0010\u001b¨\u0006\u001e"}, d2 = {"Lcom/inmobi/commons/core/configs/SignalsConfig$IceConfig;", "", "", "getSampleInterval", "getStopRequestTimeout", "", "isLocationEnabled", "isSessionEnabled", "getWifiFlag", "isVisibleWifiEnabled", "isConnectedWifiEnabled", "getCellOperatorFlag", "isCellOperatorEnabled", "isVisibleCellTowerEnabled", "isConnectedCellTowerEnabled", "isValid", "sampleInterval", "I", "stopRequestTimeout", "locationEnabled", "Z", "sessionEnabled", "Lcom/inmobi/commons/core/configs/SignalsConfig$WifiIceConfig;", "w", "Lcom/inmobi/commons/core/configs/SignalsConfig$WifiIceConfig;", "Lcom/inmobi/commons/core/configs/SignalsConfig$CellIceConfig;", "c", "Lcom/inmobi/commons/core/configs/SignalsConfig$CellIceConfig;", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class IceConfig {
private boolean locationEnabled;
private boolean sessionEnabled;
private int sampleInterval = 300;
private int stopRequestTimeout = 3;
@NotNull
private WifiIceConfig w = new WifiIceConfig();
@NotNull
private CellIceConfig c = new CellIceConfig();
public final int getCellOperatorFlag() {
return this.c.getCof();
}
public final int getSampleInterval() {
return this.sampleInterval;
}
public final int getStopRequestTimeout() {
return this.stopRequestTimeout;
}
public final int getWifiFlag() {
return this.w.getWf();
}
public final boolean isCellOperatorEnabled() {
return this.c.getOe();
}
public final boolean isConnectedCellTowerEnabled() {
return this.c.getCce();
}
public final boolean isConnectedWifiEnabled() {
return this.w.getCwe();
}
public final boolean isLocationEnabled() {
return this.locationEnabled;
}
public final boolean isSessionEnabled() {
return this.sessionEnabled;
}
public final boolean isValid() {
return getSampleInterval() >= 0 && getStopRequestTimeout() >= 0 && getWifiFlag() >= 0 && getCellOperatorFlag() >= 0;
}
public final boolean isVisibleCellTowerEnabled() {
return this.c.getVce();
}
public final boolean isVisibleWifiEnabled() {
return this.w.getVwe();
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u000b\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0011\u0010\u0012R$\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0004\u0010\u0006R0\u0010\t\u001a\b\u0012\u0004\u0012\u00020\b0\u00072\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\b0\u00078\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR$\u0010\r\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010¨\u0006\u0013"}, d2 = {"Lcom/inmobi/commons/core/configs/SignalsConfig$NovatiqConfig;", "", "", "<set-?>", "isNovatiqEnabled", "Z", "()Z", "", "", "carrierNames", "Ljava/util/List;", "getCarrierNames", "()Ljava/util/List;", "beaconUrl", "Ljava/lang/String;", "getBeaconUrl", "()Ljava/lang/String;", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class NovatiqConfig {
private boolean isNovatiqEnabled = true;
@NotNull
private List<String> carrierNames = EmptyList.INSTANCE;
@NotNull
private String beaconUrl = "https://spadsync.com/sync";
@NotNull
public final String getBeaconUrl() {
return this.beaconUrl;
}
@NotNull
public final List<String> getCarrierNames() {
return this.carrierNames;
}
public final boolean isNovatiqEnabled() {
return this.isNovatiqEnabled;
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u000f\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u001b\u0010\u001cJ\u0006\u0010\u0003\u001a\u00020\u0002J\u0006\u0010\u0004\u001a\u00020\u0002R\u0016\u0010\u0005\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0005\u0010\u0006R\"\u0010\b\u001a\u00020\u00078\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\b\u0010\t\u001a\u0004\b\n\u0010\u000b\"\u0004\b\f\u0010\rR\"\u0010\u000f\u001a\u00020\u000e8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014R\"\u0010\u0015\u001a\u00020\u000e8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010\u0010\u001a\u0004\b\u0016\u0010\u0012\"\u0004\b\u0017\u0010\u0014R\"\u0010\u0018\u001a\u00020\u000e8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u0010\u001a\u0004\b\u0019\u0010\u0012\"\u0004\b\u001a\u0010\u0014¨\u0006\u001d"}, d2 = {"Lcom/inmobi/commons/core/configs/SignalsConfig$UnifiedIdServiceConfig;", "", "", "isEnabled", "isValid", "enabled", "Z", "", "url", "Ljava/lang/String;", "getUrl", "()Ljava/lang/String;", "setUrl", "(Ljava/lang/String;)V", "", "maxRetries", "I", "getMaxRetries", "()I", "setMaxRetries", "(I)V", "retryInterval", "getRetryInterval", "setRetryInterval", "timeout", "getTimeout", "setTimeout", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class UnifiedIdServiceConfig {
private boolean enabled;
private int maxRetries;
private int retryInterval;
@NotNull
private String url = "https://unif-id.ssp.inmobi.com/fetch";
private int timeout = 10;
public final int getMaxRetries() {
return this.maxRetries;
}
public final int getRetryInterval() {
return this.retryInterval;
}
public final int getTimeout() {
return this.timeout;
}
@NotNull
public final String getUrl() {
return this.url;
}
public final boolean isEnabled() {
return this.enabled;
}
public final boolean isValid() {
return URLUtil.isValidUrl(this.url) && this.maxRetries >= 0 && this.timeout >= 0 && this.retryInterval >= 0;
}
public final void setMaxRetries(int i) {
this.maxRetries = i;
}
public final void setRetryInterval(int i) {
this.retryInterval = i;
}
public final void setTimeout(int i) {
this.timeout = i;
}
public final void setUrl(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.url = str;
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\f\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0013\u0010\u0014R\"\u0010\u0003\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\"\u0010\n\u001a\u00020\t8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR\"\u0010\u0010\u001a\u00020\t8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010\u000b\u001a\u0004\b\u0011\u0010\r\"\u0004\b\u0012\u0010\u000f¨\u0006\u0015"}, d2 = {"Lcom/inmobi/commons/core/configs/SignalsConfig$WifiIceConfig;", "", "", "wf", "I", "getWf", "()I", "setWf", "(I)V", "", "vwe", "Z", "getVwe", "()Z", "setVwe", "(Z)V", "cwe", "getCwe", "setCwe", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class WifiIceConfig {
private boolean cwe;
private boolean vwe;
private int wf;
public final boolean getCwe() {
return this.cwe;
}
public final boolean getVwe() {
return this.vwe;
}
public final int getWf() {
return this.wf;
}
public final void setCwe(boolean z) {
this.cwe = z;
}
public final void setVwe(boolean z) {
this.vwe = z;
}
public final void setWf(int i) {
this.wf = i;
}
}
public static final class a {
public static final class C0369a implements Constructor<List<? extends String>> {
@Override
public List<? extends String> construct() {
return new ArrayList();
}
}
@NotNull
public final com.inmobi.commons.utils.json.a<SignalsConfig> a() {
return new com.inmobi.commons.utils.json.a().a(new tb("carrierNames", NovatiqConfig.class), (sb<?>) new p6(new C0369a(), String.class));
}
}
public SignalsConfig(String str) {
super(str);
this.TAG = "SignalsConfig";
this.ice = new IceConfig();
this.unifiedIdServiceConfig = new UnifiedIdServiceConfig();
this.novatiqConfig = new NovatiqConfig();
this.kA = "wWFMAWbSEtvl5VxZbQGMK7";
this.vAK = 1;
}
@NotNull
public final String getAK() {
return this.kA;
}
public final int getAKV() {
return this.vAK;
}
public final JSONObject getExt() {
return this.ext;
}
@NotNull
public final IceConfig getIceConfig() {
return this.ice;
}
@NotNull
public final NovatiqConfig getNovatiqConfig() {
return this.novatiqConfig;
}
@Override
@NotNull
public String getType() {
return "signals";
}
@NotNull
public final UnifiedIdServiceConfig getUnifiedIdServiceConfig() {
return this.unifiedIdServiceConfig;
}
@Override
public boolean isValid() {
return this.ice.isValid() && this.unifiedIdServiceConfig.isValid();
}
@Override
@NotNull
public JSONObject toJson() {
JSONObject a2 = Companion.a().a((com.inmobi.commons.utils.json.a<SignalsConfig>) this);
if (a2 == null) {
String TAG = this.TAG;
Intrinsics.checkNotNullExpressionValue(TAG, "TAG");
return new JSONObject();
}
return a2;
}
}