Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 Braze.java 源代码,内容仅作参考
package com.braze;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import bo.app.a2;
import bo.app.b4;
import bo.app.e7;
import bo.app.f7;
import bo.app.g2;
import bo.app.i;
import bo.app.j4;
import bo.app.l5;
import bo.app.m4;
import bo.app.o1;
import bo.app.o4;
import bo.app.o5;
import bo.app.u4;
import bo.app.w3;
import bo.app.x;
import com.amazon.device.ads.DTBMetricsConfiguration;
import com.appsflyer.AppsFlyerProperties;
import com.braze.configuration.BrazeConfig;
import com.braze.configuration.BrazeConfigurationProvider;
import com.braze.configuration.RuntimeAppConfigurationProvider;
import com.braze.coroutine.BrazeCoroutineScope;
import com.braze.enums.BrazePushEventType;
import com.braze.events.BrazePushEvent;
import com.braze.events.ContentCardsUpdatedEvent;
import com.braze.events.FeedUpdatedEvent;
import com.braze.events.IEventSubscriber;
import com.braze.events.IValueCallback;
import com.braze.events.InAppMessageEvent;
import com.braze.images.DefaultBrazeImageLoader;
import com.braze.images.IBrazeImageLoader;
import com.braze.models.outgoing.BrazeProperties;
import com.braze.models.push.BrazeNotificationPayload;
import com.braze.support.BrazeLogger;
import com.braze.support.DateTimeUtils;
import com.braze.support.PermissionUtils;
import com.braze.support.StringUtils;
import com.braze.support.ValidationUtils;
import com.fyber.inneractive.sdk.external.InneractiveMediationDefs;
import com.google.android.gms.ads.RequestConfiguration;
import io.jsonwebtoken.JwtParser;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.EmptyCoroutineContext;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.jvm.internal.Ref$ObjectRef;
import myobfuscated.jk2.l0;
@Metadata(d1 = {"\u0000þ\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\t\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0003\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0012\b\u0007\u0018\u0000 Ñ\u00012\u00020\u0001:\u0002Ñ\u0001B\u0013\b\u0001\u0012\u0006\u0010n\u001a\u00020m¢\u0006\u0006\bÏ\u0001\u0010Ð\u0001J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u0012\u0010\u0006\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u0012\u0010\t\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0016J\u001c\u0010\t\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\u00072\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0016J&\u0010\u0010\u001a\u00020\u00042\b\u0010\f\u001a\u0004\u0018\u00010\u00072\b\u0010\r\u001a\u0004\u0018\u00010\u00072\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0016J.\u0010\u0010\u001a\u00020\u00042\b\u0010\f\u001a\u0004\u0018\u00010\u00072\b\u0010\r\u001a\u0004\u0018\u00010\u00072\b\u0010\u000f\u001a\u0004\u0018\u00010\u000e2\u0006\u0010\u0012\u001a\u00020\u0011H\u0016J8\u0010\u0010\u001a\u00020\u00042\b\u0010\f\u001a\u0004\u0018\u00010\u00072\b\u0010\r\u001a\u0004\u0018\u00010\u00072\b\u0010\u000f\u001a\u0004\u0018\u00010\u000e2\u0006\u0010\u0012\u001a\u00020\u00112\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0016J\u0012\u0010\u0015\u001a\u00020\u00042\b\u0010\u0014\u001a\u0004\u0018\u00010\u0013H\u0016J&\u0010\u0019\u001a\u00020\u00042\b\u0010\u0016\u001a\u0004\u0018\u00010\u00072\b\u0010\u0017\u001a\u0004\u0018\u00010\u00072\b\u0010\u0018\u001a\u0004\u0018\u00010\u0007H\u0016J\u001c\u0010\u001b\u001a\u00020\u00042\b\u0010\u0016\u001a\u0004\u0018\u00010\u00072\b\u0010\u001a\u001a\u0004\u0018\u00010\u0007H\u0016J\b\u0010\u001c\u001a\u00020\u0004H\u0016J\b\u0010\u001d\u001a\u00020\u0004H\u0016J\b\u0010\u001e\u001a\u00020\u0004H\u0016J\b\u0010\u001f\u001a\u00020\u0004H\u0016J\b\u0010 \u001a\u00020\u0004H\u0016J\b\u0010!\u001a\u00020\u0004H\u0016J\b\u0010\"\u001a\u00020\u0004H\u0016J\u0016\u0010&\u001a\u00020\u00042\f\u0010%\u001a\b\u0012\u0004\u0012\u00020$0#H\u0016J\u0016\u0010(\u001a\u00020\u00042\f\u0010%\u001a\b\u0012\u0004\u0012\u00020'0#H\u0016J\u0016\u0010*\u001a\u00020\u00042\f\u0010%\u001a\b\u0012\u0004\u0012\u00020)0#H\u0016J*\u0010.\u001a\u00020\u0004\"\u0004\b\u0000\u0010+2\f\u0010%\u001a\b\u0012\u0004\u0012\u00028\u00000#2\f\u0010-\u001a\b\u0012\u0004\u0012\u00028\u00000,H\u0016J,\u0010/\u001a\u00020\u0004\"\u0004\b\u0000\u0010+2\u000e\u0010%\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010#2\f\u0010-\u001a\b\u0012\u0004\u0012\u00028\u00000,H\u0016J\u0012\u00101\u001a\u00020\u00042\b\u00100\u001a\u0004\u0018\u00010\u0007H\u0016J\u001c\u00101\u001a\u00020\u00042\b\u00100\u001a\u0004\u0018\u00010\u00072\b\u00102\u001a\u0004\u0018\u00010\u0007H\u0016J\u0016\u00106\u001a\u00020\u00042\f\u00105\u001a\b\u0012\u0004\u0012\u00020403H\u0016J\u0017\u0010;\u001a\u00020\u00042\u0006\u00108\u001a\u000207H\u0000¢\u0006\u0004\b9\u0010:J!\u0010?\u001a\u00020\u00042\u0006\u0010<\u001a\u00020\u00072\b\u00100\u001a\u0004\u0018\u00010\u0007H\u0000¢\u0006\u0004\b=\u0010>J\u0017\u0010B\u001a\u00020\u00042\u0006\u0010\u0014\u001a\u00020\u0013H\u0000¢\u0006\u0004\b@\u0010AJ\u000f\u0010E\u001a\u00020\u0004H\u0000¢\u0006\u0004\bC\u0010DJ\u0017\u0010I\u001a\u00020\u00042\u0006\u0010F\u001a\u00020$H\u0000¢\u0006\u0004\bG\u0010HJ\u0017\u0010K\u001a\u00020\u00042\u0006\u0010F\u001a\u00020$H\u0000¢\u0006\u0004\bJ\u0010HJ\u001f\u0010R\u001a\u00020\u00042\u0006\u0010M\u001a\u00020L2\u0006\u0010O\u001a\u00020NH\u0000¢\u0006\u0004\bP\u0010QJ\u001f\u0010W\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u00072\u0006\u0010T\u001a\u00020SH\u0000¢\u0006\u0004\bU\u0010VJ\u0017\u0010Z\u001a\u00020\u00042\u0006\u0010T\u001a\u00020SH\u0000¢\u0006\u0004\bX\u0010YJ\u000f\u0010\\\u001a\u00020\u0004H\u0000¢\u0006\u0004\b[\u0010DJ\u0017\u0010`\u001a\u00020\u00042\u0006\u0010]\u001a\u00020\u0007H\u0000¢\u0006\u0004\b^\u0010_J\u0017\u0010d\u001a\u0002072\u0006\u0010a\u001a\u00020\u0007H\u0000¢\u0006\u0004\bb\u0010cJ?\u0010l\u001a\u00020\u00042\f\u0010f\u001a\b\u0012\u0004\u0012\u00020\u00070e2\b\b\u0002\u0010g\u001a\u0002072\b\b\u0002\u0010h\u001a\u0002072\f\u0010i\u001a\b\u0012\u0004\u0012\u00020\u00040eH\u0001¢\u0006\u0004\bj\u0010kJ\u0017\u0010r\u001a\u00020o2\u0006\u0010n\u001a\u00020mH\u0000¢\u0006\u0004\bp\u0010qJ\b\u0010t\u001a\u00020sH\u0002J\u0010\u0010v\u001a\u00020\u00042\u0006\u0010u\u001a\u000207H\u0002J\u0010\u0010y\u001a\u00020\u00042\u0006\u0010x\u001a\u00020wH\u0002J\b\u0010z\u001a\u00020\u0004H\u0002J\u0010\u0010}\u001a\u00020\u00042\u0006\u0010|\u001a\u00020{H\u0002J\u0010\u0010\u007f\u001a\u0002072\u0006\u0010~\u001a\u00020\u0007H\u0002Jm\u0010\u0084\u0001\u001a\u00028\u0000\"\u0004\b\u0000\u0010+2\u0007\u0010\u0080\u0001\u001a\u00028\u00002\f\u0010f\u001a\b\u0012\u0004\u0012\u00020\u00070e2\b\b\u0002\u0010g\u001a\u0002072\b\b\u0002\u0010h\u001a\u0002072%\u0010i\u001a!\b\u0001\u0012\u0005\u0012\u00030\u0082\u0001\u0012\u000b\u0012\t\u0012\u0004\u0012\u00028\u00000\u0083\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u0081\u0001H\u0002ø\u0001\u0000¢\u0006\u0006\b\u0084\u0001\u0010\u0085\u0001R*\u0010\u0087\u0001\u001a\u00030\u0086\u00018\u0016@\u0016X\u0096.¢\u0006\u0018\n\u0006\b\u0087\u0001\u0010\u0088\u0001\u001a\u0006\b\u0089\u0001\u0010\u008a\u0001\"\u0006\b\u008b\u0001\u0010\u008c\u0001R\u0019\u0010\u008d\u0001\u001a\u00020m8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u008d\u0001\u0010\u008e\u0001R\u001a\u0010\u0090\u0001\u001a\u00030\u008f\u00018\u0002@\u0002X\u0082.¢\u0006\b\n\u0006\b\u0090\u0001\u0010\u0091\u0001R\u0019\u0010\u0092\u0001\u001a\u0002048\u0002@\u0002X\u0082.¢\u0006\b\n\u0006\b\u0092\u0001\u0010\u0093\u0001R2\u0010\u0094\u0001\u001a\u0004\u0018\u0001078\u0000@\u0000X\u0081\u000e¢\u0006\u001f\n\u0006\b\u0094\u0001\u0010\u0095\u0001\u0012\u0005\b\u009a\u0001\u0010D\u001a\u0006\b\u0096\u0001\u0010\u0097\u0001\"\u0006\b\u0098\u0001\u0010\u0099\u0001R\u0019\u0010\u009b\u0001\u001a\u0002078\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u009b\u0001\u0010\u009c\u0001R1\u0010\u009e\u0001\u001a\u00030\u009d\u00018\u0000@\u0000X\u0081.¢\u0006\u001f\n\u0006\b\u009e\u0001\u0010\u009f\u0001\u0012\u0005\b¤\u0001\u0010D\u001a\u0006\b \u0001\u0010¡\u0001\"\u0006\b¢\u0001\u0010£\u0001R1\u0010¦\u0001\u001a\u00030¥\u00018\u0000@\u0000X\u0081\u000e¢\u0006\u001f\n\u0006\b¦\u0001\u0010§\u0001\u0012\u0005\b¬\u0001\u0010D\u001a\u0006\b¨\u0001\u0010©\u0001\"\u0006\bª\u0001\u0010«\u0001R!\u0010®\u0001\u001a\u00030\u00ad\u00018\u0002@\u0002X\u0083.¢\u0006\u000f\n\u0006\b®\u0001\u0010¯\u0001\u0012\u0005\b°\u0001\u0010DR0\u0010±\u0001\u001a\u00020o8\u0000@\u0000X\u0081.¢\u0006\u001f\n\u0006\b±\u0001\u0010²\u0001\u0012\u0005\b·\u0001\u0010D\u001a\u0006\b³\u0001\u0010´\u0001\"\u0006\bµ\u0001\u0010¶\u0001R1\u0010¹\u0001\u001a\u00030¸\u00018\u0000@\u0000X\u0081.¢\u0006\u001f\n\u0006\b¹\u0001\u0010º\u0001\u0012\u0005\b¿\u0001\u0010D\u001a\u0006\b»\u0001\u0010¼\u0001\"\u0006\b½\u0001\u0010¾\u0001R1\u0010Á\u0001\u001a\u00030À\u00018\u0000@\u0000X\u0081.¢\u0006\u001f\n\u0006\bÁ\u0001\u0010Â\u0001\u0012\u0005\bÇ\u0001\u0010D\u001a\u0006\bÃ\u0001\u0010Ä\u0001\"\u0006\bÅ\u0001\u0010Æ\u0001R\u0017\u0010Ê\u0001\u001a\u00020\u00078VX\u0096\u0004¢\u0006\b\u001a\u0006\bÈ\u0001\u0010É\u0001R-\u0010Î\u0001\u001a\u0004\u0018\u00010\u00072\t\u0010Ë\u0001\u001a\u0004\u0018\u00010\u00078V@VX\u0096\u000e¢\u0006\u000f\u001a\u0006\bÌ\u0001\u0010É\u0001\"\u0005\bÍ\u0001\u0010_\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006Ò\u0001"}, d2 = {"Lcom/braze/Braze;", "", "Landroid/app/Activity;", "activity", "", "openSession", "closeSession", "", "eventName", "logCustomEvent", "Lcom/braze/models/outgoing/BrazeProperties;", "properties", "productId", AppsFlyerProperties.CURRENCY_CODE, "Ljava/math/BigDecimal;", "price", "logPurchase", "", "quantity", "Landroid/content/Intent;", "intent", "logPushNotificationOpened", "campaignId", "actionId", "actionType", "logPushNotificationActionClicked", "pageId", "logPushStoryPageClicked", "logFeedDisplayed", "requestFeedRefreshFromCache", "requestFeedRefresh", "requestContentCardsRefresh", "requestContentCardsRefreshFromCache", "refreshFeatureFlags", "requestImmediateDataFlush", "Lcom/braze/events/IEventSubscriber;", "Lcom/braze/events/InAppMessageEvent;", "subscriber", "subscribeToNewInAppMessages", "Lcom/braze/events/ContentCardsUpdatedEvent;", "subscribeToContentCardsUpdates", "Lcom/braze/events/FeedUpdatedEvent;", "subscribeToFeedUpdates", RequestConfiguration.MAX_AD_CONTENT_RATING_T, "Ljava/lang/Class;", "eventClass", "addSingleSynchronousSubscription", "removeSingleSubscription", "userId", "changeUser", "sdkAuthSignature", "Lcom/braze/events/IValueCallback;", "Lcom/braze/BrazeUser;", "completionCallback", "getCurrentUser", "", "ignoreRateLimit", "requestGeofenceRefresh$android_sdk_base_release", "(Z)V", "requestGeofenceRefresh", "serializedCardJson", "addSerializedCardJsonToStorage$android_sdk_base_release", "(Ljava/lang/String;Ljava/lang/String;)V", "addSerializedCardJsonToStorage", "handleInAppMessageTestPush$android_sdk_base_release", "(Landroid/content/Intent;)V", "handleInAppMessageTestPush", "applyPendingRuntimeConfiguration$android_sdk_base_release", "()V", "applyPendingRuntimeConfiguration", "event", "retryInAppMessage$android_sdk_base_release", "(Lcom/braze/events/InAppMessageEvent;)V", "retryInAppMessage", "reenqueueInAppMessage$android_sdk_base_release", "reenqueueInAppMessage", "Lcom/braze/enums/BrazePushEventType;", "pushActionType", "Lcom/braze/models/push/BrazeNotificationPayload;", "payload", "publishBrazePushAction$android_sdk_base_release", "(Lcom/braze/enums/BrazePushEventType;Lcom/braze/models/push/BrazeNotificationPayload;)V", "publishBrazePushAction", "", "timeInMs", "logPushDelivery$android_sdk_base_release", "(Ljava/lang/String;J)V", "logPushDelivery", "schedulePushDelivery$android_sdk_base_release", "(J)V", "schedulePushDelivery", "performPushDeliveryFlush$android_sdk_base_release", "performPushDeliveryFlush", "campaign", "logPushMaxCampaign$android_sdk_base_release", "(Ljava/lang/String;)V", "logPushMaxCampaign", "pushId", "validateAndStorePushId$android_sdk_base_release", "(Ljava/lang/String;)Z", "validateAndStorePushId", "Lkotlin/Function0;", "errorLog", "earlyReturnIfDisabled", "earlyReturnIfUdmUninitialized", "block", "run$android_sdk_base_release", "(Lkotlin/jvm/functions/Function0;ZZLkotlin/jvm/functions/Function0;)V", "run", "Landroid/content/Context;", "context", "Lcom/braze/configuration/BrazeConfigurationProvider;", "getConfigurationProviderSafe$android_sdk_base_release", "(Landroid/content/Context;)Lcom/braze/configuration/BrazeConfigurationProvider;", "getConfigurationProviderSafe", "Lbo/app/g2;", "getDeviceDataProvider", "isOffline", "setSyncPolicyOfflineStatus", "", "throwable", "publishError", "verifyProperSdkSetup", "Lbo/app/f7;", "dependencyProvider", "setUserSpecificMemberVariablesAndStartDispatch", "key", "isEphemeralEventKey", "defaultValueOnException", "Lkotlin/Function2;", "Lmyobfuscated/pn2/f0;", "Lmyobfuscated/mk2/c;", "runForResult", "(Ljava/lang/Object;Lkotlin/jvm/functions/Function0;ZZLkotlin/jvm/functions/Function2;)Ljava/lang/Object;", "Lcom/braze/images/IBrazeImageLoader;", "imageLoader", "Lcom/braze/images/IBrazeImageLoader;", "getImageLoader", "()Lcom/braze/images/IBrazeImageLoader;", "setImageLoader", "(Lcom/braze/images/IBrazeImageLoader;)V", "applicationContext", "Landroid/content/Context;", "Lbo/app/w3;", "offlineUserStorageProvider", "Lbo/app/w3;", "brazeUser", "Lcom/braze/BrazeUser;", "isApiKeyPresent", "Ljava/lang/Boolean;", "isApiKeyPresent$android_sdk_base_release", "()Ljava/lang/Boolean;", "setApiKeyPresent$android_sdk_base_release", "(Ljava/lang/Boolean;)V", "isApiKeyPresent$android_sdk_base_release$annotations", "isInstanceStopped", "Z", "Lbo/app/h2;", "deviceIdProvider", "Lbo/app/h2;", "getDeviceIdProvider$android_sdk_base_release", "()Lbo/app/h2;", "setDeviceIdProvider$android_sdk_base_release", "(Lbo/app/h2;)V", "getDeviceIdProvider$android_sdk_base_release$annotations", "Lbo/app/k2;", "externalIEventMessenger", "Lbo/app/k2;", "getExternalIEventMessenger$android_sdk_base_release", "()Lbo/app/k2;", "setExternalIEventMessenger$android_sdk_base_release", "(Lbo/app/k2;)V", "getExternalIEventMessenger$android_sdk_base_release$annotations", "Lbo/app/n2;", "registrationDataProvider", "Lbo/app/n2;", "getRegistrationDataProvider$annotations", "configurationProvider", "Lcom/braze/configuration/BrazeConfigurationProvider;", "getConfigurationProvider$android_sdk_base_release", "()Lcom/braze/configuration/BrazeConfigurationProvider;", "setConfigurationProvider$android_sdk_base_release", "(Lcom/braze/configuration/BrazeConfigurationProvider;)V", "getConfigurationProvider$android_sdk_base_release$annotations", "Lbo/app/o4;", "pushDeliveryManager", "Lbo/app/o4;", "getPushDeliveryManager$android_sdk_base_release", "()Lbo/app/o4;", "setPushDeliveryManager$android_sdk_base_release", "(Lbo/app/o4;)V", "getPushDeliveryManager$android_sdk_base_release$annotations", "Lbo/app/d3;", "udm", "Lbo/app/d3;", "getUdm$android_sdk_base_release", "()Lbo/app/d3;", "setUdm$android_sdk_base_release", "(Lbo/app/d3;)V", "getUdm$android_sdk_base_release$annotations", "getDeviceId", "()Ljava/lang/String;", "deviceId", "value", "getRegisteredPushToken", "setRegisteredPushToken", "registeredPushToken", "<init>", "(Landroid/content/Context;)V", "Companion", "android-sdk-base_release"}, k = 1, mv = {1, 8, 0})
public final class Braze {
private static boolean areOutboundNetworkRequestsOffline;
private static IBrazeNotificationFactory customBrazeNotificationFactory;
private static g2 deviceDataProvider;
private static IBrazeEndpointProvider endpointProvider;
private static volatile Braze instance;
private static l5 sdkEnablementProvider;
private static boolean shouldMockNetworkRequestsAndDropEvents;
private Context applicationContext;
private BrazeUser brazeUser;
public BrazeConfigurationProvider configurationProvider;
public bo.app.h2 deviceIdProvider;
private bo.app.k2 externalIEventMessenger;
public IBrazeImageLoader imageLoader;
private Boolean isApiKeyPresent;
private boolean isInstanceStopped;
private w3 offlineUserStorageProvider;
public o4 pushDeliveryManager;
private bo.app.n2 registrationDataProvider;
public bo.app.d3 udm;
public static final Companion Companion = new Companion(null);
private static final ReentrantLock brazeClassLock = new ReentrantLock();
private static final Set<String> KNOWN_APP_CRAWLER_DEVICE_MODELS = myobfuscated.jk2.k0.b("calypso appcrawler");
private static final Set<String> NECESSARY_BRAZE_SDK_PERMISSIONS = l0.e("android.permission.ACCESS_NETWORK_STATE", "android.permission.INTERNET");
private static final ReentrantLock endpointProviderLock = new ReentrantLock();
private static boolean shouldRequestFrameworkListenToNetworkUpdates = true;
private static final List<BrazeConfig> pendingConfigurations = new ArrayList();
private static final BrazeConfig clearConfigSentinel = new BrazeConfig.Builder().build();
@Metadata(d1 = {"\u0000x\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010\"\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010!\n\u0002\b\u0005\b\u0087\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\bT\u0010+J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0007J\u0012\u0010\t\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0007\u001a\u00020\u0006H\u0007J\u0012\u0010\r\u001a\u00020\f2\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0007J\u0010\u0010\u0010\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u000eH\u0007J\u001a\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0012\u001a\u0004\u0018\u00010\u0011H\u0007J\b\u0010\u0015\u001a\u00020\u0013H\u0007J\u0019\u0010\u0019\u001a\u00020\f2\b\u0010\u0016\u001a\u0004\u0018\u00010\bH\u0001¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010 \u001a\u00020\f2\u0006\u0010\u001b\u001a\u00020\u001a2\u0006\u0010\u001d\u001a\u00020\u001cH\u0001¢\u0006\u0004\b\u001e\u0010\u001fJ\u0010\u0010\"\u001a\u00020!2\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010#\u001a\u00020\u0013H\u0002R(\u0010$\u001a\u00020\u00138\u0000@\u0000X\u0081\u000e¢\u0006\u0018\n\u0004\b$\u0010%\u0012\u0004\b*\u0010+\u001a\u0004\b&\u0010'\"\u0004\b(\u0010)R*\u0010,\u001a\u0004\u0018\u00010!8\u0000@\u0000X\u0081\u000e¢\u0006\u0018\n\u0004\b,\u0010-\u0012\u0004\b2\u0010+\u001a\u0004\b.\u0010/\"\u0004\b0\u00101R*\u00104\u001a\u0004\u0018\u0001038\u0006@\u0006X\u0087\u000e¢\u0006\u0018\n\u0004\b4\u00105\u0012\u0004\b:\u0010+\u001a\u0004\b6\u00107\"\u0004\b8\u00109R*\u0010?\u001a\u00020\u00132\u0006\u0010;\u001a\u00020\u00138F@FX\u0087\u000e¢\u0006\u0012\u0012\u0004\b>\u0010+\u001a\u0004\b<\u0010'\"\u0004\b=\u0010)R\u001a\u0010@\u001a\u00020\u00138FX\u0087\u0004¢\u0006\f\u0012\u0004\bA\u0010+\u001a\u0004\b@\u0010'R\u001a\u0010C\u001a\b\u0012\u0004\u0012\u00020\b0B8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bC\u0010DR\u001a\u0010E\u001a\b\u0012\u0004\u0012\u00020\b0B8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bE\u0010DR\u0016\u0010F\u001a\u00020\u00138\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bF\u0010%R\u0014\u0010H\u001a\u00020G8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bH\u0010IR\u0014\u0010J\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bJ\u0010KR\u0018\u0010\u000b\u001a\u0004\u0018\u00010\n8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000b\u0010LR\u0014\u0010M\u001a\u00020G8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bM\u0010IR\u0018\u0010N\u001a\u0004\u0018\u00010\u00048\u0002@\u0002X\u0083\u000e¢\u0006\u0006\n\u0004\bN\u0010OR\u001a\u0010Q\u001a\b\u0012\u0004\u0012\u00020\u00110P8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bQ\u0010RR\u0016\u0010S\u001a\u00020\u00138\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bS\u0010%¨\u0006U"}, d2 = {"Lcom/braze/Braze$Companion;", "", "Landroid/content/Context;", "context", "Lcom/braze/Braze;", "getInstance", "Lcom/braze/configuration/BrazeConfigurationProvider;", "configurationProvider", "", "getConfiguredApiKey", "Lcom/braze/IBrazeEndpointProvider;", "endpointProvider", "", "setEndpointProvider", "Landroid/net/Uri;", "brazeEndpoint", "getApiEndpoint", "Lcom/braze/configuration/BrazeConfig;", DTBMetricsConfiguration.CONFIG_DIR, "", "configure", "enableMockNetworkRequestsAndDropEventsMode", "configuredCustomEndpoint", "setConfiguredCustomEndpoint$android_sdk_base_release", "(Ljava/lang/String;)V", "setConfiguredCustomEndpoint", "Landroid/content/Intent;", "intent", "Lbo/app/c2;", "brazeManager", "requestTriggersIfInAppMessageTestPush$android_sdk_base_release", "(Landroid/content/Intent;Lbo/app/c2;)V", "requestTriggersIfInAppMessageTestPush", "Lbo/app/l5;", "getSdkEnablementProvider", "shouldAllowSingletonInitialization", "shouldRequestFrameworkListenToNetworkUpdates", "Z", "getShouldRequestFrameworkListenToNetworkUpdates$android_sdk_base_release", "()Z", "setShouldRequestFrameworkListenToNetworkUpdates$android_sdk_base_release", "(Z)V", "getShouldRequestFrameworkListenToNetworkUpdates$android_sdk_base_release$annotations", "()V", "sdkEnablementProvider", "Lbo/app/l5;", "getSdkEnablementProvider$android_sdk_base_release", "()Lbo/app/l5;", "setSdkEnablementProvider$android_sdk_base_release", "(Lbo/app/l5;)V", "getSdkEnablementProvider$android_sdk_base_release$annotations", "Lcom/braze/IBrazeNotificationFactory;", "customBrazeNotificationFactory", "Lcom/braze/IBrazeNotificationFactory;", "getCustomBrazeNotificationFactory", "()Lcom/braze/IBrazeNotificationFactory;", "setCustomBrazeNotificationFactory", "(Lcom/braze/IBrazeNotificationFactory;)V", "getCustomBrazeNotificationFactory$annotations", "isOffline", "getOutboundNetworkRequestsOffline", "setOutboundNetworkRequestsOffline", "getOutboundNetworkRequestsOffline$annotations", "outboundNetworkRequestsOffline", "isDisabled", "isDisabled$annotations", "", "KNOWN_APP_CRAWLER_DEVICE_MODELS", "Ljava/util/Set;", "NECESSARY_BRAZE_SDK_PERMISSIONS", "areOutboundNetworkRequestsOffline", "Ljava/util/concurrent/locks/ReentrantLock;", "brazeClassLock", "Ljava/util/concurrent/locks/ReentrantLock;", "clearConfigSentinel", "Lcom/braze/configuration/BrazeConfig;", "Lcom/braze/IBrazeEndpointProvider;", "endpointProviderLock", "instance", "Lcom/braze/Braze;", "", "pendingConfigurations", "Ljava/util/List;", "shouldMockNetworkRequestsAndDropEvents", "<init>", "android-sdk-base_release"}, k = 1, mv = {1, 8, 0})
public static final class Companion {
public static final class c extends Lambda implements Function0 {
final BrazeConfig b;
public c(BrazeConfig brazeConfig) {
super(0);
this.b = brazeConfig;
}
@Override
public final String invoke() {
return "Braze.configure() called with configuration: " + this.b;
}
}
public static final class d extends Lambda implements Function0 {
public static final d b = new d();
public d() {
super(0);
}
@Override
public final String invoke() {
return "Braze.configure() cannot be called while the singleton is still live.";
}
}
public static final class e extends Lambda implements Function0 {
public static final e b = new e();
public e() {
super(0);
}
@Override
public final String invoke() {
return "Braze.configure() called with a null config; Clearing all configuration values.";
}
}
public static final class h extends Lambda implements Function0 {
public static final h b = new h();
public h() {
super(0);
}
@Override
public final String invoke() {
return "Braze network requests already being mocked. Note that events dispatched in this mode are dropped.";
}
}
public static final class i extends Lambda implements Function0 {
public static final i b = new i();
public i() {
super(0);
}
@Override
public final String invoke() {
return "Braze network requests will be mocked. Events dispatchedin this mode will be dropped.";
}
}
public static final class j extends Lambda implements Function0 {
public static final j b = new j();
public j() {
super(0);
}
@Override
public final String invoke() {
return "Attempt to enable mocking Braze network requests had no effect since getInstance() has already been called.";
}
}
public static final class m extends Lambda implements Function0 {
public static final m b = new m();
public m() {
super(0);
}
@Override
public final String invoke() {
return "Caught exception trying to get a Braze API endpoint from the BrazeEndpointProvider. Using the original URI";
}
}
public static final class n extends Lambda implements Function0 {
public static final n b = new n();
public n() {
super(0);
}
@Override
public final String invoke() {
return "Caught exception while retrieving API key.";
}
}
public static final class o extends Lambda implements Function0 {
public static final o b = new o();
public o() {
super(0);
}
@Override
public final String invoke() {
return "SDK enablement provider was null. Returning SDK as enabled.";
}
}
public static final class p extends Lambda implements Function0 {
public static final p b = new p();
public p() {
super(0);
}
@Override
public final String invoke() {
return "API key not present. Actions will not be performed on the SDK.";
}
}
public static final class q extends Lambda implements Function0 {
public static final q b = new q();
public q() {
super(0);
}
@Override
public final String invoke() {
return "SDK is disabled. Actions will not be performed on the SDK.";
}
}
public static final class r extends Lambda implements Function0 {
final boolean b;
public r(boolean z) {
super(0);
this.b = z;
}
@Override
public final String invoke() {
return "Braze SDK outbound network requests are now ".concat(this.b ? "disabled" : "enabled");
}
}
public static final class s extends Lambda implements Function0 {
public static final s b = new s();
public s() {
super(0);
}
@Override
public final String invoke() {
return "Push contained key for fetching test triggers, fetching triggers.";
}
}
public static final class t extends Lambda implements Function0 {
public static final t b = new t();
public t() {
super(0);
}
@Override
public final String invoke() {
return "The instance is null. Allowing instance initialization";
}
}
public static final class u extends Lambda implements Function0 {
public static final u b = new u();
public u() {
super(0);
}
@Override
public final String invoke() {
return "The instance was stopped. Allowing instance initialization";
}
}
public static final class v extends Lambda implements Function0 {
public static final v b = new v();
public v() {
super(0);
}
@Override
public final String invoke() {
return "No API key was found previously. Allowing instance initialization";
}
}
private Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static Uri a(Uri uri, String str) {
return setConfiguredCustomEndpoint$lambda$12$lambda$11(str, uri);
}
public final l5 getSdkEnablementProvider(Context context) {
l5 sdkEnablementProvider$android_sdk_base_release = getSdkEnablementProvider$android_sdk_base_release();
if (sdkEnablementProvider$android_sdk_base_release == null) {
l5 l5Var = new l5(context);
setSdkEnablementProvider$android_sdk_base_release(l5Var);
return l5Var;
}
return sdkEnablementProvider$android_sdk_base_release;
}
private static final Uri setConfiguredCustomEndpoint$lambda$12$lambda$11(String str, Uri brazeEndpoint) {
Intrinsics.checkNotNullParameter(brazeEndpoint, "brazeEndpoint");
Uri parse = Uri.parse(str);
String scheme = parse.getScheme();
String encodedAuthority = parse.getEncodedAuthority();
Uri.Builder buildUpon = brazeEndpoint.buildUpon();
if (scheme == null || myobfuscated.mn2.k.o(scheme) || encodedAuthority == null || myobfuscated.mn2.k.o(encodedAuthority)) {
return buildUpon.encodedAuthority(str).build();
}
buildUpon.encodedAuthority(encodedAuthority);
buildUpon.scheme(scheme);
return buildUpon.build();
}
private final boolean shouldAllowSingletonInitialization() {
Braze braze = Braze.instance;
if (braze == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.V, (Throwable) null, t.b, 2, (Object) null);
return true;
} else if (braze.isInstanceStopped) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, (BrazeLogger.Priority) null, (Throwable) null, u.b, 3, (Object) null);
return true;
} else if (Intrinsics.c(Boolean.FALSE, braze.isApiKeyPresent$android_sdk_base_release())) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, (BrazeLogger.Priority) null, (Throwable) null, v.b, 3, (Object) null);
return true;
} else {
return false;
}
}
public final boolean configure(Context context, BrazeConfig brazeConfig) {
Intrinsics.checkNotNullParameter(context, "context");
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
BrazeLogger.Priority priority = BrazeLogger.Priority.I;
BrazeLogger.brazelog$default(brazeLogger, this, priority, (Throwable) null, new c(brazeConfig), 2, (Object) null);
ReentrantLock reentrantLock = Braze.brazeClassLock;
reentrantLock.lock();
try {
Braze braze = Braze.instance;
if (braze != null && !braze.isInstanceStopped && Intrinsics.c(Boolean.TRUE, braze.isApiKeyPresent$android_sdk_base_release())) {
BrazeLogger.brazelog$default(brazeLogger, Braze.Companion, priority, (Throwable) null, d.b, 2, (Object) null);
reentrantLock.unlock();
return false;
}
if (brazeConfig != null) {
Braze.pendingConfigurations.add(brazeConfig);
} else {
BrazeLogger.brazelog$default(brazeLogger, Braze.Companion, priority, (Throwable) null, e.b, 2, (Object) null);
Braze.pendingConfigurations.add(Braze.clearConfigSentinel);
}
reentrantLock.unlock();
return true;
} catch (Throwable th) {
reentrantLock.unlock();
throw th;
}
}
public final boolean enableMockNetworkRequestsAndDropEventsMode() {
if (Braze.instance == null) {
ReentrantLock reentrantLock = Braze.brazeClassLock;
reentrantLock.lock();
try {
if (Braze.instance == null) {
if (Braze.shouldMockNetworkRequestsAndDropEvents) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.Companion, BrazeLogger.Priority.I, (Throwable) null, h.b, 2, (Object) null);
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.Companion, BrazeLogger.Priority.I, (Throwable) null, i.b, 2, (Object) null);
Braze.shouldMockNetworkRequestsAndDropEvents = true;
}
reentrantLock.unlock();
return true;
}
Unit unit = Unit.a;
reentrantLock.unlock();
} catch (Throwable th) {
reentrantLock.unlock();
throw th;
}
}
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, j.b, 2, (Object) null);
return false;
}
public final Uri getApiEndpoint(Uri brazeEndpoint) {
Intrinsics.checkNotNullParameter(brazeEndpoint, "brazeEndpoint");
ReentrantLock reentrantLock = Braze.endpointProviderLock;
reentrantLock.lock();
try {
IBrazeEndpointProvider iBrazeEndpointProvider = Braze.endpointProvider;
if (iBrazeEndpointProvider != null) {
try {
Uri a = a(brazeEndpoint, ((myobfuscated.ue.a) iBrazeEndpointProvider).a);
if (a != null) {
return a;
}
} catch (Exception e2) {
BrazeLogger.INSTANCE.brazelog(Braze.Companion, BrazeLogger.Priority.W, e2, m.b);
}
}
return brazeEndpoint;
} finally {
reentrantLock.unlock();
}
}
public final String getConfiguredApiKey(BrazeConfigurationProvider configurationProvider) {
Intrinsics.checkNotNullParameter(configurationProvider, "configurationProvider");
try {
return configurationProvider.getBrazeApiKey().toString();
} catch (Exception e2) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.E, e2, n.b);
return null;
}
}
public final IBrazeNotificationFactory getCustomBrazeNotificationFactory() {
return Braze.customBrazeNotificationFactory;
}
public final Braze getInstance(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
if (shouldAllowSingletonInitialization()) {
ReentrantLock reentrantLock = Braze.brazeClassLock;
reentrantLock.lock();
try {
if (Braze.Companion.shouldAllowSingletonInitialization()) {
Braze braze = new Braze(context);
braze.isInstanceStopped = false;
Braze.instance = braze;
return braze;
}
Unit unit = Unit.a;
} finally {
reentrantLock.unlock();
}
}
Braze braze2 = Braze.instance;
Intrinsics.f(braze2, "null cannot be cast to non-null type com.braze.Braze");
return braze2;
}
public final boolean getOutboundNetworkRequestsOffline() {
return Braze.areOutboundNetworkRequestsOffline;
}
public final l5 getSdkEnablementProvider$android_sdk_base_release() {
return Braze.sdkEnablementProvider;
}
public final boolean getShouldRequestFrameworkListenToNetworkUpdates$android_sdk_base_release() {
return Braze.shouldRequestFrameworkListenToNetworkUpdates;
}
public final boolean isDisabled() {
l5 sdkEnablementProvider$android_sdk_base_release = getSdkEnablementProvider$android_sdk_base_release();
if (sdkEnablementProvider$android_sdk_base_release == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, (BrazeLogger.Priority) null, (Throwable) null, o.b, 3, (Object) null);
return false;
}
Braze braze = Braze.instance;
if (braze != null && Intrinsics.c(Boolean.FALSE, braze.isApiKeyPresent$android_sdk_base_release())) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, p.b, 2, (Object) null);
return true;
}
boolean a = sdkEnablementProvider$android_sdk_base_release.a();
if (a) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, q.b, 2, (Object) null);
}
return a;
}
public final void requestTriggersIfInAppMessageTestPush$android_sdk_base_release(Intent intent, bo.app.c2 brazeManager) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(brazeManager, "brazeManager");
String stringExtra = intent.getStringExtra("ab_push_fetch_test_triggers_key");
if (stringExtra == null || !Intrinsics.c(stringExtra, InneractiveMediationDefs.SHOW_HOUSE_AD_YES)) {
return;
}
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.I, (Throwable) null, s.b, 2, (Object) null);
brazeManager.a(new b4.a(null, null, null, null, 15, null).e());
}
public final void setConfiguredCustomEndpoint$android_sdk_base_release(String str) {
ReentrantLock reentrantLock = Braze.endpointProviderLock;
reentrantLock.lock();
try {
Braze.Companion.setEndpointProvider(new myobfuscated.ue.a(str));
Unit unit = Unit.a;
} finally {
reentrantLock.unlock();
}
}
public final void setCustomBrazeNotificationFactory(IBrazeNotificationFactory iBrazeNotificationFactory) {
Braze.customBrazeNotificationFactory = iBrazeNotificationFactory;
}
public final void setEndpointProvider(IBrazeEndpointProvider iBrazeEndpointProvider) {
ReentrantLock reentrantLock = Braze.endpointProviderLock;
reentrantLock.lock();
try {
Braze.endpointProvider = iBrazeEndpointProvider;
Unit unit = Unit.a;
} finally {
reentrantLock.unlock();
}
}
public final void setOutboundNetworkRequestsOffline(boolean z) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.I, (Throwable) null, new r(z), 2, (Object) null);
ReentrantLock reentrantLock = Braze.brazeClassLock;
reentrantLock.lock();
try {
Braze.areOutboundNetworkRequestsOffline = z;
Braze braze = Braze.instance;
if (braze != null) {
braze.setSyncPolicyOfflineStatus(z);
Unit unit = Unit.a;
}
} finally {
reentrantLock.unlock();
}
}
public final void setSdkEnablementProvider$android_sdk_base_release(l5 l5Var) {
Braze.sdkEnablementProvider = l5Var;
}
}
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Braze SDK Initializing";
}
}
public static final class a0 extends Lambda implements Function0 {
public static final a0 b = new a0();
public a0() {
super(0);
}
@Override
public final String invoke() {
return "Failed to retrieve the device id.";
}
}
public static final class b extends Lambda implements Function0 {
final String b;
public b(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Device build model matches a known crawler. Enabling mock network request mode. Device it: " + this.b;
}
}
public static final class b0 extends SuspendLambda implements Function2 {
int b;
public b0(myobfuscated.mk2.c cVar) {
super(2, cVar);
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((b0) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
return new b0(cVar);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
if (this.b == 0) {
myobfuscated.ik2.i.b(obj);
return Braze.this.getDeviceIdProvider$android_sdk_base_release().getDeviceId();
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
public static final class b1 extends Lambda implements Function0 {
public static final b1 b = new b1();
public b1() {
super(0);
}
@Override
public final String invoke() {
return "Failed to log that the feed was displayed.";
}
}
public static final class b2 extends Lambda implements Function0 {
final InAppMessageEvent b;
public b2(InAppMessageEvent inAppMessageEvent) {
super(0);
this.b = inAppMessageEvent;
}
@Override
public final String invoke() {
return "Error reenqueueing In-App Message from event " + this.b;
}
}
public static final class c extends Lambda implements Function0 {
public c() {
super(0);
}
@Override
public final String invoke() {
return "Created external messenger " + Braze.this.getExternalIEventMessenger$android_sdk_base_release();
}
}
public static final class c1 extends Lambda implements Function0 {
public c1() {
super(0);
}
public final void a() {
a2 a = bo.app.i.h.a();
if (a != null) {
Braze.this.getUdm$android_sdk_base_release().h().a(a);
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class c2 extends Lambda implements Function0 {
final InAppMessageEvent c;
public c2(InAppMessageEvent inAppMessageEvent) {
super(0);
this.c = inAppMessageEvent;
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().v().d(this.c.getTriggerAction());
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class c3 extends Lambda implements Function0 {
public static final c3 b = new c3();
public c3() {
super(0);
}
@Override
public final String invoke() {
return "Failed to request data flush.";
}
}
public static final class d extends Lambda implements Function0 {
public static final d b = new d();
public d() {
super(0);
}
@Override
public final String invoke() {
return "Failed to perform initial Braze singleton setup.";
}
}
public static final class d2 extends Lambda implements Function0 {
public static final d2 b = new d2();
public d2() {
super(0);
}
@Override
public final String invoke() {
return "Failed to refresh feature flags.";
}
}
public static final class d3 extends Lambda implements Function0 {
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "requestImmediateDataFlush() called";
}
}
public d3() {
super(0);
}
public final void a() {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.V, (Throwable) null, a.b, 2, (Object) null);
Braze.this.getUdm$android_sdk_base_release().h().e();
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class e extends Lambda implements Function0 {
final Context c;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Finished UserDependencyManager creation.";
}
}
public static final class b extends Lambda implements Function0 {
public static final b b = new b();
public b() {
super(0);
}
@Override
public final String invoke() {
return "Failed to startup user dependency manager.";
}
}
public static final class c extends Lambda implements Function0 {
public static final c b = new c();
public c() {
super(0);
}
@Override
public final String invoke() {
return "Finished singleton setup.";
}
}
public static final class d extends Lambda implements Function0 {
public static final d b = new d();
public d() {
super(0);
}
@Override
public final String invoke() {
return "Firebase Cloud Messaging found. Setting up Firebase Cloud Messaging.";
}
}
public static final class C0208e extends Lambda implements Function0 {
public static final C0208e b = new C0208e();
public C0208e() {
super(0);
}
@Override
public final String invoke() {
return "Firebase Cloud Messaging requirements not met. Braze will not register for Firebase Cloud Messaging.";
}
}
public static final class f extends Lambda implements Function0 {
public static final f b = new f();
public f() {
super(0);
}
@Override
public final String invoke() {
return "Automatic Firebase Cloud Messaging registration not enabled in configuration. Braze will not register for Firebase Cloud Messaging.";
}
}
public static final class g extends Lambda implements Function0 {
public static final g b = new g();
public g() {
super(0);
}
@Override
public final String invoke() {
return "Amazon Device Messaging found. Setting up Amazon Device Messaging";
}
}
public static final class h extends Lambda implements Function0 {
public static final h b = new h();
public h() {
super(0);
}
@Override
public final String invoke() {
return "ADM manifest requirements not met. Braze will not register for ADM.";
}
}
public static final class i extends Lambda implements Function0 {
public static final i b = new i();
public i() {
super(0);
}
@Override
public final String invoke() {
return "Automatic ADM registration not enabled in configuration. Braze will not register for ADM.";
}
}
public static final class j extends Lambda implements Function0 {
public static final j b = new j();
public j() {
super(0);
}
@Override
public final String invoke() {
return "Failed to setup pre SDK tasks";
}
}
public static final class k extends Lambda implements Function0 {
public static final k b = new k();
public k() {
super(0);
}
@Override
public final String invoke() {
return "Starting up a new user dependency manager";
}
}
public e(Context context) {
super(0);
this.c = context;
}
public final void a() {
Braze braze;
Context context;
w3 w3Var;
Braze.this.applyPendingRuntimeConfiguration$android_sdk_base_release();
Braze.this.setConfigurationProvider$android_sdk_base_release(new BrazeConfigurationProvider(Braze.this.applicationContext));
Braze braze2 = Braze.this;
Companion companion = Braze.Companion;
String configuredApiKey = companion.getConfiguredApiKey(braze2.getConfigurationProvider$android_sdk_base_release());
braze2.setApiKeyPresent$android_sdk_base_release(Boolean.valueOf(!(configuredApiKey == null || myobfuscated.mn2.k.o(configuredApiKey))));
BrazeLogger.setInitialLogLevelFromConfiguration(Braze.this.getConfigurationProvider$android_sdk_base_release().getLoggerInitialLogLevel());
BrazeLogger.checkForSystemLogLevelProperty$default(false, 1, null);
if (companion.getSdkEnablementProvider(this.c).a()) {
companion.setOutboundNetworkRequestsOffline(true);
}
Braze.this.setPushDeliveryManager$android_sdk_base_release(new o4(Braze.this.applicationContext, Braze.this.getConfigurationProvider$android_sdk_base_release().getBrazeApiKey().toString()));
Braze.this.setDeviceIdProvider$android_sdk_base_release(new bo.app.l0(Braze.this.applicationContext));
Braze.this.offlineUserStorageProvider = new w3(Braze.this.applicationContext);
Braze.this.registrationDataProvider = new u4(Braze.this.applicationContext, Braze.this.getConfigurationProvider$android_sdk_base_release());
String customEndpoint = Braze.this.getConfigurationProvider$android_sdk_base_release().getCustomEndpoint();
if (customEndpoint != null && !myobfuscated.mn2.k.o(customEndpoint)) {
companion.setConfiguredCustomEndpoint$android_sdk_base_release(Braze.this.getConfigurationProvider$android_sdk_base_release().getCustomEndpoint());
}
try {
if (Braze.this.getConfigurationProvider$android_sdk_base_release().isFirebaseCloudMessagingRegistrationEnabled()) {
Context context2 = this.c;
bo.app.n2 n2Var = Braze.this.registrationDataProvider;
if (n2Var == null) {
Intrinsics.n("registrationDataProvider");
throw null;
}
bo.app.t1 t1Var = new bo.app.t1(context2, n2Var);
if (t1Var.a()) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.I, (Throwable) null, d.b, 2, (Object) null);
String firebaseCloudMessagingSenderIdKey = Braze.this.getConfigurationProvider$android_sdk_base_release().getFirebaseCloudMessagingSenderIdKey();
if (firebaseCloudMessagingSenderIdKey != null) {
t1Var.a(firebaseCloudMessagingSenderIdKey);
}
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.W, (Throwable) null, C0208e.b, 2, (Object) null);
}
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.I, (Throwable) null, f.b, 2, (Object) null);
}
if (!Braze.this.getConfigurationProvider$android_sdk_base_release().isAdmMessagingRegistrationEnabled()) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.I, (Throwable) null, i.b, 2, (Object) null);
} else if (bo.app.b.c.a(Braze.this.applicationContext)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.I, (Throwable) null, g.b, 2, (Object) null);
Context context3 = Braze.this.applicationContext;
bo.app.n2 n2Var2 = Braze.this.registrationDataProvider;
if (n2Var2 == null) {
Intrinsics.n("registrationDataProvider");
throw null;
}
new bo.app.b(context3, n2Var2).a();
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.W, (Throwable) null, h.b, 2, (Object) null);
}
Braze.this.verifyProperSdkSetup();
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(Braze.this, BrazeLogger.Priority.E, e, j.b);
}
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
Braze braze3 = Braze.this;
BrazeLogger.Priority priority = BrazeLogger.Priority.V;
BrazeLogger.brazelog$default(brazeLogger, braze3, priority, (Throwable) null, k.b, 2, (Object) null);
try {
braze = Braze.this;
context = braze.applicationContext;
w3Var = Braze.this.offlineUserStorageProvider;
} catch (Exception e2) {
BrazeLogger.INSTANCE.brazelog(Braze.this, BrazeLogger.Priority.E, e2, b.b);
Braze.this.publishError(e2);
}
if (w3Var == null) {
Intrinsics.n("offlineUserStorageProvider");
throw null;
}
BrazeConfigurationProvider configurationProvider$android_sdk_base_release = Braze.this.getConfigurationProvider$android_sdk_base_release();
bo.app.k2 externalIEventMessenger$android_sdk_base_release = Braze.this.getExternalIEventMessenger$android_sdk_base_release();
bo.app.h2 deviceIdProvider$android_sdk_base_release = Braze.this.getDeviceIdProvider$android_sdk_base_release();
bo.app.n2 n2Var3 = Braze.this.registrationDataProvider;
if (n2Var3 == null) {
Intrinsics.n("registrationDataProvider");
throw null;
}
braze.setUserSpecificMemberVariablesAndStartDispatch(new f7(context, w3Var, configurationProvider$android_sdk_base_release, externalIEventMessenger$android_sdk_base_release, deviceIdProvider$android_sdk_base_release, n2Var3, Braze.this.getPushDeliveryManager$android_sdk_base_release(), Braze.shouldMockNetworkRequestsAndDropEvents, Braze.areOutboundNetworkRequestsOffline, Braze.this.getDeviceDataProvider(), Braze.Companion.getShouldRequestFrameworkListenToNetworkUpdates$android_sdk_base_release()));
BrazeLogger.brazelog$default(brazeLogger, Braze.this, priority, (Throwable) null, a.b, 2, (Object) null);
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.V, (Throwable) null, c.b, 2, (Object) null);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class e2 extends Lambda implements Function0 {
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Feature flags not enabled. Not refreshing feature flags.";
}
}
public e2() {
super(0);
}
public final void a() {
if (Braze.this.getUdm$android_sdk_base_release().n().E()) {
Braze.this.getUdm$android_sdk_base_release().x().h();
return;
}
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, BrazeLogger.Priority.I, (Throwable) null, a.b, 2, (Object) null);
Braze.this.getUdm$android_sdk_base_release().g().a(new o1(), o1.class);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class e4 extends Lambda implements Function0 {
public static final e4 b = new e4();
public e4() {
super(0);
}
@Override
public final String invoke() {
return "Failed to validate and store push identifier";
}
}
public static final class f extends Lambda implements Function0 {
final long b;
final long c;
public f(long j, long j2) {
super(0);
this.b = j;
this.c = j2;
}
@Override
public final String invoke() {
StringBuilder sb = new StringBuilder("Braze SDK loaded in ");
sb.append(TimeUnit.MILLISECONDS.convert(this.b - this.c, TimeUnit.NANOSECONDS));
sb.append(" ms / ");
return com.appsflyer.internal.c.q(sb, this.b - this.c, " nanos");
}
}
public static final class f0 extends Lambda implements Function0 {
public static final f0 b = new f0();
public f0() {
super(0);
}
@Override
public final String invoke() {
return "ConfigurationProvider has not been initialized. Constructing a new one.";
}
}
public static final class f1 extends Lambda implements Function0 {
final String b;
public f1(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Failed to log purchase event of: " + this.b;
}
}
public static final class f4 extends SuspendLambda implements Function2 {
int b;
final String d;
public f4(String str, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.d = str;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((f4) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
return new f4(this.d, cVar);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
if (this.b == 0) {
myobfuscated.ik2.i.b(obj);
return Boolean.valueOf(Braze.this.getUdm$android_sdk_base_release().f().c(this.d));
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
public static final class g extends Lambda implements Function0 {
final String b;
final String c;
public g(String str, String str2) {
super(0);
this.b = str;
this.c = str2;
}
@Override
public final String invoke() {
return "Failed to update ContentCard storage provider with single card update. User id: " + this.b + " Serialized json: " + this.c;
}
}
public static final class g1 extends Lambda implements Function0 {
final String b;
final String c;
final BigDecimal d;
final int e;
final Braze f;
final BrazeProperties g;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Log purchase input was invalid. Not logging in-app purchase to Braze.";
}
}
public static final class b extends Lambda implements Function0 {
public static final b b = new b();
public b() {
super(0);
}
@Override
public final String invoke() {
return "Purchase logged with invalid properties. Not logging custom event to Braze.";
}
}
public g1(String str, String str2, BigDecimal bigDecimal, int i, Braze braze, BrazeProperties brazeProperties) {
super(0);
this.b = str;
this.c = str2;
this.d = bigDecimal;
this.e = i;
this.f = braze;
this.g = brazeProperties;
}
public final void a() {
String str = this.b;
if (!ValidationUtils.isValidLogPurchaseInput(str, this.c, this.d, this.e, this.f.getUdm$android_sdk_base_release().n())) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.f, BrazeLogger.Priority.W, (Throwable) null, a.b, 2, (Object) null);
return;
}
BrazeProperties brazeProperties = this.g;
if (brazeProperties != null && brazeProperties.isInvalid()) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.f, BrazeLogger.Priority.W, (Throwable) null, b.b, 2, (Object) null);
return;
}
String ensureBrazeFieldLength = ValidationUtils.ensureBrazeFieldLength(str);
i.a aVar = bo.app.i.h;
String str2 = this.c;
Intrinsics.e(str2);
BigDecimal bigDecimal = this.d;
Intrinsics.e(bigDecimal);
a2 a2 = aVar.a(ensureBrazeFieldLength, str2, bigDecimal, this.e, this.g);
if (a2 != null && this.f.getUdm$android_sdk_base_release().h().a(a2)) {
this.f.getUdm$android_sdk_base_release().v().a(new bo.app.h4(ensureBrazeFieldLength, this.g, a2));
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class g4 extends Lambda implements Function0 {
final String b;
public g4(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return defpackage.e.m(new StringBuilder("The Braze SDK requires the permission "), this.b, ". Check your AndroidManifest.");
}
}
public static final class h extends Lambda implements Function0 {
final String b;
final Braze c;
final String d;
public static final class a extends Lambda implements Function0 {
final String b;
final String c;
public a(String str, String str2) {
super(0);
this.b = str;
this.c = str2;
}
@Override
public final String invoke() {
return "Cannot add null or blank card json to storage. Returning. User id: " + this.b + " Serialized json: " + this.c;
}
}
public h(String str, Braze braze, String str2) {
super(0);
this.b = str;
this.c = braze;
this.d = str2;
}
public final void a() {
if (myobfuscated.mn2.k.o(this.b)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, new a(this.d, this.b), 2, (Object) null);
return;
}
this.c.getUdm$android_sdk_base_release().s().a(new x(this.b), this.d);
this.c.getExternalIEventMessenger$android_sdk_base_release().a(this.c.getUdm$android_sdk_base_release().s().b(), ContentCardsUpdatedEvent.class);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class h1 extends Lambda implements Function0 {
final String b;
public h1(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Error logging Push Delivery " + this.b;
}
}
public static final class h2 extends Lambda implements Function0 {
final String b;
public h2(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Failed to set the push token " + this.b;
}
}
public static final class h3 extends Lambda implements Function0 {
final InAppMessageEvent b;
public h3(InAppMessageEvent inAppMessageEvent) {
super(0);
this.b = inAppMessageEvent;
}
@Override
public final String invoke() {
return "Error retrying In-App Message from event " + this.b;
}
}
public static final class h4 extends Lambda implements Function0 {
public static final h4 b = new h4();
public h4() {
super(0);
}
@Override
public final String invoke() {
return "The Braze SDK requires a non-empty API key. Check your braze.xml or BrazeConfig.";
}
}
public static final class i extends Lambda implements Function0 {
final Class b;
public i(Class cls) {
super(0);
this.b = cls;
}
@Override
public final String invoke() {
return "Failed to add synchronous subscriber for class: " + this.b;
}
}
public static final class i1 extends Lambda implements Function0 {
final String c;
final long d;
public i1(String str, long j) {
super(0);
this.c = str;
this.d = j;
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().h().a(this.c);
Braze.this.schedulePushDelivery$android_sdk_base_release(this.d);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class i2 extends Lambda implements Function0 {
final String c;
public static final class a extends Lambda implements Function0 {
final String b;
public a(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return defpackage.e.m(new StringBuilder("Push token "), this.b, " registered and immediately being flushed.");
}
}
public static final class b extends Lambda implements Function0 {
public static final b b = new b();
public b() {
super(0);
}
@Override
public final String invoke() {
return "Push token must not be null or blank. Not registering for push with Braze.";
}
}
public i2(String str) {
super(0);
this.c = str;
}
public final void a() {
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
BrazeLogger.brazelog$default(brazeLogger, Braze.this, BrazeLogger.Priority.I, (Throwable) null, new a(this.c), 2, (Object) null);
String str = this.c;
if (str == null || myobfuscated.mn2.k.o(str)) {
BrazeLogger.brazelog$default(brazeLogger, Braze.this, BrazeLogger.Priority.W, (Throwable) null, b.b, 2, (Object) null);
return;
}
bo.app.n2 n2Var = Braze.this.registrationDataProvider;
if (n2Var == null) {
Intrinsics.n("registrationDataProvider");
throw null;
}
n2Var.a(this.c);
Braze.this.getUdm$android_sdk_base_release().l().e();
Braze.this.requestImmediateDataFlush();
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class i3 extends Lambda implements Function0 {
final InAppMessageEvent c;
public i3(InAppMessageEvent inAppMessageEvent) {
super(0);
this.c = inAppMessageEvent;
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().v().a(this.c.getTriggerEvent(), this.c.getTriggerAction());
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class i4 extends Lambda implements Function0 {
public static final i4 b = new i4();
public i4() {
super(0);
}
@Override
public final String invoke() {
return "The Braze SDK is not integrated correctly. Please visit https://www.braze.com/docs/developer_guide/platform_integration_guides/android/initial_sdk_setup/android_sdk_integration/";
}
}
public static final class j extends Lambda implements Function0 {
public static final j b = new j();
public j() {
super(0);
}
@Override
public final String invoke() {
return "Applying any pending runtime configuration values";
}
}
public static final class j0 extends SuspendLambda implements Function2 {
int b;
final IValueCallback c;
final Braze d;
public static final class a extends SuspendLambda implements Function2 {
int b;
final IValueCallback c;
final Braze d;
public a(IValueCallback iValueCallback, Braze braze, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.c = iValueCallback;
this.d = braze;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((a) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
return new a(this.c, this.d, cVar);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
if (this.b == 0) {
myobfuscated.ik2.i.b(obj);
IValueCallback iValueCallback = this.c;
BrazeUser brazeUser = this.d.brazeUser;
if (brazeUser != null) {
iValueCallback.onSuccess(brazeUser);
return Unit.a;
}
Intrinsics.n("brazeUser");
throw null;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
public j0(IValueCallback iValueCallback, Braze braze, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.c = iValueCallback;
this.d = braze;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((j0) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
return new j0(this.c, this.d, cVar);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
int i = this.b;
if (i == 0) {
myobfuscated.ik2.i.b(obj);
CoroutineContext coroutineContext = BrazeCoroutineScope.INSTANCE.getCoroutineContext();
a aVar = new a(this.c, this.d, null);
this.b = 1;
if (kotlinx.coroutines.b.f(coroutineContext, aVar, this) == coroutineSingletons) {
return coroutineSingletons;
}
} else if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
myobfuscated.ik2.i.b(obj);
}
return Unit.a;
}
}
public static final class j1 extends Lambda implements Function0 {
public static final j1 b = new j1();
public j1() {
super(0);
}
@Override
public final String invoke() {
return "Failed to log push max campaign";
}
}
public static final class j2 extends Lambda implements Function0 {
final Class b;
final IEventSubscriber c;
final boolean d;
public j2(Class cls, IEventSubscriber iEventSubscriber, boolean z) {
super(0);
this.b = cls;
this.c = iEventSubscriber;
this.d = z;
}
@Override
public final String invoke() {
return "Did remove the background " + this.b + ' ' + this.c + "? " + this.d;
}
}
public static final class j3 extends SuspendLambda implements Function2 {
int b;
final boolean c;
final Braze d;
final Function0 e;
final Function0 f;
public static final class a extends SuspendLambda implements Function2 {
int b;
private Object c;
final boolean d;
final Braze e;
final Function0 f;
final Function0 g;
public static final class C0209a extends Lambda implements Function0 {
final Function0 b;
public C0209a(Function0 function0) {
super(0);
this.b = function0;
}
@Override
public final String invoke() {
return "Early returning because the Braze instance isn't fully initialized. Always use Braze.getInstance(context) to get the latest Braze instance. Please report to Braze if the issue continues. > " + ((String) this.b.invoke());
}
}
public a(boolean z, Braze braze, Function0 function0, Function0 function02, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.d = z;
this.e = braze;
this.f = function0;
this.g = function02;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((a) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
a aVar = new a(this.d, this.e, this.f, this.g, cVar);
aVar.c = obj;
return aVar;
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
if (this.b == 0) {
myobfuscated.ik2.i.b(obj);
myobfuscated.pn2.f0 f0Var = (myobfuscated.pn2.f0) this.c;
if (this.d && this.e.udm == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, f0Var, BrazeLogger.Priority.W, (Throwable) null, new C0209a(this.g), 2, (Object) null);
return Unit.a;
}
this.f.invoke();
return Unit.a;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
public j3(boolean z, Braze braze, Function0 function0, Function0 function02, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.c = z;
this.d = braze;
this.e = function0;
this.f = function02;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((j3) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
return new j3(this.c, this.d, this.e, this.f, cVar);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
if (this.b == 0) {
myobfuscated.ik2.i.b(obj);
kotlinx.coroutines.b.d(EmptyCoroutineContext.INSTANCE, new a(this.c, this.d, this.e, this.f, null));
return Unit.a;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
public static final class k extends Lambda implements Function0 {
public static final k b = new k();
public k() {
super(0);
}
@Override
public final String invoke() {
return "Clearing config values";
}
}
public static final class k0 extends Lambda implements Function0 {
public static final k0 b = new k0();
public k0() {
super(0);
}
@Override
public final String invoke() {
return "Failed to retrieve the current user.";
}
}
public static final class k1 extends Lambda implements Function0 {
final String c;
public k1(String str) {
super(0);
this.c = str;
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().h().b(this.c);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class k2 extends Lambda implements Function0 {
final Class b;
final IEventSubscriber c;
final boolean d;
public k2(Class cls, IEventSubscriber iEventSubscriber, boolean z) {
super(0);
this.b = cls;
this.c = iEventSubscriber;
this.d = z;
}
@Override
public final String invoke() {
return "Did remove the synchronous " + this.b + ' ' + this.c + "? " + this.d;
}
}
public static final class k3 extends SuspendLambda implements Function2 {
int b;
final boolean c;
final Braze d;
final Object e;
final Function2 f;
final Function0 g;
public static final class a extends SuspendLambda implements Function2 {
int b;
final boolean c;
final Braze d;
final Object e;
final Function2 f;
final Function0 g;
public static final class C0210a extends SuspendLambda implements Function2 {
int b;
private Object c;
final boolean d;
final Braze e;
final Object f;
final Function2 g;
final Function0 h;
public static final class C0211a extends Lambda implements Function0 {
final Function0 b;
public C0211a(Function0 function0) {
super(0);
this.b = function0;
}
@Override
public final String invoke() {
return "Early returning because the Braze instance isn't fully initialized. Always use Braze.getInstance(context) to get the latest Braze instance. Please report to Braze if the issue continues. > " + ((String) this.b.invoke());
}
}
public C0210a(boolean z, Braze braze, Object obj, Function2 function2, Function0 function0, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.d = z;
this.e = braze;
this.f = obj;
this.g = function2;
this.h = function0;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((C0210a) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
C0210a c0210a = new C0210a(this.d, this.e, this.f, this.g, this.h, cVar);
c0210a.c = obj;
return c0210a;
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
int i = this.b;
if (i == 0) {
myobfuscated.ik2.i.b(obj);
myobfuscated.pn2.f0 f0Var = (myobfuscated.pn2.f0) this.c;
if (this.d && this.e.udm == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, f0Var, BrazeLogger.Priority.W, (Throwable) null, new C0211a(this.h), 2, (Object) null);
return this.f;
}
Function2 function2 = this.g;
this.b = 1;
obj = function2.invoke(f0Var, this);
if (obj == coroutineSingletons) {
return coroutineSingletons;
}
} else if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
myobfuscated.ik2.i.b(obj);
}
return obj;
}
}
public a(boolean z, Braze braze, Object obj, Function2 function2, Function0 function0, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.c = z;
this.d = braze;
this.e = obj;
this.f = function2;
this.g = function0;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((a) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
return new a(this.c, this.d, this.e, this.f, this.g, cVar);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
if (this.b == 0) {
myobfuscated.ik2.i.b(obj);
return kotlinx.coroutines.b.d(EmptyCoroutineContext.INSTANCE, new C0210a(this.c, this.d, this.e, this.f, this.g, null));
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
public k3(boolean z, Braze braze, Object obj, Function2 function2, Function0 function0, myobfuscated.mk2.c cVar) {
super(2, cVar);
this.c = z;
this.d = braze;
this.e = obj;
this.f = function2;
this.g = function0;
}
@Override
public final Object invoke(myobfuscated.pn2.f0 f0Var, myobfuscated.mk2.c cVar) {
return ((k3) create(f0Var, cVar)).invokeSuspend(Unit.a);
}
@Override
public final myobfuscated.mk2.c create(Object obj, myobfuscated.mk2.c cVar) {
return new k3(this.c, this.d, this.e, this.f, this.g, cVar);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
int i = this.b;
if (i == 0) {
myobfuscated.ik2.i.b(obj);
myobfuscated.pn2.k0 a2 = kotlinx.coroutines.b.a(o5.a, null, new a(this.c, this.d, this.e, this.f, this.g, null), 3);
this.b = 1;
obj = a2.S(this);
if (obj == coroutineSingletons) {
return coroutineSingletons;
}
} else if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
myobfuscated.ik2.i.b(obj);
}
return obj;
}
}
public static final class l extends Lambda implements Function0 {
final BrazeConfig b;
public l(BrazeConfig brazeConfig) {
super(0);
this.b = brazeConfig;
}
@Override
public final String invoke() {
return "Setting pending config object: " + this.b;
}
}
public static final class l1 extends Lambda implements Function0 {
public static final l1 b = new l1();
public l1() {
super(0);
}
@Override
public final String invoke() {
return "Failed to log push notification action clicked.";
}
}
public static final class l2 extends Lambda implements Function0 {
final Class b;
public l2(Class cls) {
super(0);
this.b = cls;
}
@Override
public final String invoke() {
return "Failed to remove " + this.b.getName() + " subscriber.";
}
}
public static final class l3 extends Lambda implements Function0 {
public static final l3 b = new l3();
public l3() {
super(0);
}
@Override
public final String invoke() {
return "Error scheduling push delivery";
}
}
public static final class m1 extends Lambda implements Function0 {
final String b;
final Braze c;
final String d;
final String e;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "No campaign Id associated with this notification (this is expected for test sends). Not logging push notification action clicked.";
}
}
public static final class b extends Lambda implements Function0 {
public static final b b = new b();
public b() {
super(0);
}
@Override
public final String invoke() {
return "Action ID cannot be null or blank.";
}
}
public static final class c extends Lambda implements Function0 {
public static final c b = new c();
public c() {
super(0);
}
@Override
public final String invoke() {
return "Action Type cannot be null or blank.";
}
}
public m1(String str, Braze braze, String str2, String str3) {
super(0);
this.b = str;
this.c = braze;
this.d = str2;
this.e = str3;
}
public final void a() {
String str = this.b;
if (str == null || myobfuscated.mn2.k.o(str)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, a.b, 2, (Object) null);
return;
}
String str2 = this.d;
if (str2 == null || myobfuscated.mn2.k.o(str2)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, b.b, 2, (Object) null);
return;
}
String str3 = this.e;
if (str3 == null || myobfuscated.mn2.k.o(str3)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, c.b, 2, (Object) null);
} else {
this.c.getUdm$android_sdk_base_release().h().a(j4.k.a(this.b, this.d, this.e));
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class m2 extends Lambda implements Function0 {
public static final m2 b = new m2();
public m2() {
super(0);
}
@Override
public final String invoke() {
return "Failed to request Content Cards refresh from Braze servers.";
}
}
public static final class m3 extends Lambda implements Function0 {
final long c;
public m3(long j) {
super(0);
this.c = j;
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().h().a(this.c);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class n2 extends Lambda implements Function0 {
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Content Cards is not enabled, skipping API call to refresh";
}
}
public n2() {
super(0);
}
public final void a() {
if (Braze.this.getUdm$android_sdk_base_release().n().B()) {
myobfuscated.f6.b.b(Braze.this.getUdm$android_sdk_base_release().h(), Braze.this.getUdm$android_sdk_base_release().s().e(), Braze.this.getUdm$android_sdk_base_release().s().f(), 0, true, 4, null);
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, Braze.this, (BrazeLogger.Priority) null, (Throwable) null, a.b, 3, (Object) null);
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class o extends Lambda implements Function0 {
final String b;
public o(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Failed to set external id to: " + this.b;
}
}
public static final class o2 extends Lambda implements Function0 {
public static final o2 b = new o2();
public o2() {
super(0);
}
@Override
public final String invoke() {
return "Failed to request Content Cards refresh from the cache.";
}
}
public static final class p extends Lambda implements Function0 {
final String b;
final Braze c;
final String d;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "userId passed to changeUser was null or empty. The current user will remain the active user.";
}
}
public static final class b extends Lambda implements Function0 {
final String b;
public b(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Rejected user id with byte length longer than 997. Not changing user. Input user id: " + this.b;
}
}
public static final class c extends Lambda implements Function0 {
final String b;
public c(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return defpackage.e.m(new StringBuilder("Received request to change current user "), this.b, " to the same user id. Not changing user.");
}
}
public static final class d extends Lambda implements Function0 {
final String b;
public d(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Set sdk auth signature on changeUser call: " + this.b;
}
}
public static final class e extends Lambda implements Function0 {
final String b;
public e(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Changing anonymous user to " + this.b;
}
}
public static final class f extends Lambda implements Function0 {
final String b;
final String c;
public f(String str, String str2) {
super(0);
this.b = str;
this.c = str2;
}
@Override
public final String invoke() {
StringBuilder sb = new StringBuilder("Changing current user ");
sb.append(this.b);
sb.append(" to new user ");
return defpackage.a.l(sb, this.c, JwtParser.SEPARATOR_CHAR);
}
}
public static final class g extends Lambda implements Function0 {
final String b;
public g(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Set sdk auth signature on changeUser call: " + this.b;
}
}
public p(String str, Braze braze, String str2) {
super(0);
this.b = str;
this.c = braze;
this.d = str2;
}
public final void a() {
String str = this.b;
if (str == null || str.length() == 0) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, a.b, 2, (Object) null);
} else if (StringUtils.getByteSize(this.b) > 997) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, new b(this.b), 2, (Object) null);
} else {
BrazeUser brazeUser = this.c.brazeUser;
if (brazeUser == null) {
Intrinsics.n("brazeUser");
throw null;
}
String userId = brazeUser.getUserId();
if (Intrinsics.c(userId, this.b)) {
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
BrazeLogger.brazelog$default(brazeLogger, this.c, BrazeLogger.Priority.I, (Throwable) null, new c(this.b), 2, (Object) null);
String str2 = this.d;
if (str2 == null || myobfuscated.mn2.k.o(str2)) {
return;
}
BrazeLogger.brazelog$default(brazeLogger, this.c, (BrazeLogger.Priority) null, (Throwable) null, new d(this.d), 3, (Object) null);
this.c.getUdm$android_sdk_base_release().i().a(this.d);
return;
}
this.c.getUdm$android_sdk_base_release().g().a();
this.c.getUdm$android_sdk_base_release().p().d();
if (Intrinsics.c(userId, "")) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.I, (Throwable) null, new e(this.b), 2, (Object) null);
w3 w3Var = this.c.offlineUserStorageProvider;
if (w3Var == null) {
Intrinsics.n("offlineUserStorageProvider");
throw null;
}
w3Var.a(this.b);
BrazeUser brazeUser2 = this.c.brazeUser;
if (brazeUser2 == null) {
Intrinsics.n("brazeUser");
throw null;
}
brazeUser2.setUserId(this.b);
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.I, (Throwable) null, new f(userId, this.b), 2, (Object) null);
this.c.getExternalIEventMessenger$android_sdk_base_release().a(new FeedUpdatedEvent(new ArrayList(), this.b, false, DateTimeUtils.nowInSeconds()), FeedUpdatedEvent.class);
}
this.c.getUdm$android_sdk_base_release().h().g();
this.c.getUdm$android_sdk_base_release().b().a();
w3 w3Var2 = this.c.offlineUserStorageProvider;
if (w3Var2 == null) {
Intrinsics.n("offlineUserStorageProvider");
throw null;
}
w3Var2.a(this.b);
bo.app.d3 udm$android_sdk_base_release = this.c.getUdm$android_sdk_base_release();
Context context = this.c.applicationContext;
w3 w3Var3 = this.c.offlineUserStorageProvider;
if (w3Var3 == null) {
Intrinsics.n("offlineUserStorageProvider");
throw null;
}
BrazeConfigurationProvider configurationProvider$android_sdk_base_release = this.c.getConfigurationProvider$android_sdk_base_release();
bo.app.k2 externalIEventMessenger$android_sdk_base_release = this.c.getExternalIEventMessenger$android_sdk_base_release();
bo.app.h2 deviceIdProvider$android_sdk_base_release = this.c.getDeviceIdProvider$android_sdk_base_release();
bo.app.n2 n2Var = this.c.registrationDataProvider;
if (n2Var == null) {
Intrinsics.n("registrationDataProvider");
throw null;
}
this.c.setUserSpecificMemberVariablesAndStartDispatch(new f7(context, w3Var3, configurationProvider$android_sdk_base_release, externalIEventMessenger$android_sdk_base_release, deviceIdProvider$android_sdk_base_release, n2Var, this.c.getPushDeliveryManager$android_sdk_base_release(), Braze.shouldMockNetworkRequestsAndDropEvents, Braze.areOutboundNetworkRequestsOffline, this.c.getDeviceDataProvider(), Braze.Companion.getShouldRequestFrameworkListenToNetworkUpdates$android_sdk_base_release()));
String str3 = this.d;
if (str3 != null && !myobfuscated.mn2.k.o(str3)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, (BrazeLogger.Priority) null, (Throwable) null, new g(this.d), 3, (Object) null);
this.c.getUdm$android_sdk_base_release().i().a(this.d);
}
this.c.getUdm$android_sdk_base_release().k().g();
this.c.getUdm$android_sdk_base_release().h().f();
udm$android_sdk_base_release.a();
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class p0 extends Lambda implements Function0 {
public static final p0 b = new p0();
public p0() {
super(0);
}
@Override
public final String invoke() {
return "Error handling test in-app message push";
}
}
public static final class p1 extends Lambda implements Function0 {
final Intent b;
public p1(Intent intent) {
super(0);
this.b = intent;
}
@Override
public final String invoke() {
return "Error logging push notification with intent: " + this.b;
}
}
public static final class p2 extends Lambda implements Function0 {
public p2() {
super(0);
}
public final void a() {
Braze.this.getExternalIEventMessenger$android_sdk_base_release().a(Braze.this.getUdm$android_sdk_base_release().s().b(), ContentCardsUpdatedEvent.class);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class q extends Lambda implements Function0 {
public static final q b = new q();
public q() {
super(0);
}
@Override
public final String invoke() {
return "Failed to close session.";
}
}
public static final class q0 extends Lambda implements Function0 {
final Intent b;
final Braze c;
public q0(Intent intent, Braze braze) {
super(0);
this.b = intent;
this.c = braze;
}
public final void a() {
Braze.Companion.requestTriggersIfInAppMessageTestPush$android_sdk_base_release(this.b, this.c.getUdm$android_sdk_base_release().h());
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class q1 extends Lambda implements Function0 {
final Intent b;
final Braze c;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Cannot logPushNotificationOpened with null intent. Not logging push click.";
}
}
public static final class b extends Lambda implements Function0 {
final String b;
public b(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Logging push click. Campaign Id: " + this.b;
}
}
public static final class c extends Lambda implements Function0 {
public static final c b = new c();
public c() {
super(0);
}
@Override
public final String invoke() {
return "No campaign Id associated with this notification (this is expected for test sends). Not logging push click.";
}
}
public q1(Intent intent, Braze braze) {
super(0);
this.b = intent;
this.c = braze;
}
public final void a() {
Intent intent = this.b;
if (intent == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.I, (Throwable) null, a.b, 2, (Object) null);
return;
}
String stringExtra = intent.getStringExtra("cid");
if (stringExtra == null || myobfuscated.mn2.k.o(stringExtra)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.I, (Throwable) null, c.b, 2, (Object) null);
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.I, (Throwable) null, new b(stringExtra), 2, (Object) null);
this.c.getUdm$android_sdk_base_release().h().a(m4.j.a(stringExtra));
}
Braze.Companion.requestTriggersIfInAppMessageTestPush$android_sdk_base_release(this.b, this.c.getUdm$android_sdk_base_release().h());
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class q2 extends Lambda implements Function0 {
public static final q2 b = new q2();
public q2() {
super(0);
}
@Override
public final String invoke() {
return "Failed to request refresh of feed.";
}
}
public static final class r extends Lambda implements Function0 {
final Activity b;
final Braze c;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Cannot close session with null activity.";
}
}
public r(Activity activity, Braze braze) {
super(0);
this.b = activity;
this.c = braze;
}
public final void a() {
if (this.b == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, a.b, 2, (Object) null);
} else {
this.c.getUdm$android_sdk_base_release().h().closeSession(this.b);
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class r0 extends Lambda implements Function0 {
public static final r0 b = new r0();
public r0() {
super(0);
}
@Override
public final String invoke() {
return "Ephemeral events enabled";
}
}
public static final class r1 extends Lambda implements Function0 {
final String b;
final String c;
public r1(String str, String str2) {
super(0);
this.b = str;
this.c = str2;
}
@Override
public final String invoke() {
return "Failed to log push story page clicked for pageId: " + this.b + " campaignId: " + this.c;
}
}
public static final class r2 extends Lambda implements Function0 {
public r2() {
super(0);
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().h().a(new b4.a(null, null, null, null, 15, null).d());
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class r3 extends Lambda implements Function0 {
final boolean b;
public r3(boolean z) {
super(0);
this.b = z;
}
@Override
public final String invoke() {
return "Failed to set sync policy offline to " + this.b;
}
}
public static final class s0 extends Lambda implements Function0 {
final String b;
final Set c;
final boolean d;
public s0(String str, Set set, boolean z) {
super(0);
this.b = str;
this.c = set;
this.d = z;
}
@Override
public final String invoke() {
return "Checking event key [" + this.b + "] against ephemeral event list " + this.c + " and got match?: " + this.d;
}
}
public static final class s1 extends Lambda implements Function0 {
final String b;
final String c;
final Braze d;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Push story page click input was invalid. Not logging in-app purchase to Braze.";
}
}
public s1(String str, String str2, Braze braze) {
super(0);
this.b = str;
this.c = str2;
this.d = braze;
}
public final void a() {
if (!ValidationUtils.isValidPushStoryClickInput(this.b, this.c)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.d, BrazeLogger.Priority.W, (Throwable) null, a.b, 2, (Object) null);
return;
}
i.a aVar = bo.app.i.h;
String str = this.b;
Intrinsics.e(str);
String str2 = this.c;
Intrinsics.e(str2);
a2 e = aVar.e(str, str2);
if (e != null) {
this.d.getUdm$android_sdk_base_release().h().a(e);
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class s2 extends Lambda implements Function0 {
public static final s2 b = new s2();
public s2() {
super(0);
}
@Override
public final String invoke() {
return "Failed to retrieve and publish feed from offline cache.";
}
}
public static final class s3 extends Lambda implements Function0 {
final boolean c;
public static final class a extends Lambda implements Function0 {
final boolean b;
public a(boolean z) {
super(0);
this.b = z;
}
@Override
public final String invoke() {
return "Setting the image loader deny network downloads to " + this.b;
}
}
public s3(boolean z) {
super(0);
this.c = z;
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().h().c(this.c);
Braze.this.getUdm$android_sdk_base_release().m().a(this.c);
Braze braze = Braze.this;
if (braze.imageLoader != null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, braze, (BrazeLogger.Priority) null, (Throwable) null, new a(this.c), 3, (Object) null);
Braze.this.getImageLoader().setOffline(this.c);
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class t0 extends Lambda implements Function0 {
final String b;
public t0(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return "Failed to log custom event: " + this.b;
}
}
public static final class t1 extends Lambda implements Function0 {
public static final t1 b = new t1();
public t1() {
super(0);
}
@Override
public final String invoke() {
return "Failed to open session.";
}
}
public static final class t2 extends Lambda implements Function0 {
public t2() {
super(0);
}
public final void a() {
Braze.this.getExternalIEventMessenger$android_sdk_base_release().a(Braze.this.getUdm$android_sdk_base_release().d().a(), FeedUpdatedEvent.class);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class t3 extends Lambda implements Function0 {
public static final t3 b = new t3();
public t3() {
super(0);
}
@Override
public final String invoke() {
return "Failed to add subscriber for Content Cards updates.";
}
}
public static final class u0 extends Lambda implements Function0 {
final String b;
final Braze c;
final BrazeProperties d;
public static final class a extends Lambda implements Function0 {
final Ref$ObjectRef b;
public a(Ref$ObjectRef ref$ObjectRef) {
super(0);
this.b = ref$ObjectRef;
}
@Override
public final String invoke() {
return defpackage.e.m(new StringBuilder("Logged custom event with name "), (String) this.b.element, " was invalid. Not logging custom event to Braze.");
}
}
public static final class b extends Lambda implements Function0 {
final Ref$ObjectRef b;
public b(Ref$ObjectRef ref$ObjectRef) {
super(0);
this.b = ref$ObjectRef;
}
@Override
public final String invoke() {
return defpackage.e.m(new StringBuilder("Custom event with name "), (String) this.b.element, " logged with invalid properties. Not logging custom event to Braze.");
}
}
public u0(String str, Braze braze, BrazeProperties brazeProperties) {
super(0);
this.b = str;
this.c = braze;
this.d = brazeProperties;
}
public final void a() {
Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
?? r1 = this.b;
ref$ObjectRef.element = r1;
if (!ValidationUtils.isValidLogCustomEventInput(r1, this.c.getUdm$android_sdk_base_release().n())) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, new a(ref$ObjectRef), 2, (Object) null);
return;
}
BrazeProperties brazeProperties = this.d;
if (brazeProperties != null && brazeProperties.isInvalid()) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.W, (Throwable) null, new b(ref$ObjectRef), 2, (Object) null);
return;
}
?? ensureBrazeFieldLength = ValidationUtils.ensureBrazeFieldLength((String) ref$ObjectRef.element);
ref$ObjectRef.element = ensureBrazeFieldLength;
a2 a2 = bo.app.i.h.a((String) ensureBrazeFieldLength, this.d);
if (a2 == null) {
return;
}
if (this.c.isEphemeralEventKey((String) ref$ObjectRef.element) ? this.c.getUdm$android_sdk_base_release().n().D() : this.c.getUdm$android_sdk_base_release().h().a(a2)) {
this.c.getUdm$android_sdk_base_release().v().a(new bo.app.b0((String) ref$ObjectRef.element, this.d, a2));
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class u1 extends Lambda implements Function0 {
final Activity b;
final Braze c;
public static final class a extends Lambda implements Function0 {
public static final a b = new a();
public a() {
super(0);
}
@Override
public final String invoke() {
return "Cannot open session with null activity.";
}
}
public u1(Activity activity, Braze braze) {
super(0);
this.b = activity;
this.c = braze;
}
public final void a() {
if (this.b == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this.c, BrazeLogger.Priority.I, (Throwable) null, a.b, 2, (Object) null);
} else {
this.c.getUdm$android_sdk_base_release().h().openSession(this.b);
}
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class v1 extends Lambda implements Function0 {
public static final v1 b = new v1();
public v1() {
super(0);
}
@Override
public final String invoke() {
return "Failed to flush push delivery events";
}
}
public static final class w1 extends Lambda implements Function0 {
public w1() {
super(0);
}
public final void a() {
myobfuscated.f6.b.a(Braze.this.getUdm$android_sdk_base_release().h(), 0L, 1, null);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class w2 extends Lambda implements Function0 {
final boolean b;
public w2(boolean z) {
super(0);
this.b = z;
}
@Override
public final String invoke() {
return "Failed to request geofence refresh with rate limit ignore: " + this.b;
}
}
public static final class x1 extends Lambda implements Function0 {
public static final x1 b = new x1();
public x1() {
super(0);
}
@Override
public final String invoke() {
return "User dependency manager is uninitialized. Not publishing error.";
}
}
public static final class x2 extends Lambda implements Function0 {
final boolean c;
public x2(boolean z) {
super(0);
this.c = z;
}
public final void a() {
Braze.this.getUdm$android_sdk_base_release().r().requestGeofenceRefresh(this.c);
}
@Override
public Object invoke() {
a();
return Unit.a;
}
}
public static final class x3 extends Lambda implements Function0 {
public static final x3 b = new x3();
public x3() {
super(0);
}
@Override
public final String invoke() {
return "Failed to add subscriber for feed updates.";
}
}
public static final class y1 extends Lambda implements Function0 {
final Throwable b;
public y1(Throwable th) {
super(0);
this.b = th;
}
@Override
public final String invoke() {
return "Failed to log throwable: " + this.b;
}
}
public static final class z3 extends Lambda implements Function0 {
public static final z3 b = new z3();
public z3() {
super(0);
}
@Override
public final String invoke() {
return "Failed to add subscriber to new in-app messages.";
}
}
public Braze(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
long nanoTime = System.nanoTime();
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
BrazeLogger.brazelog$default(brazeLogger, this, (BrazeLogger.Priority) null, (Throwable) null, a.b, 3, (Object) null);
Context applicationContext = context.getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "context.applicationContext");
this.applicationContext = applicationContext;
String str = Build.MODEL;
if (str != null) {
Set<String> set = KNOWN_APP_CRAWLER_DEVICE_MODELS;
String lowerCase = str.toLowerCase(Locale.ROOT);
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
if (set.contains(lowerCase)) {
BrazeLogger.brazelog$default(brazeLogger, this, BrazeLogger.Priority.I, (Throwable) null, new b(str), 2, (Object) null);
Companion.enableMockNetworkRequestsAndDropEventsMode();
}
}
setImageLoader(new DefaultBrazeImageLoader(this.applicationContext));
this.externalIEventMessenger = new bo.app.g1(Companion.getSdkEnablementProvider(this.applicationContext));
BrazeLogger.brazelog$default(brazeLogger, this, BrazeLogger.Priority.V, (Throwable) null, new c(), 2, (Object) null);
run$android_sdk_base_release(d.b, false, false, new e(context));
BrazeLogger.brazelog$default(brazeLogger, this, (BrazeLogger.Priority) null, (Throwable) null, new f(System.nanoTime(), nanoTime), 3, (Object) null);
}
public final g2 getDeviceDataProvider() {
g2 g2Var = deviceDataProvider;
if (g2Var == null) {
g2Var = new bo.app.k0(this.applicationContext, getConfigurationProvider$android_sdk_base_release());
}
deviceDataProvider = g2Var;
return g2Var;
}
public static final Braze getInstance(Context context) {
return Companion.getInstance(context);
}
public final boolean isEphemeralEventKey(String str) {
if (getConfigurationProvider$android_sdk_base_release().isEphemeralEventsEnabled()) {
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
BrazeLogger.Priority priority = BrazeLogger.Priority.V;
BrazeLogger.brazelog$default(brazeLogger, this, priority, (Throwable) null, r0.b, 2, (Object) null);
Set<String> ephemeralEventKeys = getConfigurationProvider$android_sdk_base_release().getEphemeralEventKeys();
boolean contains = ephemeralEventKeys.contains(str);
BrazeLogger.brazelog$default(brazeLogger, this, priority, (Throwable) null, new s0(str, ephemeralEventKeys, contains), 2, (Object) null);
return contains;
}
return false;
}
public final void publishError(Throwable th) {
if (this.udm == null) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.V, th, x1.b);
return;
}
try {
getUdm$android_sdk_base_release().g().a(th, Throwable.class);
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.E, e3, new y1(th));
}
}
public static void run$android_sdk_base_release$default(Braze braze, Function0 function0, boolean z, boolean z2, Function0 function02, int i5, Object obj) {
if ((i5 & 2) != 0) {
z = true;
}
if ((i5 & 4) != 0) {
z2 = true;
}
braze.run$android_sdk_base_release(function0, z, z2, function02);
}
private final <T> T runForResult(T t, Function0<String> function0, boolean z, boolean z2, Function2<? super myobfuscated.pn2.f0, ? super myobfuscated.mk2.c<? super T>, ? extends Object> function2) {
if (z) {
try {
if (Companion.isDisabled()) {
return t;
}
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, function0);
publishError(e3);
return t;
}
}
return (T) kotlinx.coroutines.b.d(EmptyCoroutineContext.INSTANCE, new k3(z2, this, t, function2, function0, null));
}
public static Object runForResult$default(Braze braze, Object obj, Function0 function0, boolean z, boolean z2, Function2 function2, int i5, Object obj2) {
return braze.runForResult(obj, function0, (i5 & 4) != 0 ? true : z, (i5 & 8) != 0 ? true : z2, function2);
}
public final void setSyncPolicyOfflineStatus(boolean z) {
run$android_sdk_base_release$default(this, new r3(z), false, false, new s3(z), 6, null);
}
public final void setUserSpecificMemberVariablesAndStartDispatch(f7 f7Var) {
setUdm$android_sdk_base_release(f7Var);
o5.a.a(getUdm$android_sdk_base_release().g());
e7 k4 = getUdm$android_sdk_base_release().k();
bo.app.c2 h5 = getUdm$android_sdk_base_release().h();
w3 w3Var = this.offlineUserStorageProvider;
if (w3Var == null) {
Intrinsics.n("offlineUserStorageProvider");
throw null;
}
this.brazeUser = new BrazeUser(k4, h5, w3Var.a(), getUdm$android_sdk_base_release().q(), getUdm$android_sdk_base_release().n());
getUdm$android_sdk_base_release().y().a(getUdm$android_sdk_base_release().g());
getUdm$android_sdk_base_release().o().a(getUdm$android_sdk_base_release().g());
getUdm$android_sdk_base_release().w().j();
}
public final void verifyProperSdkSetup() {
boolean z = true;
for (String str : NECESSARY_BRAZE_SDK_PERMISSIONS) {
if (!PermissionUtils.hasPermission(this.applicationContext, str)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, new g4(str), 2, (Object) null);
z = false;
}
}
if (myobfuscated.mn2.k.o(getConfigurationProvider$android_sdk_base_release().getBrazeApiKey().toString())) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, h4.b, 2, (Object) null);
} else if (z) {
return;
}
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, i4.b, 2, (Object) null);
}
public final void addSerializedCardJsonToStorage$android_sdk_base_release(String serializedCardJson, String str) {
Intrinsics.checkNotNullParameter(serializedCardJson, "serializedCardJson");
run$android_sdk_base_release$default(this, new g(str, serializedCardJson), false, false, new h(serializedCardJson, this, str), 6, null);
}
public <T> void addSingleSynchronousSubscription(IEventSubscriber<T> subscriber, Class<T> eventClass) {
Intrinsics.checkNotNullParameter(subscriber, "subscriber");
Intrinsics.checkNotNullParameter(eventClass, "eventClass");
try {
this.externalIEventMessenger.c(eventClass, subscriber);
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, new i(eventClass));
publishError(e3);
}
}
public final void applyPendingRuntimeConfiguration$android_sdk_base_release() {
ReentrantLock reentrantLock = brazeClassLock;
reentrantLock.lock();
try {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, (BrazeLogger.Priority) null, (Throwable) null, j.b, 3, (Object) null);
RuntimeAppConfigurationProvider runtimeAppConfigurationProvider = new RuntimeAppConfigurationProvider(this.applicationContext);
for (BrazeConfig brazeConfig : pendingConfigurations) {
if (Intrinsics.c(brazeConfig, clearConfigSentinel)) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.V, (Throwable) null, k.b, 2, (Object) null);
runtimeAppConfigurationProvider.clearAllConfigurationValues();
} else {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.V, (Throwable) null, new l(brazeConfig), 2, (Object) null);
runtimeAppConfigurationProvider.setConfiguration(brazeConfig);
}
}
pendingConfigurations.clear();
Unit unit = Unit.a;
reentrantLock.unlock();
} catch (Throwable th) {
reentrantLock.unlock();
throw th;
}
}
public void changeUser(String str) {
changeUser(str, null);
}
public void changeUser(String str, String str2) {
run$android_sdk_base_release$default(this, new o(str), false, false, new p(str, this, str2), 6, null);
}
public void closeSession(Activity activity) {
run$android_sdk_base_release$default(this, q.b, false, false, new r(activity, this), 6, null);
}
public final BrazeConfigurationProvider getConfigurationProvider$android_sdk_base_release() {
BrazeConfigurationProvider brazeConfigurationProvider = this.configurationProvider;
if (brazeConfigurationProvider != null) {
return brazeConfigurationProvider;
}
Intrinsics.n("configurationProvider");
throw null;
}
public final BrazeConfigurationProvider getConfigurationProviderSafe$android_sdk_base_release(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
if (this.configurationProvider != null) {
return getConfigurationProvider$android_sdk_base_release();
}
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, (BrazeLogger.Priority) null, (Throwable) null, f0.b, 3, (Object) null);
return new BrazeConfigurationProvider(context);
}
public void getCurrentUser(IValueCallback<BrazeUser> completionCallback) {
Intrinsics.checkNotNullParameter(completionCallback, "completionCallback");
if (Companion.isDisabled()) {
completionCallback.onError();
return;
}
try {
kotlinx.coroutines.b.c(o5.a, null, null, new j0(completionCallback, this, null), 3);
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, k0.b);
completionCallback.onError();
publishError(e3);
}
}
public String getDeviceId() {
return (String) runForResult("", a0.b, false, false, new b0(null));
}
public final bo.app.h2 getDeviceIdProvider$android_sdk_base_release() {
bo.app.h2 h2Var = this.deviceIdProvider;
if (h2Var != null) {
return h2Var;
}
Intrinsics.n("deviceIdProvider");
throw null;
}
public final bo.app.k2 getExternalIEventMessenger$android_sdk_base_release() {
return this.externalIEventMessenger;
}
public IBrazeImageLoader getImageLoader() {
IBrazeImageLoader iBrazeImageLoader = this.imageLoader;
if (iBrazeImageLoader != null) {
return iBrazeImageLoader;
}
Intrinsics.n("imageLoader");
throw null;
}
public final o4 getPushDeliveryManager$android_sdk_base_release() {
o4 o4Var = this.pushDeliveryManager;
if (o4Var != null) {
return o4Var;
}
Intrinsics.n("pushDeliveryManager");
throw null;
}
public final bo.app.d3 getUdm$android_sdk_base_release() {
bo.app.d3 d3Var = this.udm;
if (d3Var != null) {
return d3Var;
}
Intrinsics.n("udm");
throw null;
}
public final void handleInAppMessageTestPush$android_sdk_base_release(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
run$android_sdk_base_release$default(this, p0.b, false, false, new q0(intent, this), 6, null);
}
public final Boolean isApiKeyPresent$android_sdk_base_release() {
return this.isApiKeyPresent;
}
public void logCustomEvent(String str) {
logCustomEvent(str, null);
}
public void logCustomEvent(String str, BrazeProperties brazeProperties) {
run$android_sdk_base_release$default(this, new t0(str), false, false, new u0(str, this, brazeProperties != null ? brazeProperties.clone() : null), 6, null);
}
public void logFeedDisplayed() {
run$android_sdk_base_release$default(this, b1.b, false, false, new c1(), 6, null);
}
public void logPurchase(String str, String str2, BigDecimal bigDecimal) {
logPurchase(str, str2, bigDecimal, 1);
}
public void logPurchase(String str, String str2, BigDecimal bigDecimal, int i5) {
logPurchase(str, str2, bigDecimal, i5, null);
}
public void logPurchase(String str, String str2, BigDecimal bigDecimal, int i5, BrazeProperties brazeProperties) {
run$android_sdk_base_release$default(this, new f1(str), false, false, new g1(str, str2, bigDecimal, i5, this, brazeProperties != null ? brazeProperties.clone() : null), 6, null);
}
public final void logPushDelivery$android_sdk_base_release(String campaignId, long j4) {
Intrinsics.checkNotNullParameter(campaignId, "campaignId");
run$android_sdk_base_release$default(this, new h1(campaignId), false, false, new i1(campaignId, j4), 6, null);
}
public final void logPushMaxCampaign$android_sdk_base_release(String campaign) {
Intrinsics.checkNotNullParameter(campaign, "campaign");
run$android_sdk_base_release$default(this, j1.b, false, false, new k1(campaign), 6, null);
}
public void logPushNotificationActionClicked(String str, String str2, String str3) {
run$android_sdk_base_release$default(this, l1.b, false, false, new m1(str, this, str2, str3), 6, null);
}
public void logPushNotificationOpened(Intent intent) {
run$android_sdk_base_release$default(this, new p1(intent), false, false, new q1(intent, this), 6, null);
}
public void logPushStoryPageClicked(String str, String str2) {
run$android_sdk_base_release$default(this, new r1(str2, str), false, false, new s1(str, str2, this), 6, null);
}
public void openSession(Activity activity) {
run$android_sdk_base_release$default(this, t1.b, false, false, new u1(activity, this), 6, null);
}
public final void performPushDeliveryFlush$android_sdk_base_release() {
run$android_sdk_base_release$default(this, v1.b, false, false, new w1(), 6, null);
}
public final void publishBrazePushAction$android_sdk_base_release(BrazePushEventType pushActionType, BrazeNotificationPayload payload) {
Intrinsics.checkNotNullParameter(pushActionType, "pushActionType");
Intrinsics.checkNotNullParameter(payload, "payload");
this.externalIEventMessenger.a(new BrazePushEvent(pushActionType, payload), BrazePushEvent.class);
}
public final void reenqueueInAppMessage$android_sdk_base_release(InAppMessageEvent event) {
Intrinsics.checkNotNullParameter(event, "event");
run$android_sdk_base_release$default(this, new b2(event), false, false, new c2(event), 6, null);
}
public void refreshFeatureFlags() {
run$android_sdk_base_release$default(this, d2.b, false, false, new e2(), 6, null);
}
public <T> void removeSingleSubscription(IEventSubscriber<T> iEventSubscriber, Class<T> eventClass) {
Intrinsics.checkNotNullParameter(eventClass, "eventClass");
if (iEventSubscriber != null) {
try {
boolean d4 = this.externalIEventMessenger.d(eventClass, iEventSubscriber);
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
BrazeLogger.Priority priority = BrazeLogger.Priority.V;
BrazeLogger.brazelog$default(brazeLogger, this, priority, (Throwable) null, new j2(eventClass, iEventSubscriber, d4), 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, this, priority, (Throwable) null, new k2(eventClass, iEventSubscriber, this.externalIEventMessenger.b(eventClass, iEventSubscriber)), 2, (Object) null);
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, new l2(eventClass));
publishError(e3);
}
}
}
public void requestContentCardsRefresh() {
run$android_sdk_base_release$default(this, m2.b, false, false, new n2(), 6, null);
}
public void requestContentCardsRefreshFromCache() {
run$android_sdk_base_release$default(this, o2.b, false, false, new p2(), 6, null);
}
public void requestFeedRefresh() {
run$android_sdk_base_release$default(this, q2.b, false, false, new r2(), 6, null);
}
public void requestFeedRefreshFromCache() {
run$android_sdk_base_release$default(this, s2.b, false, false, new t2(), 6, null);
}
public final void requestGeofenceRefresh$android_sdk_base_release(boolean z) {
run$android_sdk_base_release$default(this, new w2(z), false, false, new x2(z), 6, null);
}
public void requestImmediateDataFlush() {
run$android_sdk_base_release$default(this, c3.b, false, false, new d3(), 6, null);
}
public final void retryInAppMessage$android_sdk_base_release(InAppMessageEvent event) {
Intrinsics.checkNotNullParameter(event, "event");
run$android_sdk_base_release$default(this, new h3(event), false, false, new i3(event), 6, null);
}
public final void run$android_sdk_base_release(Function0 errorLog, boolean z, boolean z2, Function0 block) {
Intrinsics.checkNotNullParameter(errorLog, "errorLog");
Intrinsics.checkNotNullParameter(block, "block");
if (z) {
try {
if (Companion.isDisabled()) {
return;
}
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, errorLog);
publishError(e3);
return;
}
}
kotlinx.coroutines.b.c(o5.a, null, null, new j3(z2, this, block, errorLog, null), 3);
}
public final void schedulePushDelivery$android_sdk_base_release(long j4) {
run$android_sdk_base_release$default(this, l3.b, false, false, new m3(j4), 6, null);
}
public final void setApiKeyPresent$android_sdk_base_release(Boolean bool) {
this.isApiKeyPresent = bool;
}
public final void setConfigurationProvider$android_sdk_base_release(BrazeConfigurationProvider brazeConfigurationProvider) {
Intrinsics.checkNotNullParameter(brazeConfigurationProvider, "<set-?>");
this.configurationProvider = brazeConfigurationProvider;
}
public final void setDeviceIdProvider$android_sdk_base_release(bo.app.h2 h2Var) {
Intrinsics.checkNotNullParameter(h2Var, "<set-?>");
this.deviceIdProvider = h2Var;
}
public void setImageLoader(IBrazeImageLoader iBrazeImageLoader) {
Intrinsics.checkNotNullParameter(iBrazeImageLoader, "<set-?>");
this.imageLoader = iBrazeImageLoader;
}
public final void setPushDeliveryManager$android_sdk_base_release(o4 o4Var) {
Intrinsics.checkNotNullParameter(o4Var, "<set-?>");
this.pushDeliveryManager = o4Var;
}
public void setRegisteredPushToken(String str) {
run$android_sdk_base_release$default(this, new h2(str), false, false, new i2(str), 6, null);
}
public final void setUdm$android_sdk_base_release(bo.app.d3 d3Var) {
Intrinsics.checkNotNullParameter(d3Var, "<set-?>");
this.udm = d3Var;
}
public void subscribeToContentCardsUpdates(IEventSubscriber<ContentCardsUpdatedEvent> subscriber) {
Intrinsics.checkNotNullParameter(subscriber, "subscriber");
try {
this.externalIEventMessenger.a(ContentCardsUpdatedEvent.class, subscriber);
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, t3.b);
publishError(e3);
}
}
public void subscribeToFeedUpdates(IEventSubscriber<FeedUpdatedEvent> subscriber) {
Intrinsics.checkNotNullParameter(subscriber, "subscriber");
try {
this.externalIEventMessenger.a(FeedUpdatedEvent.class, subscriber);
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, x3.b);
publishError(e3);
}
}
public void subscribeToNewInAppMessages(IEventSubscriber<InAppMessageEvent> subscriber) {
Intrinsics.checkNotNullParameter(subscriber, "subscriber");
try {
this.externalIEventMessenger.a(InAppMessageEvent.class, subscriber);
} catch (Exception e3) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.W, e3, z3.b);
publishError(e3);
}
}
public final boolean validateAndStorePushId$android_sdk_base_release(String pushId) {
Intrinsics.checkNotNullParameter(pushId, "pushId");
return ((Boolean) runForResult$default(this, Boolean.TRUE, e4.b, false, false, new f4(pushId, null), 12, null)).booleanValue();
}
}