导航菜单

页面标题

页面副标题

Biko v2.0.23 - App.java 源代码

正在查看: Biko v2.0.23 应用的 App.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package app.callpe;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.provider.Settings;
import app.callpe.App;
import app.callpe.common.utils.AppsFlyerAnalyticsHelper;
import app.callpe.common.utils.FabManager;
import app.callpe.common.utils.RxBus;
import app.callpe.common.utils.helper_functions.AdjustAnalyticsHelper;
import app.callpe.common.utils.helper_functions.CacheDataSourceFactorySingleton;
import app.callpe.common.utils.helper_functions.TiktokAnalyticsHelper;
import app.callpe.common.utils.sharedpref.SharedPref;
import app.callpe.data.model.ApiLogEntryModel;
import app.callpe.data.model.Avatar;
import app.callpe.data.model.CountryModel;
import app.callpe.data.model.GiftBracketItem;
import app.callpe.data.model.GiftModel;
import app.callpe.data.model.ProfileInterests;
import app.callpe.db.LocalDB;
import app.callpe.service.ApiService;
import app.callpe.service.jobs.SyncJobManagerInitializer;
import app.callpe.ui.ApiLogsActivity;
import app.callpe.ui.call.BotCallActivity;
import app.callpe.ui.call.CallActivity;
import app.callpe.ui.call.WebViewCallActivity;
import app.callpe.ui.call.ZegoVideoCallActivity;
import app.callpe.ui.chat.AgentBroadcastChatActivity;
import app.callpe.ui.chat.ChatActivity;
import app.callpe.ui.chat.NotificationChatActivity;
import app.callpe.ui.chat.StreamerBroadcastChatActivity;
import app.callpe.ui.chat.SupportChatActivity;
import app.callpe.ui.home.AgentHomeActivity;
import app.callpe.ui.home.HomeActivity;
import app.callpe.ui.home.StreamerHomeActivity;
import app.callpe.ui.livestreaming.LiveStreamingActivity;
import app.callpe.ui.livestreaming.WebViewLiveStreamActivity;
import app.callpe.ui.login.LoginActivity;
import app.callpe.ui.payment.CheckoutActivity;
import app.callpe.ui.payment.PaymentDetailsActivity;
import app.callpe.ui.payment.QRPaymentActivity;
import app.callpe.ui.payment.UPICheckoutActivity;
import app.callpe.ui.payment.WalletActivity;
import app.callpe.ui.user.TicketsActivity;
import com.downloader.PRDownloader;
import com.downloader.PRDownloaderConfig;
import com.dpforge.primaree.Primaree;
import com.vdx.sud.SudGameActivity;
import dagger.hilt.android.HiltAndroidApp;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.BiFunction;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.CoroutineScopeKt;
import kotlinx.coroutines.CoroutineStart;
import kotlinx.coroutines.Dispatchers;
import kotlinx.coroutines.flow.MutableStateFlow;
import kotlinx.coroutines.flow.StateFlow;
import kotlinx.coroutines.flow.StateFlowKt;
import timber.log.Timber;

