导航菜单

页面标题

页面副标题

RummyCircle v11000.89 - BaseOnBoardingWebviewUtility.java 源代码

正在查看: RummyCircle v11000.89 应用的 BaseOnBoardingWebviewUtility.java JAVA 源代码文件

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


package com.games24x7.onboarding.common.webview;

import android.app.Activity;
import android.net.Uri;
import android.webkit.CookieManager;
import com.games24x7.coregame.KrakenApplication;
import com.games24x7.coregame.common.communication.nativecomm.ComplexLayerCommInterface;
import com.games24x7.coregame.common.deeplink.util.NativeUtil;
import com.games24x7.coregame.common.deeplink.util.PreferenceManager;
import com.games24x7.coregame.common.model.webview.PurchaseInfoModel;
import com.games24x7.coregame.common.utility.analytics.AnalyticsUtil;
import com.games24x7.coregame.common.utility.crashlytics.CrashlyticsUtility;
import com.games24x7.coregame.common.utility.log.Logger;
import com.games24x7.coregame.common.utility.native.UrlUtility;
import com.games24x7.coregame.common.utility.runtimevars.RunTimeVarsUtility;
import com.games24x7.pgeventbus.event.EventInfo;
import com.games24x7.pgeventbus.event.PGEvent;
import com.games24x7.pgwebview.models.CustomWebviewResponse;
import com.games24x7.pgwebview.models.WebViewConfiguration;
import com.google.gson.d;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Set;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.I;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;

@Metadata
public abstract class BaseOnBoardingWebviewUtility {

    @NotNull
    private static final String TAG = "BaseWebviewUtility";
    private boolean addCashFromRoyalEntry;
    private int count;
    private boolean downtime;
    private ComplexLayerCommInterface eventCommInterface;
    private boolean gotoBaf;
    private boolean isAddCashGT;
    private boolean isMMOnBoardingJourney;
    private boolean isRumbleOnBoardingJourney;
    private boolean isTutorialShown;
    private boolean isTutorialWebview;
    private boolean kycLoaded;
    private PurchaseInfoModel mPurchaseInfoModel;
    private CustomWebviewOperation webViewOperationHandler;

    @NotNull
    public static final Companion Companion = new Companion(null);

    @NotNull
    private static final HashMap<String, BaseOnBoardingWebviewUtility> utilityWebviewIdMap = new HashMap<>();

    @NotNull
    private String rumbleCallbackObject = "";

    @NotNull
    private String rumbleCallbackFunction = "";

    @NotNull
    private String mmCallbackObject = "";

    @NotNull
    private String mmCallbackFunction = "";

    @NotNull
    private String mmCallbackData = "";
    private int rumbleCloseDirection = -1;
    private int mmOpenDirection = -1;
    private int closeDirection = -1;

    @NotNull
    private String webviewId = "";

    @NotNull
    private String dlSource = "";

    @NotNull
    private String dlScreenType = "";

    @NotNull
    private String dlInferredUrl = "";

    @NotNull
    private String webLoadUrl = "";

    @NotNull
    private String jScript = "";

    @NotNull
    private String postLoginOverlayContent = "";

    @NotNull
    private String hideHtmlScript = "";

    @NotNull
    private HashMap<String, String> hidingScriptMap = new HashMap<>();

    @NotNull
    private HashMap<String, String> ctaMap = new HashMap<>();
    private boolean isFirstPage = true;
    private boolean isFirstDeepLinkPage = true;

    @NotNull
    private String baseUrl = UrlUtility.INSTANCE.getMrcUrl();

    @NotNull
    private CustomWebviewResponse mCustomWebviewResponse = new CustomWebviewResponse(false, "", I.d());

    @NotNull
    private WebViewConfiguration mWebViewConfiguration = new WebViewConfiguration(false, false, false, false, false, false, false, false, false, false, false, false, false, false, NativeUtil.INSTANCE.getCustomUserAgent(), Boolean.valueOf(RunTimeVarsUtility.INSTANCE.getBooleanRunTimeVar("useEvaluateJavaScript", false)), (Boolean) null, (Set) null, 208895, (DefaultConstructorMarker) null);

