EMMA v1.26.1版本的 MD5 值为:9dfbdbfb0c69a58d83736bb8daf25d47
以下内容为反编译后的 MarketingCloudConfig.java 源代码,内容仅作参考
package com.salesforce.marketingcloud;
import android.content.Context;
import android.text.TextUtils;
import android.webkit.URLUtil;
import com.aktivolabs.aktivocore.utils.contants.Constants;
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
import com.google.android.gms.fitness.FitnessActivities;
import com.salesforce.marketingcloud.MarketingCloudSdk;
import com.salesforce.marketingcloud.notifications.NotificationCustomizationOptions;
import com.salesforce.marketingcloud.proximity.ProximityNotificationCustomizationOptions;
import com.salesforce.marketingcloud.sfmcsdk.SFMCSdkComponents;
import com.salesforce.marketingcloud.sfmcsdk.modules.ModuleReadyListener;
import com.salesforce.marketingcloud.sfmcsdk.modules.push.PushModuleConfig;
import java.util.Locale;
import kotlin.Deprecated;
import kotlin.DeprecationLevel;
import kotlin.Metadata;
import kotlin.ReplaceWith;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.text.Regex;
import kotlin.text.StringsKt;
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b(\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0087\b\u0018\u0000 Z2\u00020\u0001:\u0002YZB§\u0001\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t\u0012\u0006\u0010\u000b\u001a\u00020\t\u0012\u0006\u0010\f\u001a\u00020\t\u0012\u0006\u0010\r\u001a\u00020\t\u0012\u0006\u0010\u000e\u001a\u00020\t\u0012\u0006\u0010\u000f\u001a\u00020\t\u0012\u0006\u0010\u0010\u001a\u00020\t\u0012\u0006\u0010\u0011\u001a\u00020\u0012\u0012\b\u0010\u0013\u001a\u0004\u0018\u00010\u0014\u0012\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016\u0012\u0006\u0010\u0017\u001a\u00020\u0003\u0012\u0006\u0010\u0018\u001a\u00020\u0003\u0012\u0006\u0010\u0019\u001a\u00020\u0003¢\u0006\u0002\u0010\u001aJ\r\u0010\u0004\u001a\u00020\u0003H\u0007¢\u0006\u0002\b J\r\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0002\b!J\u0015\u0010\"\u001a\u00020\t2\u0006\u0010#\u001a\u00020\u0000H\u0001¢\u0006\u0002\b$J\r\u0010\u0002\u001a\u00020\u0003H\u0007¢\u0006\u0002\b%J\t\u0010&\u001a\u00020\u0003HÆ\u0003J\t\u0010'\u001a\u00020\tHÆ\u0003J\t\u0010(\u001a\u00020\tHÆ\u0003J\t\u0010)\u001a\u00020\tHÆ\u0003J\t\u0010*\u001a\u00020\tHÆ\u0003J\t\u0010+\u001a\u00020\u0012HÆ\u0003J\u000b\u0010,\u001a\u0004\u0018\u00010\u0014HÆ\u0003J\u000b\u0010-\u001a\u0004\u0018\u00010\u0016HÆ\u0003J\u000e\u0010.\u001a\u00020\u0003HÀ\u0003¢\u0006\u0002\b/J\u000e\u00100\u001a\u00020\u0003HÀ\u0003¢\u0006\u0002\b1J\u000e\u00102\u001a\u00020\u0003HÀ\u0003¢\u0006\u0002\b3J\t\u00104\u001a\u00020\u0003HÆ\u0003J\u000b\u00105\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u00106\u001a\u00020\u0003HÆ\u0003J\u000b\u00107\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u00108\u001a\u00020\tHÆ\u0003J\t\u00109\u001a\u00020\tHÆ\u0003J\t\u0010:\u001a\u00020\tHÆ\u0003J\t\u0010;\u001a\u00020\tHÆ\u0003JÏ\u0001\u0010<\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0006\u001a\u00020\u00032\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\b\u001a\u00020\t2\b\b\u0002\u0010\n\u001a\u00020\t2\b\b\u0002\u0010\u000b\u001a\u00020\t2\b\b\u0002\u0010\f\u001a\u00020\t2\b\b\u0002\u0010\r\u001a\u00020\t2\b\b\u0002\u0010\u000e\u001a\u00020\t2\b\b\u0002\u0010\u000f\u001a\u00020\t2\b\b\u0002\u0010\u0010\u001a\u00020\t2\b\b\u0002\u0010\u0011\u001a\u00020\u00122\n\b\u0002\u0010\u0013\u001a\u0004\u0018\u00010\u00142\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00162\b\b\u0002\u0010\u0017\u001a\u00020\u00032\b\b\u0002\u0010\u0018\u001a\u00020\u00032\b\b\u0002\u0010\u0019\u001a\u00020\u0003HÆ\u0001J\r\u0010\u000f\u001a\u00020\tH\u0007¢\u0006\u0002\b=J\u0013\u0010>\u001a\u00020\t2\b\u0010#\u001a\u0004\u0018\u00010?HÖ\u0003J\r\u0010\n\u001a\u00020\tH\u0007¢\u0006\u0002\b@J\t\u0010A\u001a\u00020BHÖ\u0001J\r\u0010\u000b\u001a\u00020\tH\u0007¢\u0006\u0002\bCJ \u0010D\u001a\u00020E2\u0006\u0010F\u001a\u00020G2\u0006\u0010H\u001a\u00020I2\u0006\u0010J\u001a\u00020KH\u0016J\r\u0010\u000e\u001a\u00020\tH\u0007¢\u0006\u0002\bLJ\r\u0010\u0006\u001a\u00020\u0003H\u0007¢\u0006\u0002\bMJ\u000f\u0010\u0007\u001a\u0004\u0018\u00010\u0003H\u0007¢\u0006\u0002\bNJ\r\u0010\u0011\u001a\u00020\u0012H\u0007¢\u0006\u0002\bOJ\r\u0010\f\u001a\u00020\tH\u0007¢\u0006\u0002\bPJ\r\u0010\r\u001a\u00020\tH\u0007¢\u0006\u0002\bQJ\u000f\u0010\u0013\u001a\u0004\u0018\u00010\u0014H\u0007¢\u0006\u0002\bRJ\u000f\u0010\u0005\u001a\u0004\u0018\u00010\u0003H\u0007¢\u0006\u0002\bSJ\u0006\u0010T\u001a\u00020UJ\t\u0010V\u001a\u00020\u0003HÖ\u0001J\u000f\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0007¢\u0006\u0002\bWJ\r\u0010\u0010\u001a\u00020\tH\u0007¢\u0006\u0002\bXR\u0013\u0010\u0004\u001a\u00020\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\u001bR\u0013\u0010\b\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u001cR\u0016\u0010\u0017\u001a\u00020\u00038\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u001bR\u0016\u0010\u0018\u001a\u00020\u00038\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u001bR\u0013\u0010\u0002\u001a\u00020\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u001bR\u0013\u0010\u000f\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u001cR\u0013\u0010\n\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u001cR\u0013\u0010\u000b\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\u001cR\u0013\u0010\u000e\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u001cR\u0013\u0010\u0006\u001a\u00020\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u001bR\u0015\u0010\u0007\u001a\u0004\u0018\u00010\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\u001bR\u0013\u0010\u0011\u001a\u00020\u00128\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u001dR\u0013\u0010\f\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\u001cR\u0016\u0010\u0019\u001a\u00020\u00038\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001bR\u0013\u0010\r\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u001cR\u0015\u0010\u0013\u001a\u0004\u0018\u00010\u00148\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u001eR\u0015\u0010\u0005\u001a\u0004\u0018\u00010\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u001bR\u0015\u0010\u0015\u001a\u0004\u0018\u00010\u00168\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u001fR\u0013\u0010\u0010\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u001c¨\u0006["}, d2 = {"Lcom/salesforce/marketingcloud/MarketingCloudConfig;", "Lcom/salesforce/marketingcloud/sfmcsdk/modules/push/PushModuleConfig;", "applicationId", "", "accessToken", "senderId", "marketingCloudServerUrl", "mid", "analyticsEnabled", "", "geofencingEnabled", "inboxEnabled", "piAnalyticsEnabled", "proximityEnabled", "markMessageReadOnInboxNotificationOpen", "delayRegistrationUntilContactKeyIsSet", "useLegacyPiIdentifier", "notificationCustomizationOptions", "Lcom/salesforce/marketingcloud/notifications/NotificationCustomizationOptions;", "proximityNotificationCustomizationOptions", "Lcom/salesforce/marketingcloud/proximity/ProximityNotificationCustomizationOptions;", "urlHandler", "Lcom/salesforce/marketingcloud/UrlHandler;", Constants.KEY_APP_PACKAGE_NAME, "appVersionName", "predictiveIntelligenceServerUrl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZZZLcom/salesforce/marketingcloud/notifications/NotificationCustomizationOptions;Lcom/salesforce/marketingcloud/proximity/ProximityNotificationCustomizationOptions;Lcom/salesforce/marketingcloud/UrlHandler;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "()Ljava/lang/String;", "()Z", "()Lcom/salesforce/marketingcloud/notifications/NotificationCustomizationOptions;", "()Lcom/salesforce/marketingcloud/proximity/ProximityNotificationCustomizationOptions;", "()Lcom/salesforce/marketingcloud/UrlHandler;", "-deprecated_accessToken", "-deprecated_analyticsEnabled", "applicationChanged", FitnessActivities.OTHER, "-applicationChanged", "-deprecated_applicationId", "component1", "component10", "component11", "component12", "component13", "component14", "component15", "component16", "component17", "component17$sdk_release", "component18", "component18$sdk_release", "component19", "component19$sdk_release", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "-deprecated_delayRegistrationUntilContactKeyIsSet", "equals", "", "-deprecated_geofencingEnabled", "hashCode", "", "-deprecated_inboxEnabled", "init", "", "context", "Landroid/content/Context;", "components", "Lcom/salesforce/marketingcloud/sfmcsdk/SFMCSdkComponents;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "Lcom/salesforce/marketingcloud/sfmcsdk/modules/ModuleReadyListener;", "-deprecated_markMessageReadOnInboxNotificationOpen", "-deprecated_marketingCloudServerUrl", "-deprecated_mid", "-deprecated_notificationCustomizationOptions", "-deprecated_piAnalyticsEnabled", "-deprecated_proximityEnabled", "-deprecated_proximityNotificationCustomizationOptions", "-deprecated_senderId", "toBuilder", "Lcom/salesforce/marketingcloud/MarketingCloudConfig$Builder;", "toString", "-deprecated_urlHandler", "-deprecated_useLegacyPiIdentifier", "Builder", "Companion", "sdk_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class MarketingCloudConfig extends PushModuleConfig {
public static final Companion INSTANCE = new Companion(null);
private static final String TAG = g.a("MarketingCloudConfig");
private final String accessToken;
private final boolean analyticsEnabled;
private final String appPackageName;
private final String appVersionName;
private final String applicationId;
private final boolean delayRegistrationUntilContactKeyIsSet;
private final boolean geofencingEnabled;
private final boolean inboxEnabled;
private final boolean markMessageReadOnInboxNotificationOpen;
private final String marketingCloudServerUrl;
private final String mid;
private final NotificationCustomizationOptions notificationCustomizationOptions;
private final boolean piAnalyticsEnabled;
private final String predictiveIntelligenceServerUrl;
private final boolean proximityEnabled;
private final ProximityNotificationCustomizationOptions proximityNotificationCustomizationOptions;
private final String senderId;
private final UrlHandler urlHandler;
private final boolean useLegacyPiIdentifier;
@Metadata(bv = {}, d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\u000b\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0013\b\u0007\u0018\u0000 B2\u00020\u0001:\u0001CB\t\b\u0010¢\u0006\u0004\b>\u0010?B\u0011\b\u0010\u0012\u0006\u0010@\u001a\u000201¢\u0006\u0004\b>\u0010AJ#\u0010\u0006\u001a\u0004\u0018\u00010\u00022\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00010\u0004H\u0082\bJ!\u0010\u0007\u001a\u00020\u00022\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00010\u0004H\u0082\bJ\u000e\u0010\t\u001a\u00020\u00002\u0006\u0010\b\u001a\u00020\u0002J\u000e\u0010\u000b\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\u0002J\u000e\u0010\r\u001a\u00020\u00002\u0006\u0010\f\u001a\u00020\u0002J\u000e\u0010\u000f\u001a\u00020\u00002\u0006\u0010\u000e\u001a\u00020\u0002J\u000e\u0010\u0011\u001a\u00020\u00002\u0006\u0010\u0010\u001a\u00020\u0002J\u000e\u0010\u0014\u001a\u00020\u00002\u0006\u0010\u0013\u001a\u00020\u0012J\u000e\u0010\u0016\u001a\u00020\u00002\u0006\u0010\u0015\u001a\u00020\u0012J\u000e\u0010\u0018\u001a\u00020\u00002\u0006\u0010\u0017\u001a\u00020\u0012J\u000e\u0010\u001a\u001a\u00020\u00002\u0006\u0010\u0019\u001a\u00020\u0012J\u000e\u0010\u001c\u001a\u00020\u00002\u0006\u0010\u001b\u001a\u00020\u0012J\u000e\u0010\u001f\u001a\u00020\u00002\u0006\u0010\u001e\u001a\u00020\u001dJ\u000e\u0010\"\u001a\u00020\u00002\u0006\u0010!\u001a\u00020 J\u000e\u0010$\u001a\u00020\u00002\u0006\u0010\u001e\u001a\u00020#J\u000e\u0010&\u001a\u00020\u00002\u0006\u0010%\u001a\u00020\u0012J\u000e\u0010(\u001a\u00020\u00002\u0006\u0010'\u001a\u00020\u0012J\u000e\u0010*\u001a\u00020\u00002\u0006\u0010)\u001a\u00020\u0012J\u0017\u0010.\u001a\u00020\u00002\u0006\u0010+\u001a\u00020\u0002H\u0007¢\u0006\u0004\b,\u0010-J\u000e\u00102\u001a\u0002012\u0006\u00100\u001a\u00020/R\u0018\u0010\b\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\b\u00103R\u0018\u0010\n\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\n\u00103R\u0018\u0010\f\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\f\u00103R\u0018\u0010\u000e\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000e\u00103R\u0018\u0010\u0010\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0010\u00103R\u0016\u0010\u0013\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0013\u00104R\u0016\u00105\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b5\u00104R\u0016\u0010\u0017\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0017\u00104R\u0016\u0010\u0019\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0019\u00104R\u0016\u0010\u001b\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001b\u00104R\u0016\u00106\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b6\u00104R\u0016\u00107\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b7\u00104R\u0016\u0010%\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b%\u00104R\u0018\u00108\u001a\u0004\u0018\u00010#8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b8\u00109R\u0018\u0010:\u001a\u0004\u0018\u00010\u001d8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b:\u0010;R\u0018\u0010!\u001a\u0004\u0018\u00010 8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b!\u0010<R\u0016\u0010=\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b=\u00103¨\u0006D"}, d2 = {"Lcom/salesforce/marketingcloud/MarketingCloudConfig$Builder;", "", "", "value", "Lkotlin/Function0;", "lazyMessage", "checkNotEmpty", "checkNotNullOrEmpty", "applicationId", "setApplicationId", "accessToken", "setAccessToken", "senderId", "setSenderId", "marketingCloudServerUrl", "setMarketingCloudServerUrl", "mid", "setMid", "", "analyticsEnabled", "setAnalyticsEnabled", "geofenceEnabled", "setGeofencingEnabled", "inboxEnabled", "setInboxEnabled", "piAnalyticsEnabled", "setPiAnalyticsEnabled", "proximityEnabled", "setProximityEnabled", "Lcom/salesforce/marketingcloud/proximity/ProximityNotificationCustomizationOptions;", "options", "setProximityNotificationOptions", "Lcom/salesforce/marketingcloud/UrlHandler;", "urlHandler", "setUrlHandler", "Lcom/salesforce/marketingcloud/notifications/NotificationCustomizationOptions;", "setNotificationCustomizationOptions", "useLegacyPiIdentifier", "setUseLegacyPiIdentifier", "markRead", "setMarkMessageReadOnInboxNotificationOpen", "delay", "setDelayRegistrationUntilContactKeyIsSet", "url", "-setPredictiveIntelligenceServerUrl", "(Ljava/lang/String;)Lcom/salesforce/marketingcloud/MarketingCloudConfig$Builder;", "setPredictiveIntelligenceServerUrl", "Landroid/content/Context;", "context", "Lcom/salesforce/marketingcloud/MarketingCloudConfig;", "build", "Ljava/lang/String;", "Z", "geofencingEnabled", "markMessageReadOnInboxNotificationOpen", "delayRegistrationUntilContactKeyIsSet", "notificationCustomizationOptions", "Lcom/salesforce/marketingcloud/notifications/NotificationCustomizationOptions;", "proximityNotificationCustomizationOptions", "Lcom/salesforce/marketingcloud/proximity/ProximityNotificationCustomizationOptions;", "Lcom/salesforce/marketingcloud/UrlHandler;", "predictiveIntelligenceServerUrl", "<init>", "()V", "config", "(Lcom/salesforce/marketingcloud/MarketingCloudConfig;)V", "Companion", "a", "sdk_release"}, k = 1, mv = {1, 6, 0})
public static final class Builder {
private static final int ACCESS_TOKEN_LENGTH = 24;
private static final String INITIAL_PI_VALUE = "";
private static final String TSE_ERROR_MSG = "An App Endpoint (the Marketing Cloud Server URL) is required in order to configure the SDK. See http://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android for more information.";
private String accessToken;
private boolean analyticsEnabled;
private String applicationId;
private boolean delayRegistrationUntilContactKeyIsSet;
private boolean geofencingEnabled;
private boolean inboxEnabled;
private boolean markMessageReadOnInboxNotificationOpen;
private String marketingCloudServerUrl;
private String mid;
private NotificationCustomizationOptions notificationCustomizationOptions;
private boolean piAnalyticsEnabled;
private String predictiveIntelligenceServerUrl;
private boolean proximityEnabled;
private ProximityNotificationCustomizationOptions proximityNotificationCustomizationOptions;
private String senderId;
private UrlHandler urlHandler;
private boolean useLegacyPiIdentifier;
private static final Regex APP_ID_REGEX = new Regex("[0-9a-f]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}");
public Builder() {
this.markMessageReadOnInboxNotificationOpen = true;
this.useLegacyPiIdentifier = true;
this.predictiveIntelligenceServerUrl = "";
}
public Builder(MarketingCloudConfig config) {
Intrinsics.checkNotNullParameter(config, "config");
this.markMessageReadOnInboxNotificationOpen = true;
this.useLegacyPiIdentifier = true;
this.applicationId = config.applicationId();
this.accessToken = config.accessToken();
this.senderId = config.senderId();
this.marketingCloudServerUrl = config.marketingCloudServerUrl();
this.mid = config.mid();
this.analyticsEnabled = config.analyticsEnabled();
this.geofencingEnabled = config.geofencingEnabled();
this.inboxEnabled = config.inboxEnabled();
this.piAnalyticsEnabled = config.piAnalyticsEnabled();
this.proximityEnabled = config.proximityEnabled();
this.markMessageReadOnInboxNotificationOpen = config.markMessageReadOnInboxNotificationOpen();
this.delayRegistrationUntilContactKeyIsSet = config.delayRegistrationUntilContactKeyIsSet();
this.useLegacyPiIdentifier = config.useLegacyPiIdentifier();
this.notificationCustomizationOptions = config.notificationCustomizationOptions();
this.proximityNotificationCustomizationOptions = config.proximityNotificationCustomizationOptions();
this.urlHandler = config.urlHandler();
this.predictiveIntelligenceServerUrl = config.predictiveIntelligenceServerUrl();
}
private final String checkNotEmpty(String value, Function0<? extends Object> lazyMessage) {
if (value == null || TextUtils.getTrimmedLength(value) != 0) {
return value;
}
throw new IllegalStateException(lazyMessage.invoke().toString());
}
private final String checkNotNullOrEmpty(String value, Function0<? extends Object> lazyMessage) {
if (value == null || TextUtils.getTrimmedLength(value) == 0) {
throw new IllegalStateException(lazyMessage.invoke().toString());
}
return value;
}
public final Builder m1096setPredictiveIntelligenceServerUrl(String url) {
Intrinsics.checkNotNullParameter(url, "url");
this.predictiveIntelligenceServerUrl = url;
return this;
}
public final MarketingCloudConfig build(Context context) {
String str;
String str2;
String str3;
String str4;
Intrinsics.checkNotNullParameter(context, "context");
String packageName = context.getPackageName();
try {
str4 = context.getPackageManager().getPackageInfo(packageName, 0).versionName;
} catch (Exception unused) {
}
if (str4 != null) {
str = str4;
str2 = this.applicationId;
if (str2 != null) {
throw new IllegalStateException("applicationId == null".toString());
}
Locale ENGLISH = Locale.ENGLISH;
Intrinsics.checkNotNullExpressionValue(ENGLISH, "ENGLISH");
String lowerCase = str2.toLowerCase(ENGLISH);
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(locale)");
if (!APP_ID_REGEX.matches(lowerCase)) {
throw new IllegalArgumentException("The applicationId is not a valid UUID.".toString());
}
String str5 = this.accessToken;
if (str5 == null) {
throw new IllegalStateException("accessToken == null".toString());
}
if (!(str5.length() == 24)) {
throw new IllegalArgumentException("The accessToken must be 24 characters.".toString());
}
String str6 = this.marketingCloudServerUrl;
if (str6 == null || TextUtils.getTrimmedLength(str6) == 0) {
throw new IllegalStateException(TSE_ERROR_MSG.toString());
}
if (!URLUtil.isNetworkUrl(str6)) {
throw new IllegalArgumentException(TSE_ERROR_MSG.toString());
}
if (Intrinsics.areEqual(this.predictiveIntelligenceServerUrl, "")) {
String str7 = this.mid;
if (str7 != null) {
Intrinsics.checkNotNullExpressionValue(ENGLISH, "ENGLISH");
String lowerCase2 = str7.toLowerCase(ENGLISH);
Intrinsics.checkNotNullExpressionValue(lowerCase2, "this as java.lang.String).toLowerCase(locale)");
int indexOf$default = StringsKt.indexOf$default((CharSequence) lowerCase2, "-", 0, false, 6, (Object) null);
this.mid = indexOf$default != -1 ? str7.subSequence(0, indexOf$default).toString() : str7;
str3 = "https://" + str7 + ".collect.igodigital.com/c2/" + this.mid + "/process_batch.json";
}
str3 = "https://app.igodigital.com/api/v1/collect/process_batch";
this.predictiveIntelligenceServerUrl = str3;
}
String str8 = this.senderId;
if (str8 != null && TextUtils.getTrimmedLength(str8) == 0) {
throw new IllegalStateException("The senderId cannot be empty.".toString());
}
String str9 = this.mid;
if (str9 != null && TextUtils.getTrimmedLength(str9) == 0) {
throw new IllegalStateException("MID must not be empty.".toString());
}
boolean z = this.analyticsEnabled;
boolean z2 = this.geofencingEnabled;
boolean z3 = this.inboxEnabled;
boolean z4 = this.piAnalyticsEnabled;
boolean z5 = this.proximityEnabled;
boolean z6 = this.markMessageReadOnInboxNotificationOpen;
boolean z7 = this.delayRegistrationUntilContactKeyIsSet;
boolean z8 = this.useLegacyPiIdentifier;
NotificationCustomizationOptions notificationCustomizationOptions = this.notificationCustomizationOptions;
if (notificationCustomizationOptions == null) {
throw new IllegalStateException("notificationCustomizationOptions == null".toString());
}
UrlHandler urlHandler = this.urlHandler;
String str10 = this.predictiveIntelligenceServerUrl;
ProximityNotificationCustomizationOptions proximityNotificationCustomizationOptions = this.proximityNotificationCustomizationOptions;
Intrinsics.checkNotNullExpressionValue(packageName, "packageName");
return new MarketingCloudConfig(str2, str5, str8, str6, str9, z, z2, z3, z4, z5, z6, z7, z8, notificationCustomizationOptions, proximityNotificationCustomizationOptions, urlHandler, packageName, str, str10);
}
str = "null";
str2 = this.applicationId;
if (str2 != null) {
}
}
public final Builder setAccessToken(String accessToken) {
Intrinsics.checkNotNullParameter(accessToken, "accessToken");
this.accessToken = accessToken;
return this;
}
public final Builder setAnalyticsEnabled(boolean analyticsEnabled) {
this.analyticsEnabled = analyticsEnabled;
return this;
}
public final Builder setApplicationId(String applicationId) {
Intrinsics.checkNotNullParameter(applicationId, "applicationId");
this.applicationId = applicationId;
return this;
}
public final Builder setDelayRegistrationUntilContactKeyIsSet(boolean delay) {
this.delayRegistrationUntilContactKeyIsSet = delay;
return this;
}
public final Builder setGeofencingEnabled(boolean geofenceEnabled) {
this.geofencingEnabled = geofenceEnabled;
return this;
}
public final Builder setInboxEnabled(boolean inboxEnabled) {
this.inboxEnabled = inboxEnabled;
return this;
}
public final Builder setMarkMessageReadOnInboxNotificationOpen(boolean markRead) {
this.markMessageReadOnInboxNotificationOpen = markRead;
return this;
}
public final Builder setMarketingCloudServerUrl(String marketingCloudServerUrl) {
Intrinsics.checkNotNullParameter(marketingCloudServerUrl, "marketingCloudServerUrl");
this.marketingCloudServerUrl = marketingCloudServerUrl;
return this;
}
public final Builder setMid(String mid) {
Intrinsics.checkNotNullParameter(mid, "mid");
this.mid = mid;
return this;
}
public final Builder setNotificationCustomizationOptions(NotificationCustomizationOptions options) {
Intrinsics.checkNotNullParameter(options, "options");
this.notificationCustomizationOptions = options;
return this;
}
public final Builder setPiAnalyticsEnabled(boolean piAnalyticsEnabled) {
this.piAnalyticsEnabled = piAnalyticsEnabled;
return this;
}
public final Builder setProximityEnabled(boolean proximityEnabled) {
this.proximityEnabled = proximityEnabled;
return this;
}
public final Builder setProximityNotificationOptions(ProximityNotificationCustomizationOptions options) {
Intrinsics.checkNotNullParameter(options, "options");
this.proximityNotificationCustomizationOptions = options;
return this;
}
public final Builder setSenderId(String senderId) {
Intrinsics.checkNotNullParameter(senderId, "senderId");
this.senderId = senderId;
return this;
}
public final Builder setUrlHandler(UrlHandler urlHandler) {
Intrinsics.checkNotNullParameter(urlHandler, "urlHandler");
this.urlHandler = urlHandler;
return this;
}
public final Builder setUseLegacyPiIdentifier(boolean useLegacyPiIdentifier) {
this.useLegacyPiIdentifier = useLegacyPiIdentifier;
return this;
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0087\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\b\u0010\u0005\u001a\u00020\u0006H\u0007R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lcom/salesforce/marketingcloud/MarketingCloudConfig$Companion;", "", "()V", "TAG", "", "builder", "Lcom/salesforce/marketingcloud/MarketingCloudConfig$Builder;", "sdk_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class Companion {
private Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@JvmStatic
public final Builder builder() {
return new Builder();
}
}
@Metadata(bv = {}, d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "a", "()Ljava/lang/String;"}, k = 3, mv = {1, 6, 0})
public static final class a extends Lambda implements Function0<String> {
final InitializationStatus a;
a(InitializationStatus initializationStatus) {
super(0);
this.a = initializationStatus;
}
@Override
public final String invoke() {
return "InitializationStatus: " + this.a;
}
}
public MarketingCloudConfig(String applicationId, String accessToken, String str, String marketingCloudServerUrl, String str2, boolean z, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, NotificationCustomizationOptions notificationCustomizationOptions, ProximityNotificationCustomizationOptions proximityNotificationCustomizationOptions, UrlHandler urlHandler, String appPackageName, String appVersionName, String predictiveIntelligenceServerUrl) {
super(applicationId);
Intrinsics.checkNotNullParameter(applicationId, "applicationId");
Intrinsics.checkNotNullParameter(accessToken, "accessToken");
Intrinsics.checkNotNullParameter(marketingCloudServerUrl, "marketingCloudServerUrl");
Intrinsics.checkNotNullParameter(notificationCustomizationOptions, "notificationCustomizationOptions");
Intrinsics.checkNotNullParameter(appPackageName, "appPackageName");
Intrinsics.checkNotNullParameter(appVersionName, "appVersionName");
Intrinsics.checkNotNullParameter(predictiveIntelligenceServerUrl, "predictiveIntelligenceServerUrl");
this.applicationId = applicationId;
this.accessToken = accessToken;
this.senderId = str;
this.marketingCloudServerUrl = marketingCloudServerUrl;
this.mid = str2;
this.analyticsEnabled = z;
this.geofencingEnabled = z2;
this.inboxEnabled = z3;
this.piAnalyticsEnabled = z4;
this.proximityEnabled = z5;
this.markMessageReadOnInboxNotificationOpen = z6;
this.delayRegistrationUntilContactKeyIsSet = z7;
this.useLegacyPiIdentifier = z8;
this.notificationCustomizationOptions = notificationCustomizationOptions;
this.proximityNotificationCustomizationOptions = proximityNotificationCustomizationOptions;
this.urlHandler = urlHandler;
this.appPackageName = appPackageName;
this.appVersionName = appVersionName;
this.predictiveIntelligenceServerUrl = predictiveIntelligenceServerUrl;
}
@JvmStatic
public static final Builder builder() {
return INSTANCE.builder();
}
public static final void m1077init$lambda1(final ModuleReadyListener listener, InitializationStatus it) {
Intrinsics.checkNotNullParameter(listener, "$listener");
Intrinsics.checkNotNullParameter(it, "it");
g.e(g.a, TAG, null, new a(it), 2, null);
MarketingCloudSdk.requestSdk(new MarketingCloudSdk.WhenReadyListener() {
@Override
public final void ready(MarketingCloudSdk marketingCloudSdk) {
MarketingCloudConfig.m1078init$lambda1$lambda0(ModuleReadyListener.this, marketingCloudSdk);
}
});
}
public static final void m1078init$lambda1$lambda0(ModuleReadyListener listener, MarketingCloudSdk sdk) {
Intrinsics.checkNotNullParameter(listener, "$listener");
Intrinsics.checkNotNullParameter(sdk, "sdk");
listener.ready(sdk);
}
public final boolean m1079applicationChanged(MarketingCloudConfig other) {
Intrinsics.checkNotNullParameter(other, "other");
return (Intrinsics.areEqual(this.applicationId, other.applicationId) && Intrinsics.areEqual(this.accessToken, other.accessToken)) ? false : true;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "accessToken", imports = {}))
public final String getAccessToken() {
return this.accessToken;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "analyticsEnabled", imports = {}))
public final boolean getAnalyticsEnabled() {
return this.analyticsEnabled;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "applicationId", imports = {}))
public final String getApplicationId() {
return this.applicationId;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "delayRegistrationUntilContactKeyIsSet", imports = {}))
public final boolean getDelayRegistrationUntilContactKeyIsSet() {
return this.delayRegistrationUntilContactKeyIsSet;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "geofencingEnabled", imports = {}))
public final boolean getGeofencingEnabled() {
return this.geofencingEnabled;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "inboxEnabled", imports = {}))
public final boolean getInboxEnabled() {
return this.inboxEnabled;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "markMessageReadOnInboxNotificationOpen", imports = {}))
public final boolean getMarkMessageReadOnInboxNotificationOpen() {
return this.markMessageReadOnInboxNotificationOpen;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "marketingCloudServerUrl", imports = {}))
public final String getMarketingCloudServerUrl() {
return this.marketingCloudServerUrl;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "mid", imports = {}))
public final String getMid() {
return this.mid;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "notificationCustomizationOptions", imports = {}))
public final NotificationCustomizationOptions getNotificationCustomizationOptions() {
return this.notificationCustomizationOptions;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "piAnalyticsEnabled", imports = {}))
public final boolean getPiAnalyticsEnabled() {
return this.piAnalyticsEnabled;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proximityEnabled", imports = {}))
public final boolean getProximityEnabled() {
return this.proximityEnabled;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proximityNotificationCustomizationOptions", imports = {}))
public final ProximityNotificationCustomizationOptions getProximityNotificationCustomizationOptions() {
return this.proximityNotificationCustomizationOptions;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "senderId", imports = {}))
public final String getSenderId() {
return this.senderId;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "urlHandler", imports = {}))
public final UrlHandler getUrlHandler() {
return this.urlHandler;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "useLegacyPiIdentifier", imports = {}))
public final boolean getUseLegacyPiIdentifier() {
return this.useLegacyPiIdentifier;
}
public final String accessToken() {
return this.accessToken;
}
public final boolean analyticsEnabled() {
return this.analyticsEnabled;
}
public final String getAppPackageName() {
return this.appPackageName;
}
public final String getAppVersionName() {
return this.appVersionName;
}
public final String applicationId() {
return this.applicationId;
}
public final String component1() {
return this.applicationId;
}
public final boolean component10() {
return this.proximityEnabled;
}
public final boolean component11() {
return this.markMessageReadOnInboxNotificationOpen;
}
public final boolean component12() {
return this.delayRegistrationUntilContactKeyIsSet;
}
public final boolean component13() {
return this.useLegacyPiIdentifier;
}
public final NotificationCustomizationOptions component14() {
return this.notificationCustomizationOptions;
}
public final ProximityNotificationCustomizationOptions component15() {
return this.proximityNotificationCustomizationOptions;
}
public final UrlHandler component16() {
return this.urlHandler;
}
public final String component17$sdk_release() {
return this.appPackageName;
}
public final String component18$sdk_release() {
return this.appVersionName;
}
public final String getPredictiveIntelligenceServerUrl() {
return this.predictiveIntelligenceServerUrl;
}
public final String component2() {
return this.accessToken;
}
public final String component3() {
return this.senderId;
}
public final String component4() {
return this.marketingCloudServerUrl;
}
public final String component5() {
return this.mid;
}
public final boolean component6() {
return this.analyticsEnabled;
}
public final boolean component7() {
return this.geofencingEnabled;
}
public final boolean component8() {
return this.inboxEnabled;
}
public final boolean component9() {
return this.piAnalyticsEnabled;
}
public final MarketingCloudConfig copy(String applicationId, String accessToken, String senderId, String marketingCloudServerUrl, String mid, boolean analyticsEnabled, boolean geofencingEnabled, boolean inboxEnabled, boolean piAnalyticsEnabled, boolean proximityEnabled, boolean markMessageReadOnInboxNotificationOpen, boolean delayRegistrationUntilContactKeyIsSet, boolean useLegacyPiIdentifier, NotificationCustomizationOptions notificationCustomizationOptions, ProximityNotificationCustomizationOptions proximityNotificationCustomizationOptions, UrlHandler urlHandler, String appPackageName, String appVersionName, String predictiveIntelligenceServerUrl) {
Intrinsics.checkNotNullParameter(applicationId, "applicationId");
Intrinsics.checkNotNullParameter(accessToken, "accessToken");
Intrinsics.checkNotNullParameter(marketingCloudServerUrl, "marketingCloudServerUrl");
Intrinsics.checkNotNullParameter(notificationCustomizationOptions, "notificationCustomizationOptions");
Intrinsics.checkNotNullParameter(appPackageName, "appPackageName");
Intrinsics.checkNotNullParameter(appVersionName, "appVersionName");
Intrinsics.checkNotNullParameter(predictiveIntelligenceServerUrl, "predictiveIntelligenceServerUrl");
return new MarketingCloudConfig(applicationId, accessToken, senderId, marketingCloudServerUrl, mid, analyticsEnabled, geofencingEnabled, inboxEnabled, piAnalyticsEnabled, proximityEnabled, markMessageReadOnInboxNotificationOpen, delayRegistrationUntilContactKeyIsSet, useLegacyPiIdentifier, notificationCustomizationOptions, proximityNotificationCustomizationOptions, urlHandler, appPackageName, appVersionName, predictiveIntelligenceServerUrl);
}
public final boolean delayRegistrationUntilContactKeyIsSet() {
return this.delayRegistrationUntilContactKeyIsSet;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof MarketingCloudConfig)) {
return false;
}
MarketingCloudConfig marketingCloudConfig = (MarketingCloudConfig) other;
return Intrinsics.areEqual(this.applicationId, marketingCloudConfig.applicationId) && Intrinsics.areEqual(this.accessToken, marketingCloudConfig.accessToken) && Intrinsics.areEqual(this.senderId, marketingCloudConfig.senderId) && Intrinsics.areEqual(this.marketingCloudServerUrl, marketingCloudConfig.marketingCloudServerUrl) && Intrinsics.areEqual(this.mid, marketingCloudConfig.mid) && this.analyticsEnabled == marketingCloudConfig.analyticsEnabled && this.geofencingEnabled == marketingCloudConfig.geofencingEnabled && this.inboxEnabled == marketingCloudConfig.inboxEnabled && this.piAnalyticsEnabled == marketingCloudConfig.piAnalyticsEnabled && this.proximityEnabled == marketingCloudConfig.proximityEnabled && this.markMessageReadOnInboxNotificationOpen == marketingCloudConfig.markMessageReadOnInboxNotificationOpen && this.delayRegistrationUntilContactKeyIsSet == marketingCloudConfig.delayRegistrationUntilContactKeyIsSet && this.useLegacyPiIdentifier == marketingCloudConfig.useLegacyPiIdentifier && Intrinsics.areEqual(this.notificationCustomizationOptions, marketingCloudConfig.notificationCustomizationOptions) && Intrinsics.areEqual(this.proximityNotificationCustomizationOptions, marketingCloudConfig.proximityNotificationCustomizationOptions) && Intrinsics.areEqual(this.urlHandler, marketingCloudConfig.urlHandler) && Intrinsics.areEqual(this.appPackageName, marketingCloudConfig.appPackageName) && Intrinsics.areEqual(this.appVersionName, marketingCloudConfig.appVersionName) && Intrinsics.areEqual(this.predictiveIntelligenceServerUrl, marketingCloudConfig.predictiveIntelligenceServerUrl);
}
public final boolean geofencingEnabled() {
return this.geofencingEnabled;
}
public int hashCode() {
int hashCode = ((this.applicationId.hashCode() * 31) + this.accessToken.hashCode()) * 31;
String str = this.senderId;
int hashCode2 = (((hashCode + (str == null ? 0 : str.hashCode())) * 31) + this.marketingCloudServerUrl.hashCode()) * 31;
String str2 = this.mid;
int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
boolean z = this.analyticsEnabled;
int i = z;
if (z != 0) {
i = 1;
}
int i2 = (hashCode3 + i) * 31;
boolean z2 = this.geofencingEnabled;
int i3 = z2;
if (z2 != 0) {
i3 = 1;
}
int i4 = (i2 + i3) * 31;
boolean z3 = this.inboxEnabled;
int i5 = z3;
if (z3 != 0) {
i5 = 1;
}
int i6 = (i4 + i5) * 31;
boolean z4 = this.piAnalyticsEnabled;
int i7 = z4;
if (z4 != 0) {
i7 = 1;
}
int i8 = (i6 + i7) * 31;
boolean z5 = this.proximityEnabled;
int i9 = z5;
if (z5 != 0) {
i9 = 1;
}
int i10 = (i8 + i9) * 31;
boolean z6 = this.markMessageReadOnInboxNotificationOpen;
int i11 = z6;
if (z6 != 0) {
i11 = 1;
}
int i12 = (i10 + i11) * 31;
boolean z7 = this.delayRegistrationUntilContactKeyIsSet;
int i13 = z7;
if (z7 != 0) {
i13 = 1;
}
int i14 = (i12 + i13) * 31;
boolean z8 = this.useLegacyPiIdentifier;
int hashCode4 = (((i14 + (z8 ? 1 : z8 ? 1 : 0)) * 31) + this.notificationCustomizationOptions.hashCode()) * 31;
ProximityNotificationCustomizationOptions proximityNotificationCustomizationOptions = this.proximityNotificationCustomizationOptions;
int hashCode5 = (hashCode4 + (proximityNotificationCustomizationOptions == null ? 0 : proximityNotificationCustomizationOptions.hashCode())) * 31;
UrlHandler urlHandler = this.urlHandler;
return ((((((hashCode5 + (urlHandler != null ? urlHandler.hashCode() : 0)) * 31) + this.appPackageName.hashCode()) * 31) + this.appVersionName.hashCode()) * 31) + this.predictiveIntelligenceServerUrl.hashCode();
}
public final boolean inboxEnabled() {
return this.inboxEnabled;
}
@Override
public void init(Context context, SFMCSdkComponents components, final ModuleReadyListener listener) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(components, "components");
Intrinsics.checkNotNullParameter(listener, "listener");
MarketingCloudSdk.b(context, this, components, new MarketingCloudSdk.InitializationListener() {
@Override
public final void complete(InitializationStatus initializationStatus) {
MarketingCloudConfig.m1077init$lambda1(ModuleReadyListener.this, initializationStatus);
}
});
}
public final boolean markMessageReadOnInboxNotificationOpen() {
return this.markMessageReadOnInboxNotificationOpen;
}
public final String marketingCloudServerUrl() {
return this.marketingCloudServerUrl;
}
public final String mid() {
return this.mid;
}
public final NotificationCustomizationOptions notificationCustomizationOptions() {
return this.notificationCustomizationOptions;
}
public final boolean piAnalyticsEnabled() {
return this.piAnalyticsEnabled;
}
public final String predictiveIntelligenceServerUrl() {
return this.predictiveIntelligenceServerUrl;
}
public final boolean proximityEnabled() {
return this.proximityEnabled;
}
public final ProximityNotificationCustomizationOptions proximityNotificationCustomizationOptions() {
return this.proximityNotificationCustomizationOptions;
}
public final String senderId() {
return this.senderId;
}
public final Builder toBuilder() {
return new Builder(this);
}
public String toString() {
return "MarketingCloudConfig(applicationId=" + this.applicationId + ", accessToken=" + this.accessToken + ", senderId=" + this.senderId + ", marketingCloudServerUrl=" + this.marketingCloudServerUrl + ", mid=" + this.mid + ", analyticsEnabled=" + this.analyticsEnabled + ", geofencingEnabled=" + this.geofencingEnabled + ", inboxEnabled=" + this.inboxEnabled + ", piAnalyticsEnabled=" + this.piAnalyticsEnabled + ", proximityEnabled=" + this.proximityEnabled + ", markMessageReadOnInboxNotificationOpen=" + this.markMessageReadOnInboxNotificationOpen + ", delayRegistrationUntilContactKeyIsSet=" + this.delayRegistrationUntilContactKeyIsSet + ", useLegacyPiIdentifier=" + this.useLegacyPiIdentifier + ", notificationCustomizationOptions=" + this.notificationCustomizationOptions + ", proximityNotificationCustomizationOptions=" + this.proximityNotificationCustomizationOptions + ", urlHandler=" + this.urlHandler + ", appPackageName=" + this.appPackageName + ", appVersionName=" + this.appVersionName + ", predictiveIntelligenceServerUrl=" + this.predictiveIntelligenceServerUrl + ')';
}
public final UrlHandler urlHandler() {
return this.urlHandler;
}
public final boolean useLegacyPiIdentifier() {
return this.useLegacyPiIdentifier;
}
}