@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\b\b\u0007\u0018\u0000 (2\u00020\u0001:\u0001(B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010 \u001a\u00020!H\u0002J\b\u0010\"\u001a\u00020!H\u0002J\b\u0010#\u001a\u00020!H\u0002J\b\u0010$\u001a\u00020!H\u0002J\b\u0010%\u001a\u00020!H\u0016J\b\u0010&\u001a\u00020!H\u0016J\b\u0010'\u001a\u00020!H\u0002R\u001e\u0010\u0003\u001a\u00020\u00048\u0006@\u0006X\u0087.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\u001e\u0010\t\u001a\u00020\n8\u0006@\u0006X\u0087.¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000eR\u001a\u0010\u000f\u001a\u00020\u0010X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\u0011\"\u0004\b\u0012\u0010\u0013R\u001e\u0010\u0014\u001a\u00020\u00158\u0006@\u0006X\u0087.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u0018\u0010\u0019R\u001e\u0010\u001a\u001a\u00020\u001b8\u0006@\u0006X\u0087.¢\u0006\u000e\n\u0000\u001a\u0004\b\u001c\u0010\u001d\"\u0004\b\u001e\u0010\u001f¨\u0006)"}, d2 = {"Lapp/callpe/App;", "Landroid/app/Application;", "()V", "apiService", "Lapp/callpe/service/ApiService;", "getApiService", "()Lapp/callpe/service/ApiService;", "setApiService", "(Lapp/callpe/service/ApiService;)V", "appDB", "Lapp/callpe/db/LocalDB;", "getAppDB", "()Lapp/callpe/db/LocalDB;", "setAppDB", "(Lapp/callpe/db/LocalDB;)V", "isAdmin", "", "()Z", "setAdmin", "(Z)V", "rxBus", "Lapp/callpe/common/utils/RxBus;", "getRxBus", "()Lapp/callpe/common/utils/RxBus;", "setRxBus", "(Lapp/callpe/common/utils/RxBus;)V", "syncJobManagerInitializer", "Lapp/callpe/service/jobs/SyncJobManagerInitializer;", "getSyncJobManagerInitializer", "()Lapp/callpe/service/jobs/SyncJobManagerInitializer;", "setSyncJobManagerInitializer", "(Lapp/callpe/service/jobs/SyncJobManagerInitializer;)V", "checkForOverlayPermission", "", "destroyEngine", "handleLoggingFab", "initFU", "onCreate", "onTerminate", "setupActivityListener", "Companion", "app_bikoRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
@HiltAndroidApp
public final class App extends Hilt_App {
    private static ArrayList<Avatar> avatars;
    private static WeakReference<Context> contextWeakReference;
    private static ArrayList<GiftBracketItem> giftBrackets;
    private static ArrayList<GiftModel> gifts;
    public static boolean important;
    public static boolean isAgentBroadcastScreen;
    private static boolean isApproved;
    public static boolean isBroadcastScreen;
    private static boolean isCallScreen;
    public static boolean isChatScreen;
    private static boolean isCheckoutScreen;
    private static boolean isFlagSecureDisabled;
    private static boolean isHomeScreen;
    private static boolean isInterestEmpty;
    private static boolean isLiveStreamScreen;
    public static boolean isNotificationScreen;
    private static boolean isSudScreen;
    public static boolean isSupportChatScreen;
    private static boolean isTicketScreen;
    private static boolean isVideoCallScreen;
    private static double lastCallRatePriceSeenByUser;
    public static boolean loggingEnabled;
    public static boolean notificationAvailable;
    public static String profile;
    private static ArrayList<ProfileInterests> profileInterests;
    private static ArrayList<String> sortBy;
    private static boolean webViewLivestream;
    private static boolean webViewVideoCall;

    @Inject
    public ApiService apiService;

    @Inject
    public LocalDB appDB;
    private boolean isAdmin;

    @Inject
    public RxBus rxBus;

    @Inject
    public SyncJobManagerInitializer syncJobManagerInitializer;

    public static final Companion INSTANCE = new Companion(null);
    public static boolean isDevelopmentEnv = StringsKt.contains$default("https://prod.myfriendapp.in:9090/", "https://dev.myfriendapp", false, 2, (Object) null);
    public static final boolean isFourDigitOtp = true;
    private static final MutableStateFlow<ConcurrentHashMap<String, ArrayList<ApiLogEntryModel>>> _logsMap = StateFlowKt.MutableStateFlow(new ConcurrentHashMap());
    public static long chatId = -1;
    public static String chatTitle = "";
    private static boolean useRupeeSign = LoginActivity.Companion.isVitok();
    private static String talktimeCurrencySign = "💰";
    private static String currentOpenActivity = "";
    private static ArrayList<CountryModel> countryList = new ArrayList<>();
    private static boolean statusApiPingEnabled = true;
    private static ArrayList<String> activePayouts = new ArrayList<>();

    private final void destroyEngine() {
    }

    public static final ArrayList<String> getActivePayouts() {
        return INSTANCE.getActivePayouts();
    }

    public static final WeakReference<Context> getContextWeakReference() {
        return INSTANCE.getContextWeakReference();
    }

    public static final String getCurrentOpenActivity() {
        return INSTANCE.getCurrentOpenActivity();
    }

    public static final boolean getStatusApiPingEnabled() {
        return INSTANCE.getStatusApiPingEnabled();
    }

    public static final String getTalktimeCurrencySign() {
        return INSTANCE.getTalktimeCurrencySign();
    }

    public static final boolean getUseRupeeSign() {
        return INSTANCE.getUseRupeeSign();
    }

    public static final void setActivePayouts(ArrayList<String> arrayList) {
        INSTANCE.setActivePayouts(arrayList);
    }

    public static final void setContextWeakReference(WeakReference<Context> weakReference) {
        INSTANCE.setContextWeakReference(weakReference);
    }

    public static final void setCurrentOpenActivity(String str) {
        INSTANCE.setCurrentOpenActivity(str);
    }

    public static final void setStatusApiPingEnabled(boolean z) {
        INSTANCE.setStatusApiPingEnabled(z);
    }

    public static final void setTalktimeCurrencySign(String str) {
        INSTANCE.setTalktimeCurrencySign(str);
    }

    public static final void setUseRupeeSign(boolean z) {
        INSTANCE.setUseRupeeSign(z);
    }

    public final SyncJobManagerInitializer getSyncJobManagerInitializer() {
        SyncJobManagerInitializer syncJobManagerInitializer = this.syncJobManagerInitializer;
        if (syncJobManagerInitializer != null) {
            return syncJobManagerInitializer;
        }
        Intrinsics.throwUninitializedPropertyAccessException("syncJobManagerInitializer");
        return null;
    }

    public final void setSyncJobManagerInitializer(SyncJobManagerInitializer syncJobManagerInitializer) {
        Intrinsics.checkNotNullParameter(syncJobManagerInitializer, "<set-?>");
        this.syncJobManagerInitializer = syncJobManagerInitializer;
    }

    public final ApiService getApiService() {
        ApiService apiService = this.apiService;
        if (apiService != null) {
            return apiService;
        }
        Intrinsics.throwUninitializedPropertyAccessException("apiService");
        return null;
    }

    public final void setApiService(ApiService apiService) {
        Intrinsics.checkNotNullParameter(apiService, "<set-?>");
        this.apiService = apiService;
    }

    public final RxBus getRxBus() {
        RxBus rxBus = this.rxBus;
        if (rxBus != null) {
            return rxBus;
        }
        Intrinsics.throwUninitializedPropertyAccessException("rxBus");
        return null;
    }

    public final void setRxBus(RxBus rxBus) {
        Intrinsics.checkNotNullParameter(rxBus, "<set-?>");
        this.rxBus = rxBus;
    }

    public final LocalDB getAppDB() {
        LocalDB localDB = this.appDB;
        if (localDB != null) {
            return localDB;
        }
        Intrinsics.throwUninitializedPropertyAccessException("appDB");
        return null;
    }

    public final void setAppDB(LocalDB localDB) {
        Intrinsics.checkNotNullParameter(localDB, "<set-?>");
        this.appDB = localDB;
    }

    public final boolean getIsAdmin() {
        return this.isAdmin;
    }

    public final void setAdmin(boolean z) {
        this.isAdmin = z;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        handleLoggingFab();
        App app2 = this;
        AdjustAnalyticsHelper.INSTANCE.setValueToAdjustSdkToEnabled(app2);
        AdjustAnalyticsHelper adjustAnalyticsHelper = AdjustAnalyticsHelper.INSTANCE;
        Context applicationContext = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext, "applicationContext");
        adjustAnalyticsHelper.initAdjustSdk(applicationContext, new Function1<String, Unit>() {
            public final void invoke(String str) {
                Intrinsics.checkNotNullParameter(str, "it");
            }

            public Object invoke(Object obj) {
                invoke((String) obj);
                return Unit.INSTANCE;
            }
        });
        AppsFlyerAnalyticsHelper.setValueToAppsFlyerSdkToEnabled(app2);
        AppsFlyerAnalyticsHelper.initAppsFlyerSdk(getApplicationContext());
        TiktokAnalyticsHelper tiktokAnalyticsHelper = TiktokAnalyticsHelper.INSTANCE;
        Context applicationContext2 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext2, "applicationContext");
        tiktokAnalyticsHelper.initTikTokSdk(applicationContext2);
        contextWeakReference = new WeakReference<>(this);
        PRDownloaderConfig build = PRDownloaderConfig.newBuilder().setDatabaseEnabled(true).setReadTimeout(30000).setConnectTimeout(30000).build();
        Intrinsics.checkNotNullExpressionValue(build, "newBuilder().setDatabase…ectTimeout(30000).build()");
        PRDownloader.initialize(getApplicationContext(), build);
        if (Intrinsics.areEqual(Primaree.getCurrentProcessFullName(), getPackageName())) {
            getSyncJobManagerInitializer().initialize(getApplicationContext(), getApiService(), getAppDB(), getRxBus());
            CacheDataSourceFactorySingleton cacheDataSourceFactorySingleton = CacheDataSourceFactorySingleton.INSTANCE;
            Context applicationContext3 = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext3, "applicationContext");
            cacheDataSourceFactorySingleton.initialize(applicationContext3);
            setupActivityListener();
            BuildersKt.launch$default(CoroutineScopeKt.CoroutineScope(Dispatchers.getIO()), (CoroutineContext) null, (CoroutineStart) null, new App$onCreate$2(this, null), 3, (Object) null);
            String string = SharedPref.getString(getApplicationContext(), "TALKTIME_CURRENCY_SIGN", "💰");
            Intrinsics.checkNotNullExpressionValue(string, "getString(applicationCon…TIME_CURRENCY_SIGN, \"💰\")");
            talktimeCurrencySign = StringsKt.trim(string).toString();
            webViewVideoCall = SharedPref.getBoolean(getApplicationContext(), "USE_WEB_VIEW_VIDEO_CALL", false);
            webViewLivestream = SharedPref.getBoolean(getApplicationContext(), "USE_WEB_VIEW_LIVESTREAM", false);
        }
        initFU();
    }

    private final void initFU() {
        if (LoginActivity.Companion.isVitok() && app.module.common.utils.SharedPref.getBoolean(getApplicationContext(), "AI_EFFECT", false)) {
            BuildersKt.launch$default(CoroutineScopeKt.CoroutineScope(Dispatchers.getIO()), (CoroutineContext) null, (CoroutineStart) null, new App$initFU$1(this, null), 3, (Object) null);
        }
    }

    private final void handleLoggingFab() {
        if (isDevelopmentEnv) {
            boolean z = false;
            if (SharedPref.getBoolean(this, "LOGGING_ENABLED", false) && isDevelopmentEnv) {
                z = true;
            }
            loggingEnabled = z;
            checkForOverlayPermission();
        }
    }

    public final void checkForOverlayPermission() {
        if (loggingEnabled && isDevelopmentEnv) {
            App app2 = this;
            if (!Settings.canDrawOverlays(app2)) {
                SharedPref.setBoolean(app2, "LOGGING_ENABLED", false);
                loggingEnabled = false;
            } else {
                FabManager.INSTANCE.initialize(app2);
            }
        }
    }

    private final void setupActivityListener() {
        registerActivityLifecycleCallbacks(new Application.ActivityLifecycleCallbacks() {
            @Override
            public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
                Intrinsics.checkNotNullParameter(activity, "activity");
                Intrinsics.checkNotNullParameter(outState, "outState");
            }

            @Override
            public void onActivityStarted(Activity activity) {
                Intrinsics.checkNotNullParameter(activity, "activity");
            }

            @Override
            public void onActivityStopped(Activity activity) {
                Intrinsics.checkNotNullParameter(activity, "activity");
            }

            @Override
            public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
                Intrinsics.checkNotNullParameter(activity, "activity");
                if (App.INSTANCE.isFlagSecureDisabled()) {
                    return;
                }
                activity.getWindow().setFlags(8192, 8192);
            }

            @Override
            public void onActivityResumed(Activity activity) {
                Intrinsics.checkNotNullParameter(activity, "activity");
                App.this.checkForOverlayPermission();
                if (activity instanceof ApiLogsActivity) {
                    FabManager.INSTANCE.hideFab();
                } else {
                    App.Companion companion = App.INSTANCE;
                    String localClassName = activity.getLocalClassName();
                    Intrinsics.checkNotNullExpressionValue(localClassName, "activity.localClassName");
                    companion.setCurrentOpenActivity(localClassName);
                    if (App.loggingEnabled && App.isDevelopmentEnv) {
                        FabManager.INSTANCE.showFab();
                    } else {
                        FabManager.INSTANCE.hideFab();
                    }
                }
                if (LoginActivity.Companion.isVitok()) {
                    Timber.d("FLAG_SECURE : is Flag secure disabled = " + App.INSTANCE.isFlagSecureDisabled(), new Object[0]);
                    if (App.INSTANCE.isFlagSecureDisabled()) {
                        activity.getWindow().clearFlags(8192);
                        Timber.d("FLAG_SECURE cleared", new Object[0]);
                    } else {
                        activity.getWindow().setFlags(8192, 8192);
                        Timber.d("FLAG_SECURE set", new Object[0]);
                    }
                }
                if (activity instanceof ZegoVideoCallActivity) {
                    App.INSTANCE.setVideoCallScreen(true);
                } else if (activity instanceof WebViewCallActivity) {
                    App.INSTANCE.setVideoCallScreen(true);
                } else if (activity instanceof CallActivity) {
                    App.INSTANCE.setCallScreen(true);
                } else if (activity instanceof BotCallActivity) {
                    App.INSTANCE.setCallScreen(true);
                } else if (activity instanceof HomeActivity) {
                    App.INSTANCE.setHomeScreen(true);
                } else if (activity instanceof StreamerHomeActivity) {
                    App.INSTANCE.setHomeScreen(true);
                } else if (activity instanceof AgentHomeActivity) {
                    App.INSTANCE.setHomeScreen(true);
                } else if (activity instanceof ChatActivity) {
                    App.Companion companion2 = App.INSTANCE;
                    App.isChatScreen = true;
                    Timber.e("Open isChatScreen", new Object[0]);
                } else if (activity instanceof SupportChatActivity) {
                    App.Companion companion3 = App.INSTANCE;
                    App.isSupportChatScreen = true;
                } else if (activity instanceof NotificationChatActivity) {
                    App.Companion companion4 = App.INSTANCE;
                    App.isNotificationScreen = true;
                } else if (activity instanceof StreamerBroadcastChatActivity) {
                    App.Companion companion5 = App.INSTANCE;
                    App.isBroadcastScreen = true;
                } else if (activity instanceof AgentBroadcastChatActivity) {
                    App.Companion companion6 = App.INSTANCE;
                    App.isAgentBroadcastScreen = true;
                } else if (activity instanceof UPICheckoutActivity) {
                    App.INSTANCE.setCheckoutScreen(true);
                } else if (activity instanceof CheckoutActivity) {
                    App.INSTANCE.setCheckoutScreen(true);
                } else if (activity instanceof QRPaymentActivity) {
                    App.INSTANCE.setCheckoutScreen(true);
                } else if (activity instanceof PaymentDetailsActivity) {
                    App.INSTANCE.setCheckoutScreen(true);
                } else if (activity instanceof WalletActivity) {
                    App.INSTANCE.setCheckoutScreen(true);
                } else if (activity instanceof LiveStreamingActivity) {
                    App.INSTANCE.setLiveStreamScreen(true);
                } else if (activity instanceof WebViewLiveStreamActivity) {
                    App.INSTANCE.setLiveStreamScreen(true);
                } else if (activity instanceof TicketsActivity) {
                    App.INSTANCE.setTicketScreen(true);
                } else if (activity instanceof SudGameActivity) {
                    App.INSTANCE.setSudScreen(true);
                }
                AdjustAnalyticsHelper.INSTANCE.adjustOnResume();
            }

            @Override
            public void onActivityPaused(Activity activity) {
                Intrinsics.checkNotNullParameter(activity, "activity");
                FabManager.INSTANCE.hideFab();
                AdjustAnalyticsHelper.INSTANCE.adjustOnPause();
                App.INSTANCE.setHomeScreen(false);
                App.Companion companion = App.INSTANCE;
                App.isChatScreen = false;
                App.Companion companion2 = App.INSTANCE;
                App.isSupportChatScreen = false;
                App.Companion companion3 = App.INSTANCE;
                App.isNotificationScreen = false;
                App.Companion companion4 = App.INSTANCE;
                App.isBroadcastScreen = false;
                App.Companion companion5 = App.INSTANCE;
                App.isAgentBroadcastScreen = false;
                App.INSTANCE.setTicketScreen(false);
                if (activity instanceof CallActivity) {
                    App.INSTANCE.setCallScreen(false);
                } else if (activity instanceof BotCallActivity) {
                    App.INSTANCE.setCallScreen(false);
                }
            }

            @Override
            public void onActivityDestroyed(Activity activity) {
                Intrinsics.checkNotNullParameter(activity, "activity");
                if (activity instanceof ZegoVideoCallActivity) {
                    App.INSTANCE.setVideoCallScreen(false);
                    return;
                }
                if (activity instanceof WebViewCallActivity) {
                    App.INSTANCE.setVideoCallScreen(false);
                    return;
                }
                if (activity instanceof ChatActivity) {
                    App.Companion companion = App.INSTANCE;
                    App.isChatScreen = false;
                    return;
                }
                if (activity instanceof UPICheckoutActivity) {
                    App.INSTANCE.setCheckoutScreen(false);
                    return;
                }
                if (activity instanceof CheckoutActivity) {
                    App.INSTANCE.setCheckoutScreen(false);
                    return;
                }
                if (activity instanceof QRPaymentActivity) {
                    App.INSTANCE.setCheckoutScreen(false);
                    return;
                }
                if (activity instanceof PaymentDetailsActivity) {
                    App.INSTANCE.setCheckoutScreen(false);
                    return;
                }
                if (activity instanceof WalletActivity) {
                    App.INSTANCE.setCheckoutScreen(false);
                    return;
                }
                if (activity instanceof CallActivity) {
                    App.INSTANCE.setCallScreen(false);
                    return;
                }
                if (activity instanceof BotCallActivity) {
                    App.INSTANCE.setCallScreen(false);
                    return;
                }
                if (activity instanceof LiveStreamingActivity) {
                    App.INSTANCE.setLiveStreamScreen(false);
                    return;
                }
                if (activity instanceof WebViewLiveStreamActivity) {
                    App.INSTANCE.setLiveStreamScreen(false);
                } else if (activity instanceof TicketsActivity) {
                    App.INSTANCE.setTicketScreen(false);
                } else if (activity instanceof SudGameActivity) {
                    App.INSTANCE.setSudScreen(false);
                }
            }
        });
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        destroyEngine();
    }

    @Metadata(d1 = {"\u0000\u008c\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u001e\n\u0002\u0010\u0006\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0015\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0016\u0010w\u001a\u00020x2\u0006\u0010y\u001a\u00020\u00062\u0006\u0010z\u001a\u00020\bJ\u0006\u0010{\u001a\u000202R0\u0010\u0003\u001a$\u0012 \u0012\u001e\u0012\u0004\u0012\u00020\u0006\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\b0\u0007j\b\u0012\u0004\u0012\u00020\b`\t0\u00050\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R4\u0010\n\u001a\u0012\u0012\u0004\u0012\u00020\u00060\u0007j\b\u0012\u0004\u0012\u00020\u0006`\t8\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\u000b\u0010\u0002\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR.\u0010\u0010\u001a\u0016\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0007j\n\u0012\u0004\u0012\u00020\u0011\u0018\u0001`\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\r\"\u0004\b\u0013\u0010\u000fR\u0012\u0010\u0014\u001a\u00020\u00158\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u0012\u0010\u0016\u001a\u00020\u00068\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R,\u0010\u0017\u001a\n\u0012\u0004\u0012\u00020\u0019\u0018\u00010\u00188\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\u001a\u0010\u0002\u001a\u0004\b\u001b\u0010\u001c\"\u0004\b\u001d\u0010\u001eR*\u0010\u001f\u001a\u0012\u0012\u0004\u0012\u00020 0\u0007j\b\u0012\u0004\u0012\u00020 `\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b!\u0010\r\"\u0004\b\"\u0010\u000fR$\u0010#\u001a\u00020\u00068\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b$\u0010\u0002\u001a\u0004\b%\u0010&\"\u0004\b'\u0010(R.\u0010)\u001a\u0016\u0012\u0004\u0012\u00020*\u0018\u00010\u0007j\n\u0012\u0004\u0012\u00020*\u0018\u0001`\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b+\u0010\r\"\u0004\b,\u0010\u000fR.\u0010-\u001a\u0016\u0012\u0004\u0012\u00020.\u0018\u00010\u0007j\n\u0012\u0004\u0012\u00020.\u0018\u0001`\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b/\u0010\r\"\u0004\b0\u0010\u000fR\u0012\u00101\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u0012\u00103\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u001a\u00104\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b4\u00105\"\u0004\b6\u00107R\u0012\u00108\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u001a\u00109\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b9\u00105\"\u0004\b:\u00107R\u0012\u0010;\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u001a\u0010<\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b<\u00105\"\u0004\b=\u00107R\u0012\u0010>\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u001a\u0010?\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b?\u00105\"\u0004\b@\u00107R\u0010\u0010A\u001a\u0002028\u0006X\u0087D¢\u0006\u0002\n\u0000R\u001a\u0010B\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bB\u00105\"\u0004\bC\u00107R\u001a\u0010D\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bD\u00105\"\u0004\bE\u00107R\u001a\u0010F\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bF\u00105\"\u0004\bG\u00107R\u0012\u0010H\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u001a\u0010I\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bI\u00105\"\u0004\bJ\u00107R\u0012\u0010K\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u001a\u0010L\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bL\u00105\"\u0004\bM\u00107R\u001a\u0010N\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bN\u00105\"\u0004\bO\u00107R\u001a\u0010P\u001a\u00020QX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bR\u0010S\"\u0004\bT\u0010UR\u0012\u0010V\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R3\u0010W\u001a$\u0012 \u0012\u001e\u0012\u0004\u0012\u00020\u0006\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\b0\u0007j\b\u0012\u0004\u0012\u00020\b`\t0\u00050X8F¢\u0006\u0006\u001a\u0004\bY\u0010ZR\u0012\u0010[\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\\\u001a\u0004\u0018\u00010\u00068\u0006@\u0006X\u0087\u000e¢\u0006\u0002\n\u0000R.\u0010]\u001a\u0016\u0012\u0004\u0012\u00020^\u0018\u00010\u0007j\n\u0012\u0004\u0012\u00020^\u0018\u0001`\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b_\u0010\r\"\u0004\b`\u0010\u000fR6\u0010a\u001a\u001e\u0012\b\u0012\u00060\u0006j\u0002`b\u0018\u00010\u0007j\u000e\u0012\b\u0012\u00060\u0006j\u0002`b\u0018\u0001`\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bc\u0010\r\"\u0004\bd\u0010\u000fR$\u0010e\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\bf\u0010\u0002\u001a\u0004\bg\u00105\"\u0004\bh\u00107R$\u0010i\u001a\u00020\u00068\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\bj\u0010\u0002\u001a\u0004\bk\u0010&\"\u0004\bl\u0010(R$\u0010m\u001a\u0002028\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\bn\u0010\u0002\u001a\u0004\bo\u00105\"\u0004\bp\u00107R\u001a\u0010q\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\br\u00105\"\u0004\bs\u00107R\u001a\u0010t\u001a\u000202X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bu\u00105\"\u0004\bv\u00107¨\u0006|"}, d2 = {"Lapp/callpe/App$Companion;", "", "()V", "_logsMap", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Ljava/util/concurrent/ConcurrentHashMap;", "", "Ljava/util/ArrayList;", "Lapp/callpe/data/model/ApiLogEntryModel;", "Lkotlin/collections/ArrayList;", "activePayouts", "getActivePayouts$annotations", "getActivePayouts", "()Ljava/util/ArrayList;", "setActivePayouts", "(Ljava/util/ArrayList;)V", "avatars", "Lapp/callpe/data/model/Avatar;", "getAvatars", "setAvatars", "chatId", "", "chatTitle", "contextWeakReference", "Ljava/lang/ref/WeakReference;", "Landroid/content/Context;", "getContextWeakReference$annotations", "getContextWeakReference", "()Ljava/lang/ref/WeakReference;", "setContextWeakReference", "(Ljava/lang/ref/WeakReference;)V", "countryList", "Lapp/callpe/data/model/CountryModel;", "getCountryList", "setCountryList", "currentOpenActivity", "getCurrentOpenActivity$annotations", "getCurrentOpenActivity", "()Ljava/lang/String;", "setCurrentOpenActivity", "(Ljava/lang/String;)V", "giftBrackets", "Lapp/callpe/data/model/GiftBracketItem;", "getGiftBrackets", "setGiftBrackets", "gifts", "Lapp/callpe/data/model/GiftModel;", "getGifts", "setGifts", "important", "", "isAgentBroadcastScreen", "isApproved", "()Z", "setApproved", "(Z)V", "isBroadcastScreen", "isCallScreen", "setCallScreen", "isChatScreen", "isCheckoutScreen", "setCheckoutScreen", "isDevelopmentEnv", "isFlagSecureDisabled", "setFlagSecureDisabled", "isFourDigitOtp", "isHomeScreen", "setHomeScreen", "isInterestEmpty", "setInterestEmpty", "isLiveStreamScreen", "setLiveStreamScreen", "isNotificationScreen", "isSudScreen", "setSudScreen", "isSupportChatScreen", "isTicketScreen", "setTicketScreen", "isVideoCallScreen", "setVideoCallScreen", "lastCallRatePriceSeenByUser", "", "getLastCallRatePriceSeenByUser", "()D", "setLastCallRatePriceSeenByUser", "(D)V", "loggingEnabled", "logsMap", "Lkotlinx/coroutines/flow/StateFlow;", "getLogsMap", "()Lkotlinx/coroutines/flow/StateFlow;", "notificationAvailable", "profile", "profileInterests", "Lapp/callpe/data/model/ProfileInterests;", "getProfileInterests", "setProfileInterests", "sortBy", "Lapp/callpe/SortBy;", "getSortBy", "setSortBy", "statusApiPingEnabled", "getStatusApiPingEnabled$annotations", "getStatusApiPingEnabled", "setStatusApiPingEnabled", "talktimeCurrencySign", "getTalktimeCurrencySign$annotations", "getTalktimeCurrencySign", "setTalktimeCurrencySign", "useRupeeSign", "getUseRupeeSign$annotations", "getUseRupeeSign", "setUseRupeeSign", "webViewLivestream", "getWebViewLivestream", "setWebViewLivestream", "webViewVideoCall", "getWebViewVideoCall", "setWebViewVideoCall", "addLog", "", "activityName", "logEntry", "isHome", "app_bikoRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class Companion {
        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        @JvmStatic
        public static void getActivePayouts$annotations() {
        }

        @JvmStatic
        public static void getContextWeakReference$annotations() {
        }

        @JvmStatic
        public static void getCurrentOpenActivity$annotations() {
        }

        @JvmStatic
        public static void getStatusApiPingEnabled$annotations() {
        }

        @JvmStatic
        public static void getTalktimeCurrencySign$annotations() {
        }

        @JvmStatic
        public static void getUseRupeeSign$annotations() {
        }

        private Companion() {
        }

        public final boolean isInterestEmpty() {
            return App.isInterestEmpty;
        }

        public final void setInterestEmpty(boolean z) {
            App.isInterestEmpty = z;
        }

        public final boolean isApproved() {
            return App.isApproved;
        }

        public final void setApproved(boolean z) {
            App.isApproved = z;
        }

        public final ArrayList<ProfileInterests> getProfileInterests() {
            return App.profileInterests;
        }

        public final void setProfileInterests(ArrayList<ProfileInterests> arrayList) {
            App.profileInterests = arrayList;
        }

        public final ArrayList<GiftModel> getGifts() {
            return App.gifts;
        }

        public final void setGifts(ArrayList<GiftModel> arrayList) {
            App.gifts = arrayList;
        }

        public final ArrayList<GiftBracketItem> getGiftBrackets() {
            return App.giftBrackets;
        }

        public final void setGiftBrackets(ArrayList<GiftBracketItem> arrayList) {
            App.giftBrackets = arrayList;
        }

        public final ArrayList<Avatar> getAvatars() {
            return App.avatars;
        }

        public final void setAvatars(ArrayList<Avatar> arrayList) {
            App.avatars = arrayList;
        }

        public final ArrayList<String> getSortBy() {
            return App.sortBy;
        }

        public final void setSortBy(ArrayList<String> arrayList) {
            App.sortBy = arrayList;
        }

        public final StateFlow<ConcurrentHashMap<String, ArrayList<ApiLogEntryModel>>> getLogsMap() {
            return App._logsMap;
        }

        public static final ArrayList addLog$lambda$0(Function2 function2, Object obj, Object obj2) {
            Intrinsics.checkNotNullParameter(function2, "$tmp0");
            return (ArrayList) function2.invoke(obj, obj2);
        }

        public final void addLog(String activityName, final ApiLogEntryModel logEntry) {
            Intrinsics.checkNotNullParameter(activityName, "activityName");
            Intrinsics.checkNotNullParameter(logEntry, "logEntry");
            ConcurrentHashMap concurrentHashMap = (ConcurrentHashMap) App._logsMap.getValue();
            final Function2<String, ArrayList<ApiLogEntryModel>, ArrayList<ApiLogEntryModel>> function2 = new Function2<String, ArrayList<ApiLogEntryModel>, ArrayList<ApiLogEntryModel>>() {
                {
                    super(2);
                }

                public final ArrayList<ApiLogEntryModel> invoke(String str, ArrayList<ApiLogEntryModel> arrayList) {
                    Intrinsics.checkNotNullParameter(str, "<anonymous parameter 0>");
                    if (arrayList == null) {
                        arrayList = new ArrayList<>();
                    }
                    arrayList.add(logEntry);
                    return arrayList;
                }
            };
            concurrentHashMap.compute(activityName, new BiFunction() {
                @Override
                public final Object apply(Object obj, Object obj2) {
                    ArrayList addLog$lambda$0;
                    addLog$lambda$0 = App.Companion.addLog$lambda$0(function2, obj, obj2);
                    return addLog$lambda$0;
                }
            });
        }

        public final WeakReference<Context> getContextWeakReference() {
            return App.contextWeakReference;
        }

        public final void setContextWeakReference(WeakReference<Context> weakReference) {
            App.contextWeakReference = weakReference;
        }

        public final boolean isHomeScreen() {
            return App.isHomeScreen;
        }

        public final void setHomeScreen(boolean z) {
            App.isHomeScreen = z;
        }

        public final boolean isCheckoutScreen() {
            return App.isCheckoutScreen;
        }

        public final void setCheckoutScreen(boolean z) {
            App.isCheckoutScreen = z;
        }

        public final boolean isHome() {
            return isHomeScreen();
        }

        public final boolean isVideoCallScreen() {
            return App.isVideoCallScreen;
        }

        public final void setVideoCallScreen(boolean z) {
            App.isVideoCallScreen = z;
        }

        public final boolean isCallScreen() {
            return App.isCallScreen;
        }

        public final void setCallScreen(boolean z) {
            App.isCallScreen = z;
        }

        public final boolean isFlagSecureDisabled() {
            return App.isFlagSecureDisabled;
        }

        public final void setFlagSecureDisabled(boolean z) {
            App.isFlagSecureDisabled = z;
        }

        public final boolean isTicketScreen() {
            return App.isTicketScreen;
        }

        public final void setTicketScreen(boolean z) {
            App.isTicketScreen = z;
        }

        public final boolean isLiveStreamScreen() {
            return App.isLiveStreamScreen;
        }

        public final void setLiveStreamScreen(boolean z) {
            App.isLiveStreamScreen = z;
        }

        public final boolean getUseRupeeSign() {
            return App.useRupeeSign;
        }

        public final void setUseRupeeSign(boolean z) {
            App.useRupeeSign = z;
        }

        public final String getTalktimeCurrencySign() {
            return App.talktimeCurrencySign;
        }

        public final void setTalktimeCurrencySign(String str) {
            Intrinsics.checkNotNullParameter(str, "<set-?>");
            App.talktimeCurrencySign = str;
        }

        public final String getCurrentOpenActivity() {
            return App.currentOpenActivity;
        }

        public final void setCurrentOpenActivity(String str) {
            Intrinsics.checkNotNullParameter(str, "<set-?>");
            App.currentOpenActivity = str;
        }

        public final ArrayList<CountryModel> getCountryList() {
            return App.countryList;
        }

        public final void setCountryList(ArrayList<CountryModel> arrayList) {
            Intrinsics.checkNotNullParameter(arrayList, "<set-?>");
            App.countryList = arrayList;
        }

        public final boolean isSudScreen() {
            return App.isSudScreen;
        }

        public final void setSudScreen(boolean z) {
            App.isSudScreen = z;
        }

        public final boolean getWebViewVideoCall() {
            return App.webViewVideoCall;
        }

        public final void setWebViewVideoCall(boolean z) {
            App.webViewVideoCall = z;
        }

        public final boolean getWebViewLivestream() {
            return App.webViewLivestream;
        }

        public final void setWebViewLivestream(boolean z) {
            App.webViewLivestream = z;
        }

        public final double getLastCallRatePriceSeenByUser() {
            return App.lastCallRatePriceSeenByUser;
        }

        public final void setLastCallRatePriceSeenByUser(double d) {
            App.lastCallRatePriceSeenByUser = d;
        }

        public final boolean getStatusApiPingEnabled() {
            return App.statusApiPingEnabled;
        }

        public final void setStatusApiPingEnabled(boolean z) {
            App.statusApiPingEnabled = z;
        }

        public final ArrayList<String> getActivePayouts() {
            return App.activePayouts;
        }

        public final void setActivePayouts(ArrayList<String> arrayList) {
            Intrinsics.checkNotNullParameter(arrayList, "<set-?>");
            App.activePayouts = arrayList;
        }
    }
}