    @Metadata
    public static final class Companion {
        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        @NotNull
        public final HashMap<String, BaseOnBoardingWebviewUtility> getUtilityWebviewIdMap() {
            return BaseOnBoardingWebviewUtility.utilityWebviewIdMap;
        }

        public final void sendLegoEventToWebview(int i, Object obj, CustomWebviewOperation customWebviewOperation) {
            LinkedHashMap linkedHashMap = new LinkedHashMap();
            linkedHashMap.put("type", Integer.valueOf(i));
            linkedHashMap.put("data", obj);
            String s = new d().s(linkedHashMap);
            Intrinsics.checkNotNullExpressionValue(s, "Gson().toJson(responseMap)");
            Logger.d$default(Logger.INSTANCE, BaseOnBoardingWebviewUtility.TAG, "sendLegoEventToWebview :: Sending response :: " + s, false, 4, (Object) null);
            if (customWebviewOperation != null) {
                customWebviewOperation.loadUrlIntoWebview("javascript:window.postMessage(" + s + ", '*');");
            }
        }

        private Companion() {
        }
    }

    public static void launchJourney$default(BaseOnBoardingWebviewUtility baseOnBoardingWebviewUtility, String str, int i, int i2, int i3, int i4, String str2, String str3, boolean z, String str4, JSONObject jSONObject, int i5, Object obj) {
        if (obj != null) {
            throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: launchJourney");
        }
        baseOnBoardingWebviewUtility.launchJourney(str, (i5 & 2) != 0 ? 0 : i, (i5 & 4) != 0 ? 0 : i2, (i5 & 8) != 0 ? 100 : i3, (i5 & 16) != 0 ? 100 : i4, str2, (i5 & 64) != 0 ? "FULLSCREEN" : str3, (i5 & 128) != 0 ? false : z, (i5 & 256) != 0 ? "portrait" : str4, (i5 & 512) != 0 ? new JSONObject() : jSONObject);
    }

    public static final void loadHidingScript$lambda$4(BaseOnBoardingWebviewUtility baseOnBoardingWebviewUtility) {
        Intrinsics.checkNotNullParameter(baseOnBoardingWebviewUtility, "this$0");
        try {
            CustomWebviewOperation webViewOperationHandler = baseOnBoardingWebviewUtility.getWebViewOperationHandler();
            if (webViewOperationHandler != null) {
                webViewOperationHandler.loadUrlIntoWebview("javascript:" + baseOnBoardingWebviewUtility.getJScript());
            }
            Logger.e$default(Logger.INSTANCE, TAG, "loadHidingScript :: Loading Hiding Script :: Script is " + baseOnBoardingWebviewUtility.getJScript(), false, 4, (Object) null);
        } catch (Exception e) {
            Logger logger = Logger.INSTANCE;
            e.printStackTrace();
            Logger.e$default(logger, TAG, "loadHidingScript :: " + Unit.a, false, 4, (Object) null);
            CrashlyticsUtility.logException$default(CrashlyticsUtility.INSTANCE, e, (String) null, (HashMap) null, 6, (Object) null);
        }
    }

    public static final void onPageStarted$lambda$0(BaseOnBoardingWebviewUtility baseOnBoardingWebviewUtility) {
        Intrinsics.checkNotNullParameter(baseOnBoardingWebviewUtility, "this$0");
        try {
            CustomWebviewOperation webViewOperationHandler = baseOnBoardingWebviewUtility.getWebViewOperationHandler();
            if (webViewOperationHandler != null) {
                webViewOperationHandler.loadUrlIntoWebview("javascript:" + baseOnBoardingWebviewUtility.getJScript());
            }
            Logger.e$default(Logger.INSTANCE, TAG, "onPageStarted :: Loading Hiding Script :: Script is " + baseOnBoardingWebviewUtility.getJScript(), false, 4, (Object) null);
        } catch (Exception e) {
            Logger logger = Logger.INSTANCE;
            e.printStackTrace();
            Logger.e$default(logger, TAG, "BaseWebUtilityOnPageStarted :: " + Unit.a, false, 4, (Object) null);
            CrashlyticsUtility.logException$default(CrashlyticsUtility.INSTANCE, e, (String) null, (HashMap) null, 6, (Object) null);
        }
    }

