正在查看: Housing v14.7.8 应用的 MainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 MainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.locon.housing.presentation;
import android.app.Activity;
import android.app.NotificationManager;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.compose.runtime.j4;
import androidx.compose.runtime.m;
import androidx.compose.runtime.x2;
import androidx.lifecycle.k;
import androidx.lifecycle.y0;
import com.facebook.applinks.AppLinkData;
import com.facebook.react.ReactInstanceEventListener;
import com.facebook.react.ReactInstanceManager;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.firebase.Firebase;
import com.google.firebase.crashlytics.internal.common.CommonUtils;
import com.google.firebase.dynamiclinks.FirebaseDynamicLinksKt;
import com.google.firebase.dynamiclinks.PendingDynamicLinkData;
import com.locon.exclusive.presentation.ui.b;
import com.locon.home.presentation.ui.components.sections.t2;
import com.locon.home.presentation.ui.screens.sj;
import com.locon.housing.presentation.MainActivity;
import com.locon.housing.presentation.MainActivityPageEvent;
import com.moengage.core.internal.utils.CoreUtils;
import com.moengage.inapp.MoEInAppHelper;
import com.moengage.inapp.model.enums.NavigationType;
import com.newrelic.agent.android.instrumentation.Instrumented;
import dagger.hilt.android.AndroidEntryPoint;
import f7.rl;
import io.branch.referral.f;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import javax.inject.Inject;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import sr.a;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000¸\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004R\"\u0010\u0006\u001a\u00020\u00058\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\u0006\u0010\u0007\u001a\u0004\b\b\u0010\t\"\u0004\b\n\u0010\u000bR\"\u0010\r\u001a\u00020\f8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012R\"\u0010\u0014\u001a\u00020\u00138\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\u0014\u0010\u0015\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u0018\u0010\u0019R\"\u0010\u001b\u001a\u00020\u001a8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\u001b\u0010\u001c\u001a\u0004\b\u001d\u0010\u001e\"\u0004\b\u001f\u0010 R\"\u0010\"\u001a\u00020!8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\"\u0010#\u001a\u0004\b$\u0010%\"\u0004\b&\u0010'R\"\u0010)\u001a\u00020(8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b)\u0010*\u001a\u0004\b+\u0010,\"\u0004\b-\u0010.R\"\u00100\u001a\u00020/8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b0\u00101\u001a\u0004\b2\u00103\"\u0004\b4\u00105R\"\u00107\u001a\u0002068\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b7\u00108\u001a\u0004\b9\u0010:\"\u0004\b;\u0010<R\"\u0010>\u001a\u00020=8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b>\u0010?\u001a\u0004\b@\u0010A\"\u0004\bB\u0010CR\"\u0010E\u001a\u00020D8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\bE\u0010F\u001a\u0004\bG\u0010H\"\u0004\bI\u0010JR\"\u0010L\u001a\u00020K8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\bL\u0010M\u001a\u0004\bN\u0010O\"\u0004\bP\u0010QR\"\u0010S\u001a\u00020R8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\bS\u0010T\u001a\u0004\bU\u0010V\"\u0004\bW\u0010XR\u0016\u0010Z\u001a\u00020Y8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bZ\u0010[R\"\u0010]\u001a\u00020\\8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b]\u0010^\u001a\u0004\b_\u0010`\"\u0004\ba\u0010bR\u0018\u0010d\u001a\u0004\u0018\u00010c8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bd\u0010eR\u0018\u0010g\u001a\u0004\u0018\u00010f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bg\u0010hR\u001b\u0010n\u001a\u00020i8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bj\u0010k\u001a\u0004\bl\u0010mR\u001b\u0010s\u001a\u00020o8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bp\u0010k\u001a\u0004\bq\u0010rR\u001b\u0010x\u001a\u00020t8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bu\u0010k\u001a\u0004\bv\u0010wR\u0016\u0010z\u001a\u00020y8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bz\u0010{R\u0016\u0010}\u001a\u00020|8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b}\u0010~R\u0019\u0010\u0080\u0001\u001a\u00020\u007f8\u0002@\u0002X\u0082.¢\u0006\b\n\u0006\b\u0080\u0001\u0010\u0081\u0001R\u001c\u0010\u0083\u0001\u001a\u0005\u0018\u00010\u0082\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u0083\u0001\u0010\u0084\u0001R\u0018\u0010\u0085\u0001\u001a\u00020|8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u0085\u0001\u0010~R\u0018\u0010\u0086\u0001\u001a\u00020|8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u0086\u0001\u0010~R\u001c\u0010\u0088\u0001\u001a\u0005\u0018\u00010\u0087\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u0088\u0001\u0010\u0089\u0001R)\u0010\u008b\u0001\u001a\u00030\u008a\u00018\u0006@\u0006X\u0087.¢\u0006\u0017\n\u0006\b\u008b\u0001\u0010\u008c\u0001\u001a\u0005\b{\u0010\u008d\u0001\"\u0006\b\u008e\u0001\u0010\u008f\u0001R*\u0010\u0091\u0001\u001a\u00030\u0090\u00018\u0006@\u0006X\u0087.¢\u0006\u0018\n\u0006\b\u0091\u0001\u0010\u0092\u0001\u001a\u0006\b\u0093\u0001\u0010\u0094\u0001\"\u0006\b\u0095\u0001\u0010\u0096\u0001R*\u0010\u0098\u0001\u001a\u00030\u0097\u00018\u0006@\u0006X\u0087.¢\u0006\u0018\n\u0006\b\u0098\u0001\u0010\u0099\u0001\u001a\u0006\b\u009a\u0001\u0010\u009b\u0001\"\u0006\b\u009c\u0001\u0010\u009d\u0001R\u001a\u0010\u009f\u0001\u001a\u0005\u0018\u00010\u009e\u00018\u0002X\u0082\u0004¢\u0006\b\n\u0006\b\u009f\u0001\u0010 \u0001R!\u0010£\u0001\u001a\f\u0012\u0007\u0012\u0005\u0018\u00010¢\u00010¡\u00018\u0002X\u0082\u0004¢\u0006\b\n\u0006\b£\u0001\u0010¤\u0001R8\u0010¨\u0001\u001a\u0011\u0012\u0005\u0012\u00030¦\u0001\u0012\u0005\u0012\u00030§\u00010¥\u00018\u0006@\u0006X\u0086\u000e¢\u0006\u0018\n\u0006\b¨\u0001\u0010©\u0001\u001a\u0006\bª\u0001\u0010«\u0001\"\u0006\b¬\u0001\u0010\u00ad\u0001R$\u0010°\u0001\u001a\n\u0012\u0005\u0012\u00030¯\u00010®\u00018\u0006¢\u0006\u0010\n\u0006\b°\u0001\u0010±\u0001\u001a\u0006\b²\u0001\u0010³\u0001R\u0018\u0010µ\u0001\u001a\u00030´\u00018\u0002X\u0082\u0004¢\u0006\b\n\u0006\bµ\u0001\u0010¶\u0001¨\u0006Ã\u0001²\u0006\u000f\u0010·\u0001\u001a\u00020|8\n@\nX\u008a\u008e\u0002²\u0006\r\u0010¸\u0001\u001a\u00020|8\nX\u008a\u0084\u0002²\u0006\r\u0010¹\u0001\u001a\u00020|8\nX\u008a\u0084\u0002²\u0006\r\u0010º\u0001\u001a\u00020|8\nX\u008a\u0084\u0002²\u0006\u000e\u0010¼\u0001\u001a\u00030»\u00018\nX\u008a\u0084\u0002²\u0006\u001e\u0010¿\u0001\u001a\u0013\u0012\u0007\u0012\u0005\u0018\u00010¯\u0001\u0012\u0005\u0012\u00030¾\u00010½\u00018\nX\u008a\u0084\u0002²\u0006\u0010\u0010Á\u0001\u001a\u00030À\u00018\n@\nX\u008a\u008e\u0002²\u0006\u000f\u0010Â\u0001\u001a\u00020|8\n@\nX\u008a\u008e\u0002"}, d2 = {"Lcom/locon/housing/presentation/MainActivity;", "Lcom/facebook/react/ReactActivity;", "", "<init>", "()V", "Lcom/locon/reactapp/common/bridge/a;", "bridgePackage", "Lcom/locon/reactapp/common/bridge/a;", "getBridgePackage", "()Lcom/locon/reactapp/common/bridge/a;", "setBridgePackage", "(Lcom/locon/reactapp/common/bridge/a;)V", "Lpj/a;", "nativeAndroidPackage", "Lpj/a;", "getNativeAndroidPackage", "()Lpj/a;", "setNativeAndroidPackage", "(Lpj/a;)V", "Lcom/locon/core/data/deeplinks/a;", "deeplinkDataStore", "Lcom/locon/core/data/deeplinks/a;", "L", "()Lcom/locon/core/data/deeplinks/a;", "setDeeplinkDataStore", "(Lcom/locon/core/data/deeplinks/a;)V", "Lbd/a;", "firebasePerformanceTrace", "Lbd/a;", "getFirebasePerformanceTrace", "()Lbd/a;", "setFirebasePerformanceTrace", "(Lbd/a;)V", "Lcom/locon/housing/deeplink/s1;", "deeplinkResolver", "Lcom/locon/housing/deeplink/s1;", "M", "()Lcom/locon/housing/deeplink/s1;", "setDeeplinkResolver", "(Lcom/locon/housing/deeplink/s1;)V", "Lcom/locon/core/analytics/s0;", "screenViewAnalytics", "Lcom/locon/core/analytics/s0;", "getScreenViewAnalytics", "()Lcom/locon/core/analytics/s0;", "setScreenViewAnalytics", "(Lcom/locon/core/analytics/s0;)V", "Lcom/locon/core/data/b1;", "permissionDataStore", "Lcom/locon/core/data/b1;", "getPermissionDataStore", "()Lcom/locon/core/data/b1;", "setPermissionDataStore", "(Lcom/locon/core/data/b1;)V", "Lcom/locon/housing/deeplink/d0;", "cloudDeeplinks", "Lcom/locon/housing/deeplink/d0;", "getCloudDeeplinks", "()Lcom/locon/housing/deeplink/d0;", "setCloudDeeplinks", "(Lcom/locon/housing/deeplink/d0;)V", "Lcom/locon/core/data/local/datastore/g;", "appBottomSheetDataStore", "Lcom/locon/core/data/local/datastore/g;", "getAppBottomSheetDataStore", "()Lcom/locon/core/data/local/datastore/g;", "setAppBottomSheetDataStore", "(Lcom/locon/core/data/local/datastore/g;)V", "Lcom/locon/housing/presentation/navigation/b1;", "navigationUtil", "Lcom/locon/housing/presentation/navigation/b1;", "getNavigationUtil", "()Lcom/locon/housing/presentation/navigation/b1;", "setNavigationUtil", "(Lcom/locon/housing/presentation/navigation/b1;)V", "Lcom/locon/core/data/remote/firebase/remoteconfig/h;", "remoteConfigRepository", "Lcom/locon/core/data/remote/firebase/remoteconfig/h;", "getRemoteConfigRepository", "()Lcom/locon/core/data/remote/firebase/remoteconfig/h;", "setRemoteConfigRepository", "(Lcom/locon/core/data/remote/firebase/remoteconfig/h;)V", "Lcom/locon/housing/utils/g;", "deeplinkLinkHelper", "Lcom/locon/housing/utils/g;", "getDeeplinkLinkHelper", "()Lcom/locon/housing/utils/g;", "setDeeplinkLinkHelper", "(Lcom/locon/housing/utils/g;)V", "Landroidx/navigation/w0;", "navController", "Landroidx/navigation/w0;", "Lcom/locon/housing/inAppNotifications/c;", "moeInAppEventHandler", "Lcom/locon/housing/inAppNotifications/c;", "getMoeInAppEventHandler", "()Lcom/locon/housing/inAppNotifications/c;", "setMoeInAppEventHandler", "(Lcom/locon/housing/inAppNotifications/c;)V", "Lcom/locon/core/data/m0;", "inAppUpdate", "Lcom/locon/core/data/m0;", "Lcom/facebook/react/ReactInstanceManager;", "reactInstanceManager", "Lcom/facebook/react/ReactInstanceManager;", "Lcom/locon/housing/presentation/k2;", "viewModel$delegate", "Lkotlin/Lazy;", "O", "()Lcom/locon/housing/presentation/k2;", "viewModel", "Lcom/locon/chat/presentation/ui/viewmodels/s0;", "chatViewModel$delegate", "getChatViewModel", "()Lcom/locon/chat/presentation/ui/viewmodels/s0;", "chatViewModel", "Lcom/locon/exclusive/presentation/ui/d0;", "dealsViewModel$delegate", "getDealsViewModel", "()Lcom/locon/exclusive/presentation/ui/d0;", "dealsViewModel", "", "logBackgroundTime", "J", "", "isFromBackground", "Z", "Landroid/content/SharedPreferences;", "preferences", "Landroid/content/SharedPreferences;", "Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;", "deepLinkListener", "Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;", "isDeeplinkFlowInitiated", "isReactContextReady", "Lcom/facebook/react/ReactInstanceEventListener;", "reactInstanceEventListener", "Lcom/facebook/react/ReactInstanceEventListener;", "Lcom/locon/housing/presentation/m;", "appAnalytics", "Lcom/locon/housing/presentation/m;", "()Lcom/locon/housing/presentation/m;", "setAppAnalytics", "(Lcom/locon/housing/presentation/m;)V", "Lcom/locon/core/analytics/f0;", "commonAnalytics", "Lcom/locon/core/analytics/f0;", "K", "()Lcom/locon/core/analytics/f0;", "setCommonAnalytics", "(Lcom/locon/core/analytics/f0;)V", "Lcom/locon/core/analytics/engines/g;", "contentSquareAnalytics", "Lcom/locon/core/analytics/engines/g;", "getContentSquareAnalytics", "()Lcom/locon/core/analytics/engines/g;", "setContentSquareAnalytics", "(Lcom/locon/core/analytics/engines/g;)V", "Landroid/app/Activity$ScreenCaptureCallback;", "screenCaptureCallback", "Landroid/app/Activity$ScreenCaptureCallback;", "Lcom/google/android/gms/tasks/OnSuccessListener;", "Lcom/google/firebase/dynamiclinks/PendingDynamicLinkData;", "firebaseDynamicLinkCallback", "Lcom/google/android/gms/tasks/OnSuccessListener;", "Lkotlin/Function1;", "Landroidx/activity/result/a;", "Lzp/j0;", "activityResult", "Lkq/l;", "getActivityResult", "()Lkq/l;", "Q", "(Lkq/l;)V", "Landroidx/activity/result/c;", "Landroid/content/Intent;", "activityResultLauncher", "Landroidx/activity/result/c;", "I", "()Landroidx/activity/result/c;", "Lio/branch/referral/f$c;", "branchDeeplinkUniversal", "Lio/branch/referral/f$c;", "isScreenCaptureCallbackAdded", "isNavigateToPreLoginScreen", "isNavigateToHomePage", "hideBottomTabState", "Landroidx/lifecycle/s;", "lifecycleOwner", "Lzp/s;", "Ldb/f;", "unresolvedDeeplink", "Lcom/locon/housing/presentation/ui/a;", "promiseState", "showSaveSearch", "app_gammaRelease"}, k = t2.HOUSE_RENT_ID, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
@AndroidEntryPoint
@Instrumented
@SourceDebugExtension({"SMAP\nMainActivity.kt\nKotlin\n*S Kotlin\n*F\n+ 1 MainActivity.kt\ncom/locon/housing/presentation/MainActivity\n+ 2 ActivityViewModelLazy.kt\nandroidx/activity/ActivityViewModelLazyKt\n+ 3 Composer.kt\nandroidx/compose/runtime/ComposerKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 5 Uri.kt\nandroidx/core/net/UriKt\n+ 6 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 7 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 8 SnapshotState.kt\nandroidx/compose/runtime/SnapshotStateKt__SnapshotStateKt\n*L\n1#1,1579:1\n70#2,11:1580\n70#2,11:1591\n70#2,11:1602\n1247#3,6:1613\n1247#3,6:1619\n1247#3,6:1625\n1247#3,6:1631\n1247#3,6:1637\n1247#3,6:1643\n1#4:1649\n29#5:1650\n29#5:1673\n1563#6:1651\n1634#6,3:1652\n1563#6:1665\n1634#6,3:1666\n1563#6:1674\n1634#6,3:1675\n1869#6,2:1678\n1563#6:1680\n1634#6,3:1681\n37#7:1655\n36#7,3:1656\n37#7:1669\n36#7,3:1670\n37#7:1684\n36#7,3:1685\n85#8:1659\n113#8,2:1660\n85#8:1662\n113#8,2:1663\n*S KotlinDebug\n*F\n+ 1 MainActivity.kt\ncom/locon/housing/presentation/MainActivity\n*L\n229#1:1580,11\n230#1:1591,11\n231#1:1602,11\n706#1:1613,6\n710#1:1619,6\n736#1:1625,6\n744#1:1631,6\n746#1:1637,6\n765#1:1643,6\n387#1:1650\n1121#1:1673\n388#1:1651\n388#1:1652,3\n945#1:1665\n945#1:1666,3\n1123#1:1674\n1123#1:1675,3\n1123#1:1678,2\n1288#1:1680\n1288#1:1681,3\n388#1:1655\n388#1:1656,3\n945#1:1669\n945#1:1670,3\n1288#1:1684\n1288#1:1685,3\n706#1:1659\n706#1:1660,2\n744#1:1662\n744#1:1663,2\n*E\n"})
public final class MainActivity extends o {
public static final int $stable = 8;
@NotNull
private kq.l<? super androidx.activity.result.a, zp.j0> activityResult;
@NotNull
private final androidx.activity.result.c<Intent> activityResultLauncher;
@Inject
public m appAnalytics;
@Inject
public com.locon.core.data.local.datastore.g appBottomSheetDataStore;
@NotNull
private final f.c branchDeeplinkUniversal;
@Inject
public com.locon.reactapp.common.bridge.a bridgePackage;
@Inject
public com.locon.housing.deeplink.d0 cloudDeeplinks;
@Inject
public com.locon.core.analytics.f0 commonAnalytics;
@Inject
public com.locon.core.analytics.engines.g contentSquareAnalytics;
@Nullable
private SharedPreferences.OnSharedPreferenceChangeListener deepLinkListener;
@Inject
public com.locon.core.data.deeplinks.a deeplinkDataStore;
@Inject
public com.locon.housing.utils.g deeplinkLinkHelper;
@Inject
public com.locon.housing.deeplink.s1 deeplinkResolver;
@NotNull
private final OnSuccessListener<PendingDynamicLinkData> firebaseDynamicLinkCallback;
@Inject
public bd.a firebasePerformanceTrace;
@Nullable
private com.locon.core.data.m0 inAppUpdate;
private boolean isDeeplinkFlowInitiated;
private boolean isFromBackground;
private boolean isReactContextReady;
private long logBackgroundTime;
@Inject
public com.locon.housing.inAppNotifications.c moeInAppEventHandler;
@Inject
public pj.a nativeAndroidPackage;
private androidx.navigation.w0 navController;
@Inject
public com.locon.housing.presentation.navigation.b1 navigationUtil;
@Inject
public com.locon.core.data.b1 permissionDataStore;
private SharedPreferences preferences;
@Nullable
private ReactInstanceEventListener reactInstanceEventListener;
@Nullable
private ReactInstanceManager reactInstanceManager;
@Inject
public com.locon.core.data.remote.firebase.remoteconfig.h remoteConfigRepository;
@Nullable
private final Activity.ScreenCaptureCallback screenCaptureCallback;
@Inject
public com.locon.core.analytics.s0 screenViewAnalytics;
@NotNull
private final Lazy viewModel = new androidx.lifecycle.x0(kotlin.jvm.internal.n0.b(k2.class), new e(this), new d(this), new f(null, this));
@NotNull
private final Lazy chatViewModel = new androidx.lifecycle.x0(kotlin.jvm.internal.n0.b(com.locon.chat.presentation.ui.viewmodels.s0.class), new h(this), new g(this), new i(null, this));
@NotNull
private final Lazy dealsViewModel = new androidx.lifecycle.x0(kotlin.jvm.internal.n0.b(com.locon.exclusive.presentation.ui.d0.class), new k(this), new j(this), new l(null, this));
@Metadata(k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
public class a {
public static final int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[NavigationType.values().length];
try {
iArr[NavigationType.DEEP_LINKING.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[NavigationType.RICH_LANDING.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
$EnumSwitchMapping$0 = iArr;
}
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"com/locon/housing/presentation/MainActivity$b", "Lio/branch/referral/f$c;", "app_gammaRelease"}, k = t2.HOUSE_RENT_ID, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
@Instrumented
@SourceDebugExtension({"SMAP\nMainActivity.kt\nKotlin\n*S Kotlin\n*F\n+ 1 MainActivity.kt\ncom/locon/housing/presentation/MainActivity$branchDeeplinkUniversal$1\n+ 2 Uri.kt\nandroidx/core/net/UriKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 5 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n*L\n1#1,1579:1\n29#2:1580\n29#2:1594\n1563#3:1581\n1634#3,3:1582\n1869#3,2:1592\n37#4:1585\n36#4,3:1586\n37#4:1599\n36#4,3:1600\n188#5,3:1589\n126#5:1595\n153#5,3:1596\n*S KotlinDebug\n*F\n+ 1 MainActivity.kt\ncom/locon/housing/presentation/MainActivity$branchDeeplinkUniversal$1\n*L\n1379#1:1580\n1523#1:1594\n1381#1:1581\n1381#1:1582,3\n1483#1:1592,2\n1381#1:1585\n1381#1:1586,3\n1525#1:1599\n1525#1:1600,3\n1398#1:1589,3\n1525#1:1595\n1525#1:1596,3\n*E\n"})
public static final class b implements f.c {
public b() {
}
public final void a(yo.a r44, io.branch.referral.util.h r45, io.branch.referral.i r46) {
throw new UnsupportedOperationException("Method not decompiled: com.locon.housing.presentation.MainActivity.b.a(yo.a, io.branch.referral.util.h, io.branch.referral.i):void");
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
@DebugMetadata(c = "com.locon.housing.presentation.MainActivity$screenCaptureCallback$1$1", f = "MainActivity.kt", i = {}, l = {423}, m = "invokeSuspend", n = {}, s = {})
public static final class c extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
int label;
public c(kotlin.coroutines.d<? super c> dVar) {
super(2, dVar);
}
public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
return new c(dVar);
}
public final Object invokeSuspend(Object obj) {
kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
int i = this.label;
if (i == 0) {
zp.u.b(obj);
kotlinx.coroutines.flow.v1 g = com.locon.housing.shareBottomSheetInApp.j.g();
zp.j0 j0Var = zp.j0.INSTANCE;
this.label = 1;
if (g.emit(j0Var, this) == aVar) {
return aVar;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
zp.u.b(obj);
}
return zp.j0.INSTANCE;
}
public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
return create(j0Var, dVar).invokeSuspend(zp.j0.INSTANCE);
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Landroidx/lifecycle/y0$c;", "invoke", "()Landroidx/lifecycle/y0$c;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class d extends kotlin.jvm.internal.s implements kq.a<y0.c> {
final androidx.activity.h $this_viewModels;
public d(androidx.activity.h hVar) {
super(0);
this.$this_viewModels = hVar;
}
public final y0.c m117invoke() {
return this.$this_viewModels.getDefaultViewModelProviderFactory();
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Landroidx/lifecycle/z0;", "invoke", "()Landroidx/lifecycle/z0;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class e extends kotlin.jvm.internal.s implements kq.a<androidx.lifecycle.z0> {
final androidx.activity.h $this_viewModels;
public e(androidx.activity.h hVar) {
super(0);
this.$this_viewModels = hVar;
}
public final androidx.lifecycle.z0 m118invoke() {
return this.$this_viewModels.getViewModelStore();
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Ln2/a;", "invoke", "()Ln2/a;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class f extends kotlin.jvm.internal.s implements kq.a<n2.a> {
final kq.a $extrasProducer;
final androidx.activity.h $this_viewModels;
public f(kq.a aVar, androidx.activity.h hVar) {
super(0);
this.$extrasProducer = aVar;
this.$this_viewModels = hVar;
}
public final n2.a invoke() {
n2.a aVar;
kq.a aVar2 = this.$extrasProducer;
return (aVar2 == null || (aVar = (n2.a) aVar2.invoke()) == null) ? this.$this_viewModels.getDefaultViewModelCreationExtras() : aVar;
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Landroidx/lifecycle/y0$c;", "invoke", "()Landroidx/lifecycle/y0$c;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class g extends kotlin.jvm.internal.s implements kq.a<y0.c> {
final androidx.activity.h $this_viewModels;
public g(androidx.activity.h hVar) {
super(0);
this.$this_viewModels = hVar;
}
public final y0.c m120invoke() {
return this.$this_viewModels.getDefaultViewModelProviderFactory();
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Landroidx/lifecycle/z0;", "invoke", "()Landroidx/lifecycle/z0;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class h extends kotlin.jvm.internal.s implements kq.a<androidx.lifecycle.z0> {
final androidx.activity.h $this_viewModels;
public h(androidx.activity.h hVar) {
super(0);
this.$this_viewModels = hVar;
}
public final androidx.lifecycle.z0 m121invoke() {
return this.$this_viewModels.getViewModelStore();
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Ln2/a;", "invoke", "()Ln2/a;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class i extends kotlin.jvm.internal.s implements kq.a<n2.a> {
final kq.a $extrasProducer;
final androidx.activity.h $this_viewModels;
public i(kq.a aVar, androidx.activity.h hVar) {
super(0);
this.$extrasProducer = aVar;
this.$this_viewModels = hVar;
}
public final n2.a invoke() {
n2.a aVar;
kq.a aVar2 = this.$extrasProducer;
return (aVar2 == null || (aVar = (n2.a) aVar2.invoke()) == null) ? this.$this_viewModels.getDefaultViewModelCreationExtras() : aVar;
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Landroidx/lifecycle/y0$c;", "invoke", "()Landroidx/lifecycle/y0$c;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class j extends kotlin.jvm.internal.s implements kq.a<y0.c> {
final androidx.activity.h $this_viewModels;
public j(androidx.activity.h hVar) {
super(0);
this.$this_viewModels = hVar;
}
public final y0.c m123invoke() {
return this.$this_viewModels.getDefaultViewModelProviderFactory();
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Landroidx/lifecycle/z0;", "invoke", "()Landroidx/lifecycle/z0;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class k extends kotlin.jvm.internal.s implements kq.a<androidx.lifecycle.z0> {
final androidx.activity.h $this_viewModels;
public k(androidx.activity.h hVar) {
super(0);
this.$this_viewModels = hVar;
}
public final androidx.lifecycle.z0 m124invoke() {
return this.$this_viewModels.getViewModelStore();
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/lifecycle/v0;", "VM", "Ln2/a;", "invoke", "()Ln2/a;", "<anonymous>"}, k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0})
public static final class l extends kotlin.jvm.internal.s implements kq.a<n2.a> {
final kq.a $extrasProducer;
final androidx.activity.h $this_viewModels;
public l(kq.a aVar, androidx.activity.h hVar) {
super(0);
this.$extrasProducer = aVar;
this.$this_viewModels = hVar;
}
public final n2.a invoke() {
n2.a aVar;
kq.a aVar2 = this.$extrasProducer;
return (aVar2 == null || (aVar = (n2.a) aVar2.invoke()) == null) ? this.$this_viewModels.getDefaultViewModelCreationExtras() : aVar;
}
}
public MainActivity() {
this.screenCaptureCallback = Build.VERSION.SDK_INT >= 34 ? new Activity.ScreenCaptureCallback() {
@Override
public final void onScreenCaptured() {
MainActivity mainActivity = MainActivity.this;
int i2 = MainActivity.$stable;
androidx.lifecycle.n a2 = androidx.lifecycle.t.a(mainActivity);
kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
kotlinx.coroutines.k.c(a2, kotlinx.coroutines.scheduling.b.INSTANCE, (kotlinx.coroutines.l0) null, new MainActivity.c(null), 2);
}
} : null;
this.firebaseDynamicLinkCallback = new t(this);
this.activityResult = new com.locon.home.presentation.ui.handler.y0(29);
this.activityResultLauncher = registerForActivityResult(new d.h(), new t(this));
this.branchDeeplinkUniversal = new b();
}
public static void p(MainActivity mainActivity, androidx.activity.result.a aVar) {
kotlin.jvm.internal.r.k(aVar, "it");
mainActivity.activityResult.invoke(aVar);
}
public static void q(MainActivity mainActivity, SharedPreferences sharedPreferences, String str) {
Bundle extras;
kotlin.jvm.internal.r.k(sharedPreferences, "sharedPreferences");
a.a aVar = sr.a.Forest;
aVar.a(a.l("ch8n inside DEEPLINK_LISTENER key ", str), new Object[0]);
if (!"deeplink".equals(str) || mainActivity.isDeeplinkFlowInitiated) {
return;
}
String string = sharedPreferences.getString(str, null);
Intent intent = (Intent) ((zp.s) mainActivity.L().getUnresolvedDeeplinkIntent().getValue()).getFirst();
Map d2 = (intent == null || (extras = intent.getExtras()) == null) ? kotlin.collections.t0.d() : com.locon.housing.deeplink.t1.a(extras);
com.locon.core.data.deeplinks.a.v(mainActivity.L(), "initGoogleDeferredDeepLinks", "deeplinkUrl - " + string + ", intentExtras - " + d2, 4);
StringBuilder sb2 = new StringBuilder("ch8n deeplink received inside initGoogleDeferredDeepLinks ");
sb2.append(string);
aVar.a(sb2.toString(), new Object[0]);
if (string == null || string.length() == 0) {
mainActivity.L().u("initGoogleDeferredDeepLinks", "deeplinkUrl is null, intentExtras - " + d2, true);
mainActivity.J().f("google deferred deeplink has empty url");
return;
}
mainActivity.M();
if (!com.locon.housing.deeplink.s1.X(string)) {
mainActivity.M();
if (!com.locon.housing.deeplink.s1.Z(string)) {
mainActivity.isDeeplinkFlowInitiated = true;
Map T = mainActivity.M().T(string, kotlin.collections.t0.d());
mainActivity.M();
uq.c V = com.locon.housing.deeplink.s1.V("", T);
aVar.a(com.locon.crf.data.network.a.k("ch8n ---> deeplink google Deferred Link utms ", T), new Object[0]);
Intent intent2 = new Intent();
intent2.setAction("android.intent.action.VIEW");
intent2.setData(Uri.parse(string));
Set<Map.Entry> entrySet = V.entrySet();
ArrayList arrayList = new ArrayList(kotlin.collections.t.u(entrySet, 10));
for (Map.Entry entry : entrySet) {
arrayList.add(new zp.s(entry.getKey(), entry.getValue()));
}
zp.s[] sVarArr = (zp.s[]) arrayList.toArray(new zp.s[0]);
intent2.putExtras(s1.b.a((zp.s[]) Arrays.copyOf(sVarArr, sVarArr.length)));
mainActivity.L().o(db.b.Deeplink, "google deferred deeplink");
mainActivity.M().a0(k.a.ON_RESUME, intent2, mainActivity.N());
mainActivity.L().t(intent2);
m J = mainActivity.J();
kotlinx.coroutines.k.c(J, (kotlin.coroutines.f) null, (kotlinx.coroutines.l0) null, new com.locon.housing.presentation.f(J, string, null), 3);
mainActivity.L().u("initGoogleDeferredDeepLinks", "unresolvedDeeplinkIntent is set, deeplinkUrl is " + string + ", intentExtras - " + d2, true);
return;
}
}
mainActivity.J().f("google deferred link contains branch or firebase url ".concat(string));
mainActivity.L().u("initGoogleDeferredDeepLinks", "deeplinkUrl is of branch or firebase type " + string + ", intentExtras - " + d2, true);
}
public static final com.locon.chat.presentation.ui.viewmodels.s0 t(MainActivity mainActivity) {
return (com.locon.chat.presentation.ui.viewmodels.s0) mainActivity.chatViewModel.getValue();
}
public final androidx.activity.result.c getActivityResultLauncher() {
return this.activityResultLauncher;
}
public final m J() {
m mVar = this.appAnalytics;
if (mVar != null) {
return mVar;
}
kotlin.jvm.internal.r.o("appAnalytics");
throw null;
}
public final com.locon.core.analytics.f0 K() {
com.locon.core.analytics.f0 f0Var = this.commonAnalytics;
if (f0Var != null) {
return f0Var;
}
kotlin.jvm.internal.r.o("commonAnalytics");
throw null;
}
public final com.locon.core.data.deeplinks.a L() {
com.locon.core.data.deeplinks.a aVar = this.deeplinkDataStore;
if (aVar != null) {
return aVar;
}
kotlin.jvm.internal.r.o("deeplinkDataStore");
throw null;
}
public final com.locon.housing.deeplink.s1 M() {
com.locon.housing.deeplink.s1 s1Var = this.deeplinkResolver;
if (s1Var != null) {
return s1Var;
}
kotlin.jvm.internal.r.o("deeplinkResolver");
throw null;
}
public final androidx.navigation.w0 N() {
androidx.navigation.w0 w0Var = this.navController;
if (w0Var == null) {
return null;
}
if (w0Var != null) {
return w0Var;
}
kotlin.jvm.internal.r.o("navController");
throw null;
}
public final k2 O() {
return (k2) this.viewModel.getValue();
}
public final void P() {
ReactInstanceManager reactInstanceManager;
ReactInstanceManager reactInstanceManager2;
if (this.isReactContextReady && (reactInstanceManager = this.reactInstanceManager) != null && reactInstanceManager.hasStartedCreatingInitialContext()) {
ReactInstanceManager reactInstanceManager3 = this.reactInstanceManager;
if ((reactInstanceManager3 != null ? reactInstanceManager3.getCurrentReactContext() : null) == null || (reactInstanceManager2 = this.reactInstanceManager) == null) {
return;
}
reactInstanceManager2.onHostResume(this, this);
}
}
public final void Q(kq.l lVar) {
this.activityResult = lVar;
}
public final void onActivityResult(int i2, int i3, Intent intent) {
Bundle extras;
super.onActivityResult(i2, i3, intent);
com.locon.core.data.deeplinks.a L = L();
Uri data = intent != null ? intent.getData() : null;
Map a2 = (intent == null || (extras = intent.getExtras()) == null) ? null : com.locon.housing.deeplink.t1.a(extras);
StringBuilder u = a.u(i2, i3, "requestCode - ", ", resultCode - ", ", intent data - ");
u.append(data);
u.append(", intent extras - ");
u.append(a2);
com.locon.core.data.deeplinks.a.v(L, "onActivityResult", u.toString(), 4);
ReactInstanceManager reactInstanceManager = this.reactInstanceManager;
if (reactInstanceManager != null) {
reactInstanceManager.onActivityResult(this, i2, i3, intent);
}
com.locon.core.data.deeplinks.a.v(L(), "onActivityResult", null, 2);
}
@Override
public final void onCreate(Bundle bundle) {
String str;
Uri data;
String uri;
SharedPreferences sharedPreferences;
Uri data2;
Bundle extras;
super.onCreate(null);
if (CommonUtils.isRooted() || CommonUtils.isEmulator()) {
androidx.activity.compose.k.a(this, new androidx.compose.runtime.internal.j(1667308959, true, new a0(this)));
} else {
int i2 = Build.VERSION.SDK_INT;
if (i2 == 28 || i2 == 29) {
androidx.core.view.w0.a(getWindow(), false);
}
com.locon.core.utils.b bVar = com.locon.core.utils.b.INSTANCE;
Intent intent = getIntent();
bVar.getClass();
boolean z = com.locon.core.utils.b.z(intent);
Intent intent2 = getIntent();
Map a2 = (intent2 == null || (extras = intent2.getExtras()) == null) ? null : com.locon.housing.deeplink.t1.a(extras);
Intent intent3 = getIntent();
String str2 = "";
if (intent3 == null || (data2 = intent3.getData()) == null || (str = data2.toString()) == null) {
str = "";
}
if (!z) {
com.locon.core.data.deeplinks.a.v(L(), "onCreate", "intent data - " + str + ", intent extras - " + a2 + ", intent action - " + getIntent().getAction(), 4);
a.a aVar = sr.a.Forest;
Intent intent4 = getIntent();
StringBuilder sb2 = new StringBuilder("ch8n ---> initializeDeeplinks ");
sb2.append(intent4);
aVar.a(sb2.toString(), new Object[0]);
M();
if (!com.locon.housing.deeplink.s1.Z(str)) {
M();
if (!com.locon.housing.deeplink.s1.X(str)) {
com.locon.housing.deeplink.s1 M = M();
k.a aVar2 = k.a.ON_RESUME;
Intent intent5 = getIntent();
if (intent5 == null) {
throw new IllegalArgumentException("Required value was null.");
}
M.a0(aVar2, intent5, N());
}
}
L().t(getIntent());
}
a.a aVar3 = sr.a.Forest;
aVar3.a("ch8n preferences before", new Object[0]);
try {
sharedPreferences = getSharedPreferences("google.analytics.deferred.deeplink.prefs", 0);
this.preferences = sharedPreferences;
} catch (Exception e2) {
m J = J();
String message = e2.getMessage();
if (message == null) {
message = "";
}
J.f(message);
sr.a.Forest.a(a.l("ch8n exception e ", e2.getMessage()), new Object[0]);
}
if (sharedPreferences == null) {
kotlin.jvm.internal.r.o("preferences");
throw null;
}
aVar3.a("ch8n preferences ".concat(com.locon.core.data.e0.l(sharedPreferences)), new Object[0]);
this.deepLinkListener = new SharedPreferences.OnSharedPreferenceChangeListener() {
@Override
public final void onSharedPreferenceChanged(SharedPreferences sharedPreferences2, String str3) {
MainActivity.q(MainActivity.this, sharedPreferences2, str3);
}
};
com.locon.core.data.deeplinks.a.v(L(), "initializeDeeplinks", null, 6);
((com.locon.exclusive.presentation.ui.d0) this.dealsViewModel.getValue()).C(new b.a(true));
this.inAppUpdate = new com.locon.core.data.m0(this);
String packageName = getApplicationContext().getPackageName();
kotlin.jvm.internal.r.j(packageName, "getPackageName(...)");
if (kotlin.text.q.m(packageName, "alpha", false)) {
Object systemService = getSystemService("clipboard");
kotlin.jvm.internal.r.i(systemService, "null cannot be cast to non-null type android.content.ClipboardManager");
((ClipboardManager) systemService).setPrimaryClip(ClipData.newPlainText("text", new com.locon.core.data.m1(this).a()));
}
O().L(this);
com.locon.reactapp.common.n.INSTANCE.getClass();
com.locon.reactapp.common.n.a();
com.locon.reactapp.common.n.d(this);
com.locon.core.data.h1.INSTANCE.getClass();
com.locon.core.data.h1.e();
kotlinx.coroutines.k.c(androidx.lifecycle.t.a(this), (kotlin.coroutines.f) null, (kotlinx.coroutines.l0) null, new z(this, null), 3);
if (!((Boolean) O().getCheckInstallReferrer().getValue()).booleanValue()) {
androidx.lifecycle.n a3 = androidx.lifecycle.t.a(this);
kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
kotlinx.coroutines.k.c(a3, kotlinx.coroutines.scheduling.b.INSTANCE, (kotlinx.coroutines.l0) null, new x(this, null), 2);
}
kotlinx.coroutines.k.c(androidx.lifecycle.t.a(this), (kotlin.coroutines.f) null, (kotlinx.coroutines.l0) null, new f0(this, null), 3);
M();
Intent intent6 = getIntent();
if (intent6 != null && (data = intent6.getData()) != null && (uri = data.toString()) != null) {
str2 = uri;
}
if (com.locon.housing.deeplink.s1.Z(str2)) {
FirebaseDynamicLinksKt.getDynamicLinks(Firebase.INSTANCE).getDynamicLink(getIntent()).addOnSuccessListener(this, this.firebaseDynamicLinkCallback).addOnFailureListener(this, new t(this));
}
AppLinkData.fetchDeferredAppLinkData(this, new t(this));
com.locon.core.data.deeplinks.a.v(L(), "initializeDeeplinks", null, 2);
androidx.activity.compose.k.a(this, new androidx.compose.runtime.internal.j(-187233930, true, new u0(this)));
O().H(MainActivityPageEvent.d.INSTANCE);
com.locon.core.data.o1.INSTANCE.getClass();
kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(com.locon.core.data.o1.Y(), new c0(this, null)), androidx.lifecycle.t.a(this));
kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(com.locon.core.data.o1.s(), new d0(this, null)), androidx.lifecycle.t.a(this));
kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(com.locon.core.data.o1.u(), new e0(this, null)), androidx.lifecycle.t.a(this));
androidx.lifecycle.n a4 = androidx.lifecycle.t.a(this);
kotlinx.coroutines.z0 z0Var2 = kotlinx.coroutines.z0.INSTANCE;
kotlinx.coroutines.k.c(a4, kotlinx.coroutines.scheduling.b.INSTANCE, (kotlinx.coroutines.l0) null, new y(this, null), 2);
if (this.contentSquareAnalytics == null) {
kotlin.jvm.internal.r.o("contentSquareAnalytics");
throw null;
}
com.contentsquare.android.core.features.logging.d dVar = t5.g.a;
z6.a.INSTANCE.getClass();
z6.a.d("set_default_masking");
rl.a.b(true, new t5.c(true));
if (!z) {
L().u("onCreate", "intent data - " + getIntent().getData() + ", intent extras - " + a2 + ", intent action - " + getIntent().getAction(), true);
}
mk.a.INSTANCE.getClass();
mk.a.c(this);
}
vj.a a5 = vj.a.Companion.a(this);
if (a5 != null) {
a5.e(new b0(this));
}
}
@Override
public final void onDestroy() {
super.onDestroy();
com.locon.core.data.deeplinks.a.v(L(), "onDestroy", null, 6);
ReactInstanceManager reactInstanceManager = this.reactInstanceManager;
if (reactInstanceManager != null) {
reactInstanceManager.onHostDestroy(this);
}
ReactInstanceManager reactInstanceManager2 = this.reactInstanceManager;
if (reactInstanceManager2 != null) {
reactInstanceManager2.removeReactInstanceEventListener(this.reactInstanceEventListener);
}
com.locon.core.data.m0 m0Var = this.inAppUpdate;
if (m0Var != null) {
m0Var.r();
}
com.locon.core.data.deeplinks.a.v(L(), "onDestroy", null, 2);
}
public final void onNewIntent(final android.content.Intent r10) {
throw new UnsupportedOperationException("Method not decompiled: com.locon.housing.presentation.MainActivity.onNewIntent(android.content.Intent):void");
}
public final void onPause() {
try {
super.onPause();
com.locon.core.data.deeplinks.a.v(L(), "onPause", null, 6);
ReactInstanceManager reactInstanceManager = this.reactInstanceManager;
if (reactInstanceManager != null) {
reactInstanceManager.onHostPause(this);
}
com.locon.core.data.deeplinks.a.v(L(), "onPause", null, 2);
} catch (AssertionError e2) {
sr.a.Forest.a(a.l("error inside onPause ", e2.getMessage()), new Object[0]);
}
}
public final void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
kotlin.jvm.internal.r.k(strArr, "permissions");
kotlin.jvm.internal.r.k(iArr, "grantResults");
super.onRequestPermissionsResult(i2, strArr, iArr);
com.locon.core.data.deeplinks.a L = L();
StringBuilder v = a.v(i2, "requestCode - ", ", permissions - ");
v.append(strArr);
v.append(", grantResults - ");
v.append(iArr);
com.locon.core.data.deeplinks.a.v(L, "onRequestPermissionsResult", v.toString(), 4);
com.locon.core.data.o1.INSTANCE.getClass();
com.locon.core.data.o1.p1(true);
com.locon.core.data.deeplinks.a.v(L(), "onRequestPermissionsResult", null, 2);
}
public final void onResume() {
super.onResume();
com.locon.core.data.deeplinks.a.v(L(), "onResume", null, 6);
com.locon.core.data.o1.INSTANCE.getClass();
String g2 = com.locon.core.data.o1.g();
if (g2.length() > 0) {
sr.a.Forest.a("ch8n inside onResume --- ".concat(g2), new Object[0]);
com.locon.core.analytics.s0 s0Var = this.screenViewAnalytics;
if (s0Var == null) {
kotlin.jvm.internal.r.o("screenViewAnalytics");
throw null;
}
s0Var.b(g2);
}
if (kotlin.jvm.internal.r.f(getIntent().getStringExtra(com.locon.housing.customNotifications.x.PUSH_FROM), com.locon.housing.customNotifications.x.INCOMING_CALL)) {
Object systemService = getSystemService("notification");
kotlin.jvm.internal.r.i(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
((NotificationManager) systemService).cancel(getIntent().getIntExtra(com.locon.housing.customNotifications.x.NOTIFICATION_ID, -1));
}
O().H(MainActivityPageEvent.a.INSTANCE);
com.locon.core.data.m0 m0Var = this.inAppUpdate;
if (m0Var != null) {
m0Var.s();
}
P();
com.locon.core.data.deeplinks.a.v(L(), "onResume", null, 2);
com.locon.core.analytics.engines.g gVar = this.contentSquareAnalytics;
if (gVar != null) {
gVar.f();
} else {
kotlin.jvm.internal.r.o("contentSquareAnalytics");
throw null;
}
}
public final void onSaveInstanceState(Bundle bundle) {
kotlin.jvm.internal.r.k(bundle, "outState");
super/*androidx.activity.h*/.onSaveInstanceState(bundle);
if (O().I()) {
bundle.putString("androidx.lifecycle.BundlableSavedStateRegistry.key", null);
}
}
public final void onStart() {
super.onStart();
com.locon.core.data.deeplinks.a.v(L(), "onStart", null, 6);
a.a aVar = sr.a.Forest;
Bundle extras = getIntent().getExtras();
String string = extras != null ? extras.getString("branchUrl") : null;
aVar.a("ch8n ---> onStart " + string + " " + getIntent() + " " + this.deepLinkListener, new Object[0]);
SharedPreferences.OnSharedPreferenceChangeListener onSharedPreferenceChangeListener = this.deepLinkListener;
if (onSharedPreferenceChangeListener != null) {
SharedPreferences sharedPreferences = this.preferences;
if (sharedPreferences == null) {
kotlin.jvm.internal.r.o("preferences");
throw null;
}
sharedPreferences.registerOnSharedPreferenceChangeListener(onSharedPreferenceChangeListener);
}
f.f G = io.branch.referral.f.G(this);
G.d(this.branchDeeplinkUniversal);
Intent intent = getIntent();
G.e(intent != null ? intent.getData() : null);
G.a();
O().O(new com.locon.core.data.m1(this).a(), CoreUtils.isNotificationEnabled(this));
O().H(MainActivityPageEvent.b.INSTANCE);
MoEInAppHelper.Companion companion = MoEInAppHelper.Companion;
companion.getInstance().showInApp(this);
MoEInAppHelper.showNudge$default(companion.getInstance(), this, (String) null, 2, (Object) null);
MoEInAppHelper companion2 = companion.getInstance();
com.locon.housing.inAppNotifications.c cVar = this.moeInAppEventHandler;
if (cVar == null) {
kotlin.jvm.internal.r.o("moeInAppEventHandler");
throw null;
}
companion2.addInAppLifeCycleListener(cVar);
companion.getInstance().setClickActionListener(new t(this));
com.locon.core.data.deeplinks.a.v(L(), "onStart", null, 2);
}
public final void onStop() {
super.onStop();
com.locon.core.data.deeplinks.a.v(L(), "onStop", null, 6);
O().H(MainActivityPageEvent.c.INSTANCE);
SharedPreferences.OnSharedPreferenceChangeListener onSharedPreferenceChangeListener = this.deepLinkListener;
if (onSharedPreferenceChangeListener != null) {
SharedPreferences sharedPreferences = this.preferences;
if (sharedPreferences == null) {
kotlin.jvm.internal.r.o("preferences");
throw null;
}
sharedPreferences.unregisterOnSharedPreferenceChangeListener(onSharedPreferenceChangeListener);
this.deepLinkListener = null;
}
MoEInAppHelper companion = MoEInAppHelper.Companion.getInstance();
com.locon.housing.inAppNotifications.c cVar = this.moeInAppEventHandler;
if (cVar == null) {
kotlin.jvm.internal.r.o("moeInAppEventHandler");
throw null;
}
companion.removeInAppLifeCycleListener(cVar);
com.locon.core.data.deeplinks.a.v(L(), "onStop", null, 2);
}
public final void r(androidx.navigation.w0 w0Var, androidx.compose.runtime.m mVar, int i2) {
androidx.compose.runtime.n nVar = (androidx.compose.runtime.n) mVar;
nVar.R0(-1730095143);
if ((((nVar.t(w0Var) ? 4 : 2) | i2) & 3) == 2 && nVar.m0()) {
nVar.G0();
} else {
int i3 = androidx.compose.runtime.t.invocationKey;
nVar.P0(237221429);
Object y0 = nVar.y0();
androidx.compose.runtime.m.Companion.getClass();
if (y0 == m.a.a()) {
y0 = j4.h(new com.locon.housing.presentation.ui.a(false, null, false, null, 15, null));
nVar.b1(y0);
}
androidx.compose.runtime.x1 x1Var = (androidx.compose.runtime.x1) y0;
nVar.K(false);
zp.j0 j0Var = zp.j0.INSTANCE;
nVar.P0(237225751);
boolean t = nVar.t(w0Var);
Object y02 = nVar.y0();
if (t || y02 == m.a.a()) {
y02 = new v(w0Var, x1Var, null);
nVar.b1(y02);
}
nVar.K(false);
androidx.compose.runtime.x0.e(nVar, j0Var, (kq.p) y02);
if (((com.locon.housing.presentation.ui.a) x1Var.getValue()).getIsVisible()) {
String couponCode = ((com.locon.housing.presentation.ui.a) x1Var.getValue()).getCouponCode();
boolean restoreLastInstance = ((com.locon.housing.presentation.ui.a) x1Var.getValue()).getRestoreLastInstance();
kq.a trackPreviousScreen = ((com.locon.housing.presentation.ui.a) x1Var.getValue()).getTrackPreviousScreen();
nVar.P0(237268689);
Object y03 = nVar.y0();
if (y03 == m.a.a()) {
y03 = new q(x1Var, 1);
nVar.b1(y03);
}
nVar.K(false);
com.locon.hp.presentation.ui.screens.y1.b(null, couponCode, restoreLastInstance, trackPreviousScreen, (kq.a) y03, nVar, 24576);
}
}
x2 S = nVar.S();
if (S != null) {
S.M(new com.google.accompanist.permissions.o(this, w0Var, i2, 29));
}
}
public final void s(androidx.compose.runtime.m mVar, int i2) {
androidx.compose.runtime.n nVar = (androidx.compose.runtime.n) mVar;
nVar.R0(-62533889);
if ((i2 & 1) == 0 && nVar.m0()) {
nVar.G0();
} else {
int i3 = androidx.compose.runtime.t.invocationKey;
nVar.P0(1361164945);
Object y0 = nVar.y0();
androidx.compose.runtime.m.Companion.getClass();
if (y0 == m.a.a()) {
y0 = j4.h(Boolean.FALSE);
nVar.b1(y0);
}
androidx.compose.runtime.x1 x1Var = (androidx.compose.runtime.x1) y0;
nVar.K(false);
zp.j0 j0Var = zp.j0.INSTANCE;
nVar.P0(1361167717);
Object y02 = nVar.y0();
if (y02 == m.a.a()) {
y02 = new w(x1Var, null);
nVar.b1(y02);
}
nVar.K(false);
androidx.compose.runtime.x0.e(nVar, j0Var, (kq.p) y02);
if (((Boolean) x1Var.getValue()).booleanValue()) {
nVar.P0(1361185509);
Object y03 = nVar.y0();
if (y03 == m.a.a()) {
y03 = new q(x1Var, 0);
nVar.b1(y03);
}
nVar.K(false);
sj.a(null, (kq.a) y03, nVar, 48);
}
}
x2 S = nVar.S();
if (S != null) {
S.M(new r(this, i2));
}
}
}