Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 ExponeaConfiguration.java 源代码,内容仅作参考
package com.exponea.sdk.models;
import com.exponea.sdk.exceptions.InvalidConfigurationException;
import com.exponea.sdk.models.Constants;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.k;
import kotlin.text.o;
import kotlin.text.v;
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
import org.bouncycastle.pqc.math.linearalgebra.Matrix;
import org.jetbrains.annotations.NotNull;
import p029do.c0;
import p029do.u;
import p029do.u0;
import sinet.startup.inDriver.core.data.data.ReasonData;
import wo.c;
@Metadata(d1 = {"\u0000X\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\bs\b\u0086\b\u0018\u0000 \u0095\u00012\u00020\u0001:\u0006\u0095\u0001\u0096\u0001\u0097\u0001B«\u0002\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0002\u0012\u001a\b\u0002\u0010,\u001a\u0014\u0012\u0004\u0012\u00020\u000b\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\f0\n\u0012\n\b\u0002\u0010-\u001a\u0004\u0018\u00010\u0002\u0012\b\b\u0002\u0010.\u001a\u00020\u0002\u0012\b\b\u0002\u0010/\u001a\u00020\u0011\u0012\b\b\u0002\u00100\u001a\u00020\u0013\u0012\b\b\u0002\u00101\u001a\u00020\u0015\u0012\b\b\u0002\u00102\u001a\u00020\u0015\u0012\b\b\u0002\u00103\u001a\u00020\u0018\u0012\b\b\u0002\u00104\u001a\u00020\u0018\u0012\n\b\u0002\u00105\u001a\u0004\u0018\u00010\u0013\u0012\n\b\u0002\u00106\u001a\u0004\u0018\u00010\u0013\u0012\b\b\u0002\u00107\u001a\u00020\u0002\u0012\b\b\u0002\u00108\u001a\u00020\u0002\u0012\b\b\u0002\u00109\u001a\u00020\u0002\u0012\b\b\u0002\u0010:\u001a\u00020\u0013\u0012$\b\u0002\u0010;\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00010\"j\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0001`#\u0012\b\b\u0002\u0010<\u001a\u00020%\u0012\b\b\u0002\u0010=\u001a\u00020\u0018\u0012\b\b\u0002\u0010>\u001a\u00020\u0018\u0012\u000e\b\u0002\u0010?\u001a\b\u0012\u0004\u0012\u00020\u00020\f\u0012\n\b\u0002\u0010@\u001a\u0004\u0018\u00010\u0013\u0012\b\b\u0002\u0010A\u001a\u00020\u0018¢\u0006\u0006\b\u0093\u0001\u0010\u0094\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u0012\u0010\u0007\u001a\u00020\u00042\b\u0010\u0006\u001a\u0004\u0018\u00010\u0002H\u0002J\u0006\u0010\b\u001a\u00020\u0004J\t\u0010\t\u001a\u00020\u0002HÆ\u0003J\u001b\u0010\u000e\u001a\u0014\u0012\u0004\u0012\u00020\u000b\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\f0\nHÆ\u0003J\u000b\u0010\u000f\u001a\u0004\u0018\u00010\u0002HÆ\u0003J\t\u0010\u0010\u001a\u00020\u0002HÆ\u0003J\t\u0010\u0012\u001a\u00020\u0011HÆ\u0003J\t\u0010\u0014\u001a\u00020\u0013HÆ\u0003J\t\u0010\u0016\u001a\u00020\u0015HÆ\u0003J\t\u0010\u0017\u001a\u00020\u0015HÆ\u0003J\t\u0010\u0019\u001a\u00020\u0018HÆ\u0003J\t\u0010\u001a\u001a\u00020\u0018HÆ\u0003J\u0012\u0010\u001b\u001a\u0004\u0018\u00010\u0013HÆ\u0003¢\u0006\u0004\b\u001b\u0010\u001cJ\u0012\u0010\u001d\u001a\u0004\u0018\u00010\u0013HÆ\u0003¢\u0006\u0004\b\u001d\u0010\u001cJ\t\u0010\u001e\u001a\u00020\u0002HÆ\u0003J\t\u0010\u001f\u001a\u00020\u0002HÆ\u0003J\t\u0010 \u001a\u00020\u0002HÆ\u0003J\t\u0010!\u001a\u00020\u0013HÆ\u0003J%\u0010$\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00010\"j\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0001`#HÆ\u0003J\t\u0010&\u001a\u00020%HÆ\u0003J\t\u0010'\u001a\u00020\u0018HÆ\u0003J\t\u0010(\u001a\u00020\u0018HÆ\u0003J\u000f\u0010)\u001a\b\u0012\u0004\u0012\u00020\u00020\fHÆ\u0003J\u0012\u0010*\u001a\u0004\u0018\u00010\u0013HÆ\u0003¢\u0006\u0004\b*\u0010\u001cJ\t\u0010+\u001a\u00020\u0018HÆ\u0003J²\u0002\u0010B\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u00022\u001a\b\u0002\u0010,\u001a\u0014\u0012\u0004\u0012\u00020\u000b\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\f0\n2\n\b\u0002\u0010-\u001a\u0004\u0018\u00010\u00022\b\b\u0002\u0010.\u001a\u00020\u00022\b\b\u0002\u0010/\u001a\u00020\u00112\b\b\u0002\u00100\u001a\u00020\u00132\b\b\u0002\u00101\u001a\u00020\u00152\b\b\u0002\u00102\u001a\u00020\u00152\b\b\u0002\u00103\u001a\u00020\u00182\b\b\u0002\u00104\u001a\u00020\u00182\n\b\u0002\u00105\u001a\u0004\u0018\u00010\u00132\n\b\u0002\u00106\u001a\u0004\u0018\u00010\u00132\b\b\u0002\u00107\u001a\u00020\u00022\b\b\u0002\u00108\u001a\u00020\u00022\b\b\u0002\u00109\u001a\u00020\u00022\b\b\u0002\u0010:\u001a\u00020\u00132$\b\u0002\u0010;\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00010\"j\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0001`#2\b\b\u0002\u0010<\u001a\u00020%2\b\b\u0002\u0010=\u001a\u00020\u00182\b\b\u0002\u0010>\u001a\u00020\u00182\u000e\b\u0002\u0010?\u001a\b\u0012\u0004\u0012\u00020\u00020\f2\n\b\u0002\u0010@\u001a\u0004\u0018\u00010\u00132\b\b\u0002\u0010A\u001a\u00020\u0018HÆ\u0001¢\u0006\u0004\bB\u0010CJ\t\u0010D\u001a\u00020\u0002HÖ\u0001J\t\u0010E\u001a\u00020\u0013HÖ\u0001J\u0013\u0010G\u001a\u00020\u00182\b\u0010F\u001a\u0004\u0018\u00010\u0001HÖ\u0003R\"\u0010\u0003\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010H\u001a\u0004\bI\u0010J\"\u0004\bK\u0010LR4\u0010,\u001a\u0014\u0012\u0004\u0012\u00020\u000b\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\f0\n8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b,\u0010M\u001a\u0004\bN\u0010O\"\u0004\bP\u0010QR$\u0010-\u001a\u0004\u0018\u00010\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b-\u0010H\u001a\u0004\bR\u0010J\"\u0004\bS\u0010LR\"\u0010.\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b.\u0010H\u001a\u0004\bT\u0010J\"\u0004\bU\u0010LR\"\u0010/\u001a\u00020\u00118\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b/\u0010V\u001a\u0004\bW\u0010X\"\u0004\bY\u0010ZR\"\u00100\u001a\u00020\u00138\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b0\u0010[\u001a\u0004\b\\\u0010]\"\u0004\b^\u0010_R\"\u00101\u001a\u00020\u00158\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b1\u0010`\u001a\u0004\ba\u0010b\"\u0004\bc\u0010dR\"\u00102\u001a\u00020\u00158\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b2\u0010`\u001a\u0004\be\u0010b\"\u0004\bf\u0010dR\"\u00103\u001a\u00020\u00188\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b3\u0010g\u001a\u0004\bh\u0010i\"\u0004\bj\u0010kR\"\u00104\u001a\u00020\u00188\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b4\u0010g\u001a\u0004\bl\u0010i\"\u0004\bm\u0010kR$\u00105\u001a\u0004\u0018\u00010\u00138\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b5\u0010n\u001a\u0004\bo\u0010\u001c\"\u0004\bp\u0010qR$\u00106\u001a\u0004\u0018\u00010\u00138\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b6\u0010n\u001a\u0004\br\u0010\u001c\"\u0004\bs\u0010qR\"\u00107\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b7\u0010H\u001a\u0004\bt\u0010J\"\u0004\bu\u0010LR\"\u00108\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b8\u0010H\u001a\u0004\bv\u0010J\"\u0004\bw\u0010LR\"\u00109\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b9\u0010H\u001a\u0004\bx\u0010J\"\u0004\by\u0010LR\"\u0010:\u001a\u00020\u00138\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b:\u0010[\u001a\u0004\bz\u0010]\"\u0004\b{\u0010_R?\u0010;\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00010\"j\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0001`#8\u0006@\u0006X\u0086\u000e¢\u0006\u0013\n\u0004\b;\u0010|\u001a\u0004\b}\u0010~\"\u0005\b\u007f\u0010\u0080\u0001R'\u0010<\u001a\u00020%8\u0006@\u0006X\u0086\u000e¢\u0006\u0017\n\u0005\b<\u0010\u0081\u0001\u001a\u0006\b\u0082\u0001\u0010\u0083\u0001\"\u0006\b\u0084\u0001\u0010\u0085\u0001R$\u0010=\u001a\u00020\u00188\u0006@\u0006X\u0086\u000e¢\u0006\u0014\n\u0004\b=\u0010g\u001a\u0005\b\u0086\u0001\u0010i\"\u0005\b\u0087\u0001\u0010kR$\u0010>\u001a\u00020\u00188\u0006@\u0006X\u0086\u000e¢\u0006\u0014\n\u0004\b>\u0010g\u001a\u0005\b\u0088\u0001\u0010i\"\u0005\b\u0089\u0001\u0010kR-\u0010?\u001a\b\u0012\u0004\u0012\u00020\u00020\f8\u0006@\u0006X\u0086\u000e¢\u0006\u0017\n\u0005\b?\u0010\u008a\u0001\u001a\u0006\b\u008b\u0001\u0010\u008c\u0001\"\u0006\b\u008d\u0001\u0010\u008e\u0001R&\u0010@\u001a\u0004\u0018\u00010\u00138\u0006@\u0006X\u0086\u000e¢\u0006\u0014\n\u0004\b@\u0010n\u001a\u0005\b\u008f\u0001\u0010\u001c\"\u0005\b\u0090\u0001\u0010qR$\u0010A\u001a\u00020\u00188\u0006@\u0006X\u0086\u000e¢\u0006\u0014\n\u0004\bA\u0010g\u001a\u0005\b\u0091\u0001\u0010i\"\u0005\b\u0092\u0001\u0010k¨\u0006\u0098\u0001"}, d2 = {"Lcom/exponea/sdk/models/ExponeaConfiguration;", "", "", "projectToken", "Lco/g0;", "validateProjectToken", "authToken", "validateBasicAuthValue", "validate", "component1", "", "Lcom/exponea/sdk/models/EventType;", "", "Lcom/exponea/sdk/models/ExponeaProject;", "component2", "component3", "component4", "Lcom/exponea/sdk/models/ExponeaConfiguration$HttpLoggingLevel;", "component5", "", "component6", "", "component7", "component8", "", "component9", "component10", "component11", "()Ljava/lang/Integer;", "component12", "component13", "component14", "component15", "component16", "Ljava/util/HashMap;", "Lkotlin/collections/HashMap;", "component17", "Lcom/exponea/sdk/models/ExponeaConfiguration$TokenFrequency;", "component18", "component19", "component20", "component21", "component22", "component23", "projectRouteMap", "authorization", "baseURL", "httpLoggingLevel", "maxTries", "sessionTimeout", "campaignTTL", "automaticSessionTracking", "automaticPushNotification", "pushIcon", "pushAccentColor", "pushChannelName", "pushChannelDescription", "pushChannelId", "pushNotificationImportance", "defaultProperties", "tokenTrackFrequency", "allowDefaultCustomerProperties", "advancedAuthEnabled", "inAppContentBlockPlaceholdersAutoLoad", "appInboxDetailImageInset", "allowWebViewCookies", "copy", "(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;Lcom/exponea/sdk/models/ExponeaConfiguration$HttpLoggingLevel;IDDZZLjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/util/HashMap;Lcom/exponea/sdk/models/ExponeaConfiguration$TokenFrequency;ZZLjava/util/List;Ljava/lang/Integer;Z)Lcom/exponea/sdk/models/ExponeaConfiguration;", "toString", "hashCode", ReasonData.TYPE_OTHER, "equals", "Ljava/lang/String;", "getProjectToken", "()Ljava/lang/String;", "setProjectToken", "(Ljava/lang/String;)V", "Ljava/util/Map;", "getProjectRouteMap", "()Ljava/util/Map;", "setProjectRouteMap", "(Ljava/util/Map;)V", "getAuthorization", "setAuthorization", "getBaseURL", "setBaseURL", "Lcom/exponea/sdk/models/ExponeaConfiguration$HttpLoggingLevel;", "getHttpLoggingLevel", "()Lcom/exponea/sdk/models/ExponeaConfiguration$HttpLoggingLevel;", "setHttpLoggingLevel", "(Lcom/exponea/sdk/models/ExponeaConfiguration$HttpLoggingLevel;)V", "I", "getMaxTries", "()I", "setMaxTries", "(I)V", "D", "getSessionTimeout", "()D", "setSessionTimeout", "(D)V", "getCampaignTTL", "setCampaignTTL", "Z", "getAutomaticSessionTracking", "()Z", "setAutomaticSessionTracking", "(Z)V", "getAutomaticPushNotification", "setAutomaticPushNotification", "Ljava/lang/Integer;", "getPushIcon", "setPushIcon", "(Ljava/lang/Integer;)V", "getPushAccentColor", "setPushAccentColor", "getPushChannelName", "setPushChannelName", "getPushChannelDescription", "setPushChannelDescription", "getPushChannelId", "setPushChannelId", "getPushNotificationImportance", "setPushNotificationImportance", "Ljava/util/HashMap;", "getDefaultProperties", "()Ljava/util/HashMap;", "setDefaultProperties", "(Ljava/util/HashMap;)V", "Lcom/exponea/sdk/models/ExponeaConfiguration$TokenFrequency;", "getTokenTrackFrequency", "()Lcom/exponea/sdk/models/ExponeaConfiguration$TokenFrequency;", "setTokenTrackFrequency", "(Lcom/exponea/sdk/models/ExponeaConfiguration$TokenFrequency;)V", "getAllowDefaultCustomerProperties", "setAllowDefaultCustomerProperties", "getAdvancedAuthEnabled", "setAdvancedAuthEnabled", "Ljava/util/List;", "getInAppContentBlockPlaceholdersAutoLoad", "()Ljava/util/List;", "setInAppContentBlockPlaceholdersAutoLoad", "(Ljava/util/List;)V", "getAppInboxDetailImageInset", "setAppInboxDetailImageInset", "getAllowWebViewCookies", "setAllowWebViewCookies", "<init>", "(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;Lcom/exponea/sdk/models/ExponeaConfiguration$HttpLoggingLevel;IDDZZLjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/util/HashMap;Lcom/exponea/sdk/models/ExponeaConfiguration$TokenFrequency;ZZLjava/util/List;Ljava/lang/Integer;Z)V", "Companion", "HttpLoggingLevel", "TokenFrequency", "sdk_release"}, k = 1, mv = {1, 7, 1})
public final class ExponeaConfiguration {
private boolean advancedAuthEnabled;
private boolean allowDefaultCustomerProperties;
private boolean allowWebViewCookies;
private Integer appInboxDetailImageInset;
private String authorization;
private boolean automaticPushNotification;
private boolean automaticSessionTracking;
@NotNull
private String baseURL;
private double campaignTTL;
@NotNull
private HashMap<String, Object> defaultProperties;
@NotNull
private HttpLoggingLevel httpLoggingLevel;
@NotNull
private List<String> inAppContentBlockPlaceholdersAutoLoad;
private int maxTries;
@NotNull
private Map<EventType, ? extends List<ExponeaProject>> projectRouteMap;
@NotNull
private String projectToken;
private Integer pushAccentColor;
@NotNull
private String pushChannelDescription;
@NotNull
private String pushChannelId;
@NotNull
private String pushChannelName;
private Integer pushIcon;
private int pushNotificationImportance;
private double sessionTimeout;
@NotNull
private TokenFrequency tokenTrackFrequency;
@NotNull
public static final Companion INSTANCE = new Companion(null);
@NotNull
private static final String TOKEN_AUTH_PREFIX = "Token ";
@NotNull
private static final String BASIC_AUTH_PREFIX = "Basic ";
@NotNull
private static final String BEARER_AUTH_PREFIX = "Bearer ";
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0007\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0086D¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0007\u001a\u00020\u0004X\u0086D¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0006R\u0014\u0010\t\u001a\u00020\u0004X\u0086D¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u0006¨\u0006\u000b"}, d2 = {"Lcom/exponea/sdk/models/ExponeaConfiguration$Companion;", "", "()V", "BASIC_AUTH_PREFIX", "", "getBASIC_AUTH_PREFIX", "()Ljava/lang/String;", "BEARER_AUTH_PREFIX", "getBEARER_AUTH_PREFIX", "TOKEN_AUTH_PREFIX", "getTOKEN_AUTH_PREFIX", "sdk_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public static final class Companion {
private Companion() {
}
public Companion(k kVar) {
this();
}
@NotNull
public final String getBASIC_AUTH_PREFIX() {
return ExponeaConfiguration.BASIC_AUTH_PREFIX;
}
@NotNull
public final String getBEARER_AUTH_PREFIX() {
return ExponeaConfiguration.BEARER_AUTH_PREFIX;
}
@NotNull
public final String getTOKEN_AUTH_PREFIX() {
return ExponeaConfiguration.TOKEN_AUTH_PREFIX;
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0006\b\u0086\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005j\u0002\b\u0006¨\u0006\u0007"}, d2 = {"Lcom/exponea/sdk/models/ExponeaConfiguration$HttpLoggingLevel;", "", "(Ljava/lang/String;I)V", "NONE", "BASIC", "HEADERS", "BODY", "sdk_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public enum HttpLoggingLevel {
NONE,
BASIC,
HEADERS,
BODY
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0005\b\u0086\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005¨\u0006\u0006"}, d2 = {"Lcom/exponea/sdk/models/ExponeaConfiguration$TokenFrequency;", "", "(Ljava/lang/String;I)V", "ON_TOKEN_CHANGE", "EVERY_LAUNCH", "DAILY", "sdk_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public enum TokenFrequency {
ON_TOKEN_CHANGE,
EVERY_LAUNCH,
DAILY
}
public ExponeaConfiguration() {
this(null, null, null, null, null, 0, 0.0d, 0.0d, false, false, null, null, null, null, null, 0, null, null, false, false, null, null, false, 8388607, null);
}
private final void validateBasicAuthValue(String str) {
boolean V;
boolean V2;
if (str != null) {
V2 = v.V(str, BASIC_AUTH_PREFIX, false, 2, null);
if (V2) {
throw new InvalidConfigurationException("Basic authentication is not supported by mobile SDK for security reasons.\nUse Token authentication instead.\nFor more details see https://documentation.bloomreach.com/engagement/reference/technical-information#public-api-access");
}
}
if (str != null) {
V = v.V(str, TOKEN_AUTH_PREFIX, false, 2, null);
if (!V) {
throw new InvalidConfigurationException("Use 'Token <access token>' as authorization for SDK.\nFor more details see https://documentation.bloomreach.com/engagement/reference/technical-information#public-api-access");
}
}
}
private final void validateProjectToken(String str) {
boolean I;
List J0;
List L0;
List M0;
I = v.I(str);
if (!I) {
J0 = c0.J0(new c('a', 'z'), new c('A', Matrix.MATRIX_TYPE_ZERO));
L0 = c0.L0(J0, new c('0', '9'));
M0 = c0.M0(L0, '-');
for (int i15 = 0; i15 < str.length(); i15++) {
if (!M0.contains(Character.valueOf(str.charAt(i15)))) {
throw new InvalidConfigurationException("Project token provided is not valid. Only alphanumeric symbols and dashes are allowed in project token.");
}
}
return;
}
throw new InvalidConfigurationException("Project token provided is not valid. Project token cannot be empty string.");
}
@NotNull
public final String getProjectToken() {
return this.projectToken;
}
public final boolean getAutomaticPushNotification() {
return this.automaticPushNotification;
}
public final Integer getPushIcon() {
return this.pushIcon;
}
public final Integer getPushAccentColor() {
return this.pushAccentColor;
}
@NotNull
public final String getPushChannelName() {
return this.pushChannelName;
}
@NotNull
public final String getPushChannelDescription() {
return this.pushChannelDescription;
}
@NotNull
public final String getPushChannelId() {
return this.pushChannelId;
}
public final int getPushNotificationImportance() {
return this.pushNotificationImportance;
}
@NotNull
public final HashMap<String, Object> component17() {
return this.defaultProperties;
}
@NotNull
public final TokenFrequency getTokenTrackFrequency() {
return this.tokenTrackFrequency;
}
public final boolean getAllowDefaultCustomerProperties() {
return this.allowDefaultCustomerProperties;
}
@NotNull
public final Map<EventType, List<ExponeaProject>> component2() {
return this.projectRouteMap;
}
public final boolean getAdvancedAuthEnabled() {
return this.advancedAuthEnabled;
}
@NotNull
public final List<String> component21() {
return this.inAppContentBlockPlaceholdersAutoLoad;
}
public final Integer getAppInboxDetailImageInset() {
return this.appInboxDetailImageInset;
}
public final boolean getAllowWebViewCookies() {
return this.allowWebViewCookies;
}
public final String getAuthorization() {
return this.authorization;
}
@NotNull
public final String getBaseURL() {
return this.baseURL;
}
@NotNull
public final HttpLoggingLevel getHttpLoggingLevel() {
return this.httpLoggingLevel;
}
public final int getMaxTries() {
return this.maxTries;
}
public final double getSessionTimeout() {
return this.sessionTimeout;
}
public final double getCampaignTTL() {
return this.campaignTTL;
}
public final boolean getAutomaticSessionTracking() {
return this.automaticSessionTracking;
}
@NotNull
public final ExponeaConfiguration copy(@NotNull String projectToken, @NotNull Map<EventType, ? extends List<ExponeaProject>> projectRouteMap, String authorization, @NotNull String baseURL, @NotNull HttpLoggingLevel httpLoggingLevel, int maxTries, double sessionTimeout, double campaignTTL, boolean automaticSessionTracking, boolean automaticPushNotification, Integer pushIcon, Integer pushAccentColor, @NotNull String pushChannelName, @NotNull String pushChannelDescription, @NotNull String pushChannelId, int pushNotificationImportance, @NotNull HashMap<String, Object> defaultProperties, @NotNull TokenFrequency tokenTrackFrequency, boolean allowDefaultCustomerProperties, boolean advancedAuthEnabled, @NotNull List<String> inAppContentBlockPlaceholdersAutoLoad, Integer appInboxDetailImageInset, boolean allowWebViewCookies) {
return new ExponeaConfiguration(projectToken, projectRouteMap, authorization, baseURL, httpLoggingLevel, maxTries, sessionTimeout, campaignTTL, automaticSessionTracking, automaticPushNotification, pushIcon, pushAccentColor, pushChannelName, pushChannelDescription, pushChannelId, pushNotificationImportance, defaultProperties, tokenTrackFrequency, allowDefaultCustomerProperties, advancedAuthEnabled, inAppContentBlockPlaceholdersAutoLoad, appInboxDetailImageInset, allowWebViewCookies);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ExponeaConfiguration)) {
return false;
}
ExponeaConfiguration exponeaConfiguration = (ExponeaConfiguration) other;
return Intrinsics.g(this.projectToken, exponeaConfiguration.projectToken) && Intrinsics.g(this.projectRouteMap, exponeaConfiguration.projectRouteMap) && Intrinsics.g(this.authorization, exponeaConfiguration.authorization) && Intrinsics.g(this.baseURL, exponeaConfiguration.baseURL) && this.httpLoggingLevel == exponeaConfiguration.httpLoggingLevel && this.maxTries == exponeaConfiguration.maxTries && Double.compare(this.sessionTimeout, exponeaConfiguration.sessionTimeout) == 0 && Double.compare(this.campaignTTL, exponeaConfiguration.campaignTTL) == 0 && this.automaticSessionTracking == exponeaConfiguration.automaticSessionTracking && this.automaticPushNotification == exponeaConfiguration.automaticPushNotification && Intrinsics.g(this.pushIcon, exponeaConfiguration.pushIcon) && Intrinsics.g(this.pushAccentColor, exponeaConfiguration.pushAccentColor) && Intrinsics.g(this.pushChannelName, exponeaConfiguration.pushChannelName) && Intrinsics.g(this.pushChannelDescription, exponeaConfiguration.pushChannelDescription) && Intrinsics.g(this.pushChannelId, exponeaConfiguration.pushChannelId) && this.pushNotificationImportance == exponeaConfiguration.pushNotificationImportance && Intrinsics.g(this.defaultProperties, exponeaConfiguration.defaultProperties) && this.tokenTrackFrequency == exponeaConfiguration.tokenTrackFrequency && this.allowDefaultCustomerProperties == exponeaConfiguration.allowDefaultCustomerProperties && this.advancedAuthEnabled == exponeaConfiguration.advancedAuthEnabled && Intrinsics.g(this.inAppContentBlockPlaceholdersAutoLoad, exponeaConfiguration.inAppContentBlockPlaceholdersAutoLoad) && Intrinsics.g(this.appInboxDetailImageInset, exponeaConfiguration.appInboxDetailImageInset) && this.allowWebViewCookies == exponeaConfiguration.allowWebViewCookies;
}
public final boolean getAdvancedAuthEnabled() {
return this.advancedAuthEnabled;
}
public final boolean getAllowDefaultCustomerProperties() {
return this.allowDefaultCustomerProperties;
}
public final boolean getAllowWebViewCookies() {
return this.allowWebViewCookies;
}
public final Integer getAppInboxDetailImageInset() {
return this.appInboxDetailImageInset;
}
public final String getAuthorization() {
return this.authorization;
}
public final boolean getAutomaticPushNotification() {
return this.automaticPushNotification;
}
public final boolean getAutomaticSessionTracking() {
return this.automaticSessionTracking;
}
@NotNull
public final String getBaseURL() {
return this.baseURL;
}
public final double getCampaignTTL() {
return this.campaignTTL;
}
@NotNull
public final HashMap<String, Object> getDefaultProperties() {
return this.defaultProperties;
}
@NotNull
public final HttpLoggingLevel getHttpLoggingLevel() {
return this.httpLoggingLevel;
}
@NotNull
public final List<String> getInAppContentBlockPlaceholdersAutoLoad() {
return this.inAppContentBlockPlaceholdersAutoLoad;
}
public final int getMaxTries() {
return this.maxTries;
}
@NotNull
public final Map<EventType, List<ExponeaProject>> getProjectRouteMap() {
return this.projectRouteMap;
}
@NotNull
public final String getProjectToken() {
return this.projectToken;
}
public final Integer getPushAccentColor() {
return this.pushAccentColor;
}
@NotNull
public final String getPushChannelDescription() {
return this.pushChannelDescription;
}
@NotNull
public final String getPushChannelId() {
return this.pushChannelId;
}
@NotNull
public final String getPushChannelName() {
return this.pushChannelName;
}
public final Integer getPushIcon() {
return this.pushIcon;
}
public final int getPushNotificationImportance() {
return this.pushNotificationImportance;
}
public final double getSessionTimeout() {
return this.sessionTimeout;
}
@NotNull
public final TokenFrequency getTokenTrackFrequency() {
return this.tokenTrackFrequency;
}
public int hashCode() {
int hashCode = ((this.projectToken.hashCode() * 31) + this.projectRouteMap.hashCode()) * 31;
String str = this.authorization;
int hashCode2 = (((((((((((hashCode + (str == null ? 0 : str.hashCode())) * 31) + this.baseURL.hashCode()) * 31) + this.httpLoggingLevel.hashCode()) * 31) + Integer.hashCode(this.maxTries)) * 31) + Double.hashCode(this.sessionTimeout)) * 31) + Double.hashCode(this.campaignTTL)) * 31;
boolean z15 = this.automaticSessionTracking;
int i15 = z15;
if (z15 != 0) {
i15 = 1;
}
int i16 = (hashCode2 + i15) * 31;
boolean z16 = this.automaticPushNotification;
int i17 = z16;
if (z16 != 0) {
i17 = 1;
}
int i18 = (i16 + i17) * 31;
Integer num = this.pushIcon;
int hashCode3 = (i18 + (num == null ? 0 : num.hashCode())) * 31;
Integer num2 = this.pushAccentColor;
int hashCode4 = (((((((((((((hashCode3 + (num2 == null ? 0 : num2.hashCode())) * 31) + this.pushChannelName.hashCode()) * 31) + this.pushChannelDescription.hashCode()) * 31) + this.pushChannelId.hashCode()) * 31) + Integer.hashCode(this.pushNotificationImportance)) * 31) + this.defaultProperties.hashCode()) * 31) + this.tokenTrackFrequency.hashCode()) * 31;
boolean z17 = this.allowDefaultCustomerProperties;
int i19 = z17;
if (z17 != 0) {
i19 = 1;
}
int i25 = (hashCode4 + i19) * 31;
boolean z18 = this.advancedAuthEnabled;
int i26 = z18;
if (z18 != 0) {
i26 = 1;
}
int hashCode5 = (((i25 + i26) * 31) + this.inAppContentBlockPlaceholdersAutoLoad.hashCode()) * 31;
Integer num3 = this.appInboxDetailImageInset;
int hashCode6 = (hashCode5 + (num3 != null ? num3.hashCode() : 0)) * 31;
boolean z19 = this.allowWebViewCookies;
return hashCode6 + (z19 ? 1 : z19 ? 1 : 0);
}
public final void setAdvancedAuthEnabled(boolean z15) {
this.advancedAuthEnabled = z15;
}
public final void setAllowDefaultCustomerProperties(boolean z15) {
this.allowDefaultCustomerProperties = z15;
}
public final void setAllowWebViewCookies(boolean z15) {
this.allowWebViewCookies = z15;
}
public final void setAppInboxDetailImageInset(Integer num) {
this.appInboxDetailImageInset = num;
}
public final void setAuthorization(String str) {
this.authorization = str;
}
public final void setAutomaticPushNotification(boolean z15) {
this.automaticPushNotification = z15;
}
public final void setAutomaticSessionTracking(boolean z15) {
this.automaticSessionTracking = z15;
}
public final void setBaseURL(@NotNull String str) {
this.baseURL = str;
}
public final void setCampaignTTL(double d15) {
this.campaignTTL = d15;
}
public final void setDefaultProperties(@NotNull HashMap<String, Object> hashMap) {
this.defaultProperties = hashMap;
}
public final void setHttpLoggingLevel(@NotNull HttpLoggingLevel httpLoggingLevel) {
this.httpLoggingLevel = httpLoggingLevel;
}
public final void setInAppContentBlockPlaceholdersAutoLoad(@NotNull List<String> list) {
this.inAppContentBlockPlaceholdersAutoLoad = list;
}
public final void setMaxTries(int i15) {
this.maxTries = i15;
}
public final void setProjectRouteMap(@NotNull Map<EventType, ? extends List<ExponeaProject>> map) {
this.projectRouteMap = map;
}
public final void setProjectToken(@NotNull String str) {
this.projectToken = str;
}
public final void setPushAccentColor(Integer num) {
this.pushAccentColor = num;
}
public final void setPushChannelDescription(@NotNull String str) {
this.pushChannelDescription = str;
}
public final void setPushChannelId(@NotNull String str) {
this.pushChannelId = str;
}
public final void setPushChannelName(@NotNull String str) {
this.pushChannelName = str;
}
public final void setPushIcon(Integer num) {
this.pushIcon = num;
}
public final void setPushNotificationImportance(int i15) {
this.pushNotificationImportance = i15;
}
public final void setSessionTimeout(double d15) {
this.sessionTimeout = d15;
}
public final void setTokenTrackFrequency(@NotNull TokenFrequency tokenFrequency) {
this.tokenTrackFrequency = tokenFrequency;
}
@NotNull
public String toString() {
return "ExponeaConfiguration(projectToken=" + this.projectToken + ", projectRouteMap=" + this.projectRouteMap + ", authorization=" + this.authorization + ", baseURL=" + this.baseURL + ", httpLoggingLevel=" + this.httpLoggingLevel + ", maxTries=" + this.maxTries + ", sessionTimeout=" + this.sessionTimeout + ", campaignTTL=" + this.campaignTTL + ", automaticSessionTracking=" + this.automaticSessionTracking + ", automaticPushNotification=" + this.automaticPushNotification + ", pushIcon=" + this.pushIcon + ", pushAccentColor=" + this.pushAccentColor + ", pushChannelName=" + this.pushChannelName + ", pushChannelDescription=" + this.pushChannelDescription + ", pushChannelId=" + this.pushChannelId + ", pushNotificationImportance=" + this.pushNotificationImportance + ", defaultProperties=" + this.defaultProperties + ", tokenTrackFrequency=" + this.tokenTrackFrequency + ", allowDefaultCustomerProperties=" + this.allowDefaultCustomerProperties + ", advancedAuthEnabled=" + this.advancedAuthEnabled + ", inAppContentBlockPlaceholdersAutoLoad=" + this.inAppContentBlockPlaceholdersAutoLoad + ", appInboxDetailImageInset=" + this.appInboxDetailImageInset + ", allowWebViewCookies=" + this.allowWebViewCookies + ')';
}
public final void validate() {
String g15;
validateProjectToken(this.projectToken);
for (Map.Entry<EventType, ? extends List<ExponeaProject>> entry : this.projectRouteMap.entrySet()) {
EventType key = entry.getKey();
Iterator<T> it = entry.getValue().iterator();
while (it.hasNext()) {
try {
validateProjectToken(((ExponeaProject) it.next()).getProjectToken());
} catch (Exception e15) {
g15 = o.g("\n Project mapping for event type " + key + " is not valid. " + e15.getLocalizedMessage() + "\n ");
throw new InvalidConfigurationException(g15);
}
}
}
validateBasicAuthValue(this.authorization);
}
public ExponeaConfiguration(@NotNull String str, @NotNull Map<EventType, ? extends List<ExponeaProject>> map, String str2, @NotNull String str3, @NotNull HttpLoggingLevel httpLoggingLevel, int i15, double d15, double d16, boolean z15, boolean z16, Integer num, Integer num2, @NotNull String str4, @NotNull String str5, @NotNull String str6, int i16, @NotNull HashMap<String, Object> hashMap, @NotNull TokenFrequency tokenFrequency, boolean z17, boolean z18, @NotNull List<String> list, Integer num3, boolean z19) {
this.projectToken = str;
this.projectRouteMap = map;
this.authorization = str2;
this.baseURL = str3;
this.httpLoggingLevel = httpLoggingLevel;
this.maxTries = i15;
this.sessionTimeout = d15;
this.campaignTTL = d16;
this.automaticSessionTracking = z15;
this.automaticPushNotification = z16;
this.pushIcon = num;
this.pushAccentColor = num2;
this.pushChannelName = str4;
this.pushChannelDescription = str5;
this.pushChannelId = str6;
this.pushNotificationImportance = i16;
this.defaultProperties = hashMap;
this.tokenTrackFrequency = tokenFrequency;
this.allowDefaultCustomerProperties = z17;
this.advancedAuthEnabled = z18;
this.inAppContentBlockPlaceholdersAutoLoad = list;
this.appInboxDetailImageInset = num3;
this.allowWebViewCookies = z19;
}
public ExponeaConfiguration(String str, Map map, String str2, String str3, HttpLoggingLevel httpLoggingLevel, int i15, double d15, double d16, boolean z15, boolean z16, Integer num, Integer num2, String str4, String str5, String str6, int i16, HashMap hashMap, TokenFrequency tokenFrequency, boolean z17, boolean z18, List list, Integer num3, boolean z19, int i17, k kVar) {
this((i17 & 1) != 0 ? "" : str, (i17 & 2) != 0 ? u0.j() : map, (i17 & 4) != 0 ? null : str2, (i17 & 8) != 0 ? Constants.Repository.INSTANCE.getBaseURL() : str3, (i17 & 16) != 0 ? HttpLoggingLevel.BODY : httpLoggingLevel, (i17 & 32) != 0 ? 10 : i15, (i17 & 64) != 0 ? 20.0d : d15, (i17 & 128) != 0 ? 10.0d : d16, (i17 & 256) != 0 ? true : z15, (i17 & 512) != 0 ? true : z16, (i17 & 1024) != 0 ? null : num, (i17 & 2048) != 0 ? null : num2, (i17 & 4096) != 0 ? "Exponea" : str4, (i17 & 8192) != 0 ? "Notifications" : str5, (i17 & 16384) != 0 ? "0" : str6, (i17 & 32768) != 0 ? 3 : i16, (i17 & 65536) != 0 ? new HashMap() : hashMap, (i17 & 131072) != 0 ? TokenFrequency.ON_TOKEN_CHANGE : tokenFrequency, (i17 & 262144) != 0 ? true : z17, (i17 & 524288) != 0 ? false : z18, (i17 & PKIFailureInfo.badCertTemplate) != 0 ? u.k() : list, (i17 & PKIFailureInfo.badSenderNonce) != 0 ? null : num3, (i17 & 4194304) == 0 ? z19 : false);
}
}