    public boolean getAddCashFromRoyalEntry() {
        return this.addCashFromRoyalEntry;
    }

    @NotNull
    public String getBaseUrl() {
        return this.baseUrl;
    }

    public int getCloseDirection() {
        return this.closeDirection;
    }

    public int getCount() {
        return this.count;
    }

    @NotNull
    public HashMap<String, String> getCtaMap() {
        return this.ctaMap;
    }

    @NotNull
    public String getDlInferredUrl() {
        return this.dlInferredUrl;
    }

    @NotNull
    public String getDlScreenType() {
        return this.dlScreenType;
    }

    @NotNull
    public String getDlSource() {
        return this.dlSource;
    }

    public boolean getDowntime() {
        return this.downtime;
    }

    public ComplexLayerCommInterface getEventCommInterface() {
        return this.eventCommInterface;
    }

    public boolean getGotoBaf() {
        return this.gotoBaf;
    }

    @NotNull
    public String getHideHtmlScript() {
        return this.hideHtmlScript;
    }

    @NotNull
    public HashMap<String, String> getHidingScriptMap() {
        return this.hidingScriptMap;
    }

    @NotNull
    public String getJScript() {
        return this.jScript;
    }

    public boolean getKycLoaded() {
        return this.kycLoaded;
    }

    @NotNull
    public CustomWebviewResponse getMCustomWebviewResponse() {
        return this.mCustomWebviewResponse;
    }

    public PurchaseInfoModel getMPurchaseInfoModel() {
        return this.mPurchaseInfoModel;
    }

    @NotNull
    public WebViewConfiguration getMWebViewConfiguration() {
        return this.mWebViewConfiguration;
    }

    @NotNull
    public String getMmCallbackData() {
        return this.mmCallbackData;
    }

    @NotNull
    public String getMmCallbackFunction() {
        return this.mmCallbackFunction;
    }

    @NotNull
    public String getMmCallbackObject() {
        return this.mmCallbackObject;
    }

    public int getMmOpenDirection() {
        return this.mmOpenDirection;
    }

    @NotNull
    public String getPostLoginOverlayContent() {
        return this.postLoginOverlayContent;
    }

    @NotNull
    public String getRumbleCallbackFunction() {
        return this.rumbleCallbackFunction;
    }

    @NotNull
    public String getRumbleCallbackObject() {
        return this.rumbleCallbackObject;
    }

    public int getRumbleCloseDirection() {
        return this.rumbleCloseDirection;
    }

    @NotNull
    public String getWebLoadUrl() {
        return this.webLoadUrl;
    }

    public CustomWebviewOperation getWebViewOperationHandler() {
        return this.webViewOperationHandler;
    }

    @NotNull
    public String getWebviewId() {
        return this.webviewId;
    }

    public boolean isAddCashGT() {
        return this.isAddCashGT;
    }

    public boolean isFirstDeepLinkPage() {
        return this.isFirstDeepLinkPage;
    }

    public boolean isFirstPage() {
        return this.isFirstPage;
    }

    public boolean isMMOnBoardingJourney() {
        return this.isMMOnBoardingJourney;
    }

    public boolean isRumbleOnBoardingJourney() {
        return this.isRumbleOnBoardingJourney;
    }

    public boolean isTutorialShown() {
        return this.isTutorialShown;
    }

    public boolean isTutorialWebview() {
        return this.isTutorialWebview;
    }

    public abstract void launchJourney(@NotNull String str, int i, int i2, int i3, int i4, @NotNull String str2, @NotNull String str3, boolean z, @NotNull String str4, @NotNull JSONObject jSONObject);

    public final void loadHidingScript() {
        Activity webviewActivity = KrakenApplication.Companion.getWebviewActivity();
        if (webviewActivity != null) {
            webviewActivity.runOnUiThread(new a(this));
        }
    }

    public abstract void onActivityResult(@NotNull String str, @NotNull String str2, int i, int i2, @NotNull String str3);

    public abstract void onBackPress(@NotNull String str);

    public abstract void onCanGoBack(@NotNull String str, boolean z);

    public abstract void onCanGoForward(@NotNull String str, boolean z);

    public void onCreate(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "webviewId");
    }

    public abstract void onDestroy(@NotNull String str);

    public abstract void onFinish(@NotNull String str);

    public abstract void onMaximized(@NotNull String str);

    public abstract void onMinimized(@NotNull String str);

    public void onPageFinished(@NotNull String str, @NotNull String str2) {
        CustomWebviewOperation webViewOperationHandler;
        CustomWebviewOperation webViewOperationHandler2;
        String string;
        CustomWebviewOperation webViewOperationHandler3;
        Intrinsics.checkNotNullParameter(str, "webviewId");
        Intrinsics.checkNotNullParameter(str2, "url");
        if (isFirstDeepLinkPage()) {
            trackDeepLinkLandingEvent("deepLinking/landedOnIntendedScreen", "view_displayed", null, null);
            setFirstDeepLinkPage(false);
        }
        try {
            if (StringsKt.E(str2, "rummycircle.com", false)) {
                CustomWebviewOperation webViewOperationHandler4 = getWebViewOperationHandler();
                if (webViewOperationHandler4 != null) {
                    webViewOperationHandler4.loadUrlIntoWebview("javascript: var rcLogoDiv = document.getElementsByClassName('rc_logo');if(rcLogoDiv.length > 0){rcLogoDiv[0].onclick = function(){Android.RCLogoClick();};}");
                }
                KrakenApplication.Companion companion = KrakenApplication.Companion;
                if (companion.getWebviewActivity() != null && (string = PreferenceManager.Companion.getInstance().getCuratedSharedPref().getString("data", "")) != null && string.length() > 0 && (webViewOperationHandler3 = getWebViewOperationHandler()) != null) {
                    webViewOperationHandler3.loadUrlIntoWebview("javascript:localStorage.setItem('curatedJourneyData'," + string + ");");
                }
                if (StringsKt.J(str2, "/csp.jsp?", 0, false, 6) > 0) {
                    String cookie = CookieManager.getInstance().getCookie(getBaseUrl());
                    Logger.i$default(Logger.INSTANCE, TAG, "BaseWebUtilityOnPageFinished :: Cookies are :: " + cookie, false, 4, (Object) null);
                    Intrinsics.checkNotNullExpressionValue(cookie, "str");
                    if (StringsKt.J(cookie, "BAF_STATUS=1", 0, false, 6) == -1) {
                        CustomWebviewOperation webViewOperationHandler5 = getWebViewOperationHandler();
                        if (webViewOperationHandler5 != null) {
                            webViewOperationHandler5.reloadWebview();
                        }
                    } else {
                        CustomWebviewOperation webViewOperationHandler6 = getWebViewOperationHandler();
                        if (webViewOperationHandler6 != null) {
                            webViewOperationHandler6.loadUrlIntoWebview(getBaseUrl() + companion.getRuntimeVars().get("bafUrl"));
                        }
                        setGotoBaf(true);
                    }
                }
                if (StringsKt.E(str2, "help.html", false) && (webViewOperationHandler2 = getWebViewOperationHandler()) != null) {
                    webViewOperationHandler2.loadUrlIntoWebview("javascript:try{var elem = document.getElementsByClassName('footer')[0];elem.parentElement.removeChild(elem);}catch(e){console.log(e);}");
                }
                if (!StringsKt.E(str2, "logout", false) || (webViewOperationHandler = getWebViewOperationHandler()) == null) {
                    return;
                }
                webViewOperationHandler.stopLoadingWebview();
            }
        } catch (Exception e) {
            CrashlyticsUtility.logException$default(CrashlyticsUtility.INSTANCE, e, (String) null, (HashMap) null, 6, (Object) null);
            Logger logger = Logger.INSTANCE;
            e.printStackTrace();
            Logger.e$default(logger, TAG, "BaseWebUtilityOnPageFinished :: Got crash is the onFinish Journey :: " + Unit.a, false, 4, (Object) null);
        }
    }

    public void onPageStarted(@org.jetbrains.annotations.NotNull java.lang.String r13, @org.jetbrains.annotations.NotNull java.lang.String r14) {
        throw new UnsupportedOperationException("Method not decompiled: com.games24x7.onboarding.common.webview.BaseOnBoardingWebviewUtility.onPageStarted(java.lang.String, java.lang.String):void");
    }

    public abstract void onPause(@NotNull String str);

    public void onReceivedError(@NotNull String str, int i, @NotNull String str2, @NotNull String str3) {
        Intrinsics.checkNotNullParameter(str, "webviewId");
        Intrinsics.checkNotNullParameter(str2, "description");
        Intrinsics.checkNotNullParameter(str3, "failingUrl");
        if (isFirstDeepLinkPage()) {
            Logger.e$default(Logger.INSTANCE, TAG, "onReceivedError :: Webview Id is " + str + " :: Error Code is " + i + " ::  Description is :: " + str2 + " and Failing url is " + str3, false, 4, (Object) null);
            trackDeepLinkLandingEvent("deepLinking/deepLinkDiscarded", "action_failed", str2, "WEB_DL_LOAD_FAILURE");
            setFirstDeepLinkPage(false);
        }
    }

    public abstract void onResponseFromNative(@NotNull PGEvent pGEvent);

    public abstract void onRestart(@NotNull String str);

    public abstract void onResume(@NotNull String str);

    public void onWebviewCreated(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "webviewId");
        JSONObject jSONObject = new JSONObject();
        jSONObject.put("isSuccess", true);
        JSONObject jSONObject2 = new JSONObject();
        jSONObject2.put("webviewId", str);
        Unit unit = Unit.a;
        jSONObject.put("result", jSONObject2);
        String jSONObject3 = jSONObject.toString();
        Intrinsics.checkNotNullExpressionValue(jSONObject3, "JSONObject().apply {\n   …\n            }.toString()");
        sendMessageToClient("onWebviewLoaded", jSONObject3);
    }

    public final void sendMessageToClient(@NotNull String str, @NotNull String str2) {
        Intrinsics.checkNotNullParameter(str, "eventName");
        Intrinsics.checkNotNullParameter(str2, "payload");
        ComplexLayerCommInterface eventCommInterface = getEventCommInterface();
        if (eventCommInterface != null) {
            ComplexLayerCommInterface.DefaultImpls.onRouterResponse$default(eventCommInterface, new PGEvent(new EventInfo(str, "onboarding_native_callback", (String) null, (String) null, 12, (DefaultConstructorMarker) null), str2, new EventInfo("onboarding_native_callback", "onboarding_native_callback", (String) null, (String) null, 12, (DefaultConstructorMarker) null)), false, true, 2, (Object) null);
        }
    }

    public void setAddCashFromRoyalEntry(boolean z) {
        this.addCashFromRoyalEntry = z;
    }

    public void setAddCashGT(boolean z) {
        this.isAddCashGT = z;
    }

    public void setBaseUrl(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.baseUrl = str;
    }

    public void setCloseDirection(int i) {
        this.closeDirection = i;
    }

    public void setCount(int i) {
        this.count = i;
    }

    public void setCtaMap(@NotNull HashMap<String, String> hashMap) {
        Intrinsics.checkNotNullParameter(hashMap, "<set-?>");
        this.ctaMap = hashMap;
    }

    public void setDlInferredUrl(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.dlInferredUrl = str;
    }

    public void setDlScreenType(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.dlScreenType = str;
    }

    public void setDlSource(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.dlSource = str;
    }

    public void setDowntime(boolean z) {
        this.downtime = z;
    }

    public void setEventCommInterface(ComplexLayerCommInterface complexLayerCommInterface) {
        this.eventCommInterface = complexLayerCommInterface;
    }

    public void setFirstDeepLinkPage(boolean z) {
        this.isFirstDeepLinkPage = z;
    }

    public void setFirstPage(boolean z) {
        this.isFirstPage = z;
    }

    public void setGotoBaf(boolean z) {
        this.gotoBaf = z;
    }

    public void setHideHtmlScript(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.hideHtmlScript = str;
    }

    public void setHidingScriptMap(@NotNull HashMap<String, String> hashMap) {
        Intrinsics.checkNotNullParameter(hashMap, "<set-?>");
        this.hidingScriptMap = hashMap;
    }

    public void setJScript(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.jScript = str;
    }

    public void setKycLoaded(boolean z) {
        this.kycLoaded = z;
    }

    public void setMCustomWebviewResponse(@NotNull CustomWebviewResponse customWebviewResponse) {
        Intrinsics.checkNotNullParameter(customWebviewResponse, "<set-?>");
        this.mCustomWebviewResponse = customWebviewResponse;
    }

    public void setMMOnBoardingJourney(boolean z) {
        this.isMMOnBoardingJourney = z;
    }

    public void setMPurchaseInfoModel(PurchaseInfoModel purchaseInfoModel) {
        this.mPurchaseInfoModel = purchaseInfoModel;
    }

    public void setMWebViewConfiguration(@NotNull WebViewConfiguration webViewConfiguration) {
        Intrinsics.checkNotNullParameter(webViewConfiguration, "<set-?>");
        this.mWebViewConfiguration = webViewConfiguration;
    }

    public void setMmCallbackData(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.mmCallbackData = str;
    }

    public void setMmCallbackFunction(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.mmCallbackFunction = str;
    }

    public void setMmCallbackObject(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.mmCallbackObject = str;
    }

    public void setMmOpenDirection(int i) {
        this.mmOpenDirection = i;
    }

    public void setPostLoginOverlayContent(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.postLoginOverlayContent = str;
    }

    public void setRumbleCallbackFunction(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.rumbleCallbackFunction = str;
    }

    public void setRumbleCallbackObject(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.rumbleCallbackObject = str;
    }

    public void setRumbleCloseDirection(int i) {
        this.rumbleCloseDirection = i;
    }

    public void setRumbleOnBoardingJourney(boolean z) {
        this.isRumbleOnBoardingJourney = z;
    }

    public void setTutorialShown(boolean z) {
        this.isTutorialShown = z;
    }

    public void setTutorialWebview(boolean z) {
        this.isTutorialWebview = z;
    }

    public void setWebLoadUrl(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.webLoadUrl = str;
    }

    public void setWebViewOperationHandler(CustomWebviewOperation customWebviewOperation) {
        this.webViewOperationHandler = customWebviewOperation;
    }

    public void setWebviewId(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.webviewId = str;
    }

    public abstract void setupCommInterface(@NotNull String str, @NotNull ComplexLayerCommInterface complexLayerCommInterface);

    public abstract void shouldInterceptRequest(@NotNull String str, @NotNull String str2);

    public abstract void shouldOverrideUrlLoading(@NotNull String str, @NotNull String str2);

    public final void trackDeepLinkLandingEvent(@NotNull String str, @NotNull String str2, String str3, String str4) {
        Intrinsics.checkNotNullParameter(str, "eventId");
        Intrinsics.checkNotNullParameter(str2, "eventName");
        KrakenApplication.Companion companion = KrakenApplication.Companion;
        if (companion.getWebviewActivity() != null) {
            Activity webviewActivity = companion.getWebviewActivity();
            if ((webviewActivity != null ? webviewActivity.getIntent() : null) == null || getDlInferredUrl() == null) {
                return;
            }
            String queryParameter = Uri.parse(getDlInferredUrl()).getQueryParameter("campaign_info");
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("event", str2);
            jSONObject.put("id", str);
            jSONObject.put("url", "");
            jSONObject.put("userId", PreferenceManager.Companion.getInstance().getUserId());
            jSONObject.put("metadata", NativeUtil.INSTANCE.getDLMetadata(str3, str4, (String) null, getDlSource(), queryParameter, (String) null, (String) null, getDlInferredUrl(), getDlScreenType(), (String) null));
            AnalyticsUtil analyticsUtil = AnalyticsUtil.INSTANCE;
            String jSONObject2 = jSONObject.toString();
            Intrinsics.checkNotNullExpressionValue(jSONObject2, "analyticsJson.toString()");
            AnalyticsUtil.sendAnalyticsEvent$default(analyticsUtil, "clickStreamData", analyticsUtil.createAnalyticsPayload(jSONObject2), (String) null, (String) null, 12, (Object) null);
        }
    }
}