导航菜单

页面标题

页面副标题

Tuna Cash v1.0.0 - LLiIl.java 源代码

正在查看: Tuna Cash v1.0.0 应用的 LLiIl.java JAVA 源代码文件

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


package lliliI;

import android.app.Activity;
import android.app.Application;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.NetworkRequest;
import android.os.Build;
import android.util.Log;
import android.view.View;
import android.view.Window;
import coil.coroutines.DiskLruCache;
import com.google.android.gms.internal.measurement.IIIILli;
import com.google.android.gms.internal.measurement.IlIliL;
import com.google.android.gms.internal.measurement.LLILli;
import com.google.android.gms.internal.measurement.liLILi;
import com.google.android.gms.internal.measurement.llili;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import java.util.logging.Level;
import java.util.logging.Logger;
import kotlin.Pair;
import kotlin.collections.LLLli;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import llLil.IlIlliI;
import sgd2.LLLIl;
import wrg.VeU;

public abstract class LLiIl {
    public static boolean lLILIl;

    public static final void IILii(String str) {
        if (oANmR.LILlLi.iLLLl) {
            Log.i("LVk5Z", "[event]-setCustomerId " + str);
        }
        if (str == null) {
            return;
        }
        IiLlI(str, "mMask");
    }

    public static com.google.android.gms.internal.measurement.ILLiI IiLIL(IlIliL ilIliL) {
        if (ilIliL == null) {
            return com.google.android.gms.internal.measurement.ILLiI.lLILIl;
        }
        int iilIL = ilIliL.iilIL() - 1;
        if (iilIL == 1) {
            return ilIliL.LlLlL() ? new LLILli(ilIliL.IILlL()) : com.google.android.gms.internal.measurement.ILLiI.IILii;
        }
        if (iilIL == 2) {
            return ilIliL.LILli() ? new com.google.android.gms.internal.measurement.IiLlI(Double.valueOf(ilIliL.liLILi())) : new com.google.android.gms.internal.measurement.IiLlI(null);
        }
        if (iilIL == 3) {
            return ilIliL.LllLii() ? new com.google.android.gms.internal.measurement.llLii(Boolean.valueOf(ilIliL.lIiiLli())) : new com.google.android.gms.internal.measurement.llLii(null);
        }
        if (iilIL != 4) {
            throw new IllegalArgumentException("Unknown type found. Cannot convert entity");
        }
        IIIILli iiIiLl = ilIliL.iiIiLl();
        ArrayList arrayList = new ArrayList();
        Iterator it = iiIiLl.iterator();
        while (it.hasNext()) {
            arrayList.add(IiLIL((IlIliL) it.next()));
        }
        return new liLILi(ilIliL.LLILli(), arrayList);
    }

    public static void IiLlI(Object obj, String str) {
        oANmR.LILlLi lILlLi = oANmR.LILlLi.lLILIl;
        if (oANmR.LILlLi.iLLLl) {
            Log.i("LVk5Z", "[event]-setCommonParams key = " + str + ", value = " + obj);
        }
        Intrinsics.checkNotNullParameter(str, "key");
        Intrinsics.checkNotNullParameter(obj, "value");
        Intrinsics.checkNotNullParameter(str, "key");
        Intrinsics.checkNotNullParameter(obj, "value");
        oANmR.LILlLi.LLiIl().put(str, obj);
    }

    public static int LILlLi(int i) {
        int[] iArr = {1, 2, 3};
        for (int i2 = 0; i2 < 3; i2++) {
            int i3 = iArr[i2];
            int i4 = i3 - 1;
            if (i3 == 0) {
                throw null;
            }
            if (i4 == i) {
                return i3;
            }
        }
        return 1;
    }

    public static final void LLiIl(Application application, String str, String str2, String str3) {
        String str4;
        NetworkInfo activeNetworkInfo;
        String str5 = "";
        Intrinsics.checkNotNullParameter(application, "app");
        Intrinsics.checkNotNullParameter("https://finger-app.tunacash.com/", "baseUrl");
        Intrinsics.checkNotNullParameter("https://collect-web.tunacash.com/api/", "reportUrl");
        Intrinsics.checkNotNullParameter("38cb07f1-21ce-47ed-b552-384381fbaa92", "appChannel");
        Intrinsics.checkNotNullParameter(str, "userId");
        Intrinsics.checkNotNullParameter(str2, "sessionId");
        Intrinsics.checkNotNullParameter(str3, "staticKey");
        Intrinsics.checkNotNullParameter(application, "<set-?>");
        LLLIl.lLILIl = application;
        if (StringsKt.lIlilI("https://finger-app.tunacash.com/") || StringsKt.lIlilI("https://collect-web.tunacash.com/api/") || lLILIl) {
            return;
        }
        lLILIl = true;
        oANmR.LILlLi.LLiIl = "https://finger-app.tunacash.com/";
        oANmR.LILlLi.iliLLil = "https://collect-web.tunacash.com/api/";
        oANmR.LILlLi.lIliL = application;
        NetworkRequest build = new NetworkRequest.Builder().build();
        Intrinsics.checkNotNullParameter(application, "context");
        Object systemService = application.getSystemService("connectivity");
        ConnectivityManager connectivityManager = systemService instanceof ConnectivityManager ? (ConnectivityManager) systemService : null;
        if (connectivityManager == null || (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) == null || !activeNetworkInfo.isConnected()) {
            oANmR.LILlLi.LILlLi = true;
        }
        Object systemService2 = application.getSystemService("connectivity");
        ConnectivityManager connectivityManager2 = systemService2 instanceof ConnectivityManager ? (ConnectivityManager) systemService2 : null;
        if (connectivityManager2 != null) {
            connectivityManager2.registerNetworkCallback(build, (ConnectivityManager.NetworkCallback) oANmR.LILlLi.liLILi.getValue());
        }
        Intrinsics.checkNotNullParameter(application, "<this>");
        PackageManager packageManager = application.getPackageManager();
        try {
            str4 = packageManager.getApplicationLabel(packageManager.getApplicationInfo(application.getPackageName(), 0)).toString();
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
            str4 = "";
        }
        IiLlI(str4, "appName");
        Intrinsics.checkNotNullParameter(application, "<this>");
        try {
            String str6 = application.getPackageManager().getPackageInfo(application.getPackageName(), 1).versionName;
            Intrinsics.checkNotNullExpressionValue(str6, "packageManager.getPackag…T_ACTIVITIES).versionName");
            str5 = str6;
        } catch (PackageManager.NameNotFoundException e2) {
            e2.printStackTrace();
        }
        IiLlI(str5, "appVersion");
        String packageName = application.getPackageName();
        Intrinsics.checkNotNullExpressionValue(packageName, "app.packageName");
        IiLlI(packageName, "packageName");
        IiLlI("Android", "terminal");
        IiLlI("1.2.2.1", "sdkVersion");
        Intrinsics.checkNotNullParameter(str3, "staticKey");
        oANmR.LILlLi.llLii = str3;
        IiLlI("38cb07f1-21ce-47ed-b552-384381fbaa92", "app_channel");
        IILii(str);
        Intrinsics.checkNotNullParameter(str2, "sessionId");
        IiLlI(str2, "sessionId");
        VeU.INSTANCE.fetchConfigAndReport("38cb07f1-21ce-47ed-b552-384381fbaa92", "1.2.2.1");
    }

    public static com.google.android.gms.internal.measurement.ILLiI iLLLl(com.google.android.gms.internal.measurement.LILlLi lILlLi, LLILli lLILli, llili lliliVar, ArrayList arrayList) {
        String str = lLILli.lLlii;
        if (lILlLi.zzt(str)) {
            com.google.android.gms.internal.measurement.ILLiI zzf = lILlLi.zzf(str);
            if (zzf instanceof com.google.android.gms.internal.measurement.IILii) {
                return ((com.google.android.gms.internal.measurement.IILii) zzf).lLILIl(lliliVar, arrayList);
            }
            throw new IllegalArgumentException(String.format("%s is not a function", str));
        }
        if (!"hasOwnProperty".equals(str)) {
            throw new IllegalArgumentException(String.format("Object has no function %s", str));
        }
        IlIlliI.lLLIl("hasOwnProperty", arrayList, 1);
        return lILlLi.zzt(lliliVar.lIliL.ILLiI(lliliVar, (com.google.android.gms.internal.measurement.ILLiI) arrayList.get(0)).LLiIl()) ? com.google.android.gms.internal.measurement.ILLiI.ilLll : com.google.android.gms.internal.measurement.ILLiI.IiLlI;
    }

    public static com.google.android.gms.internal.measurement.ILLiI iiILI(Object obj) {
        if (obj == null) {
            return com.google.android.gms.internal.measurement.ILLiI.lIliL;
        }
        if (obj instanceof String) {
            return new LLILli((String) obj);
        }
        if (obj instanceof Double) {
            return new com.google.android.gms.internal.measurement.IiLlI((Double) obj);
        }
        if (obj instanceof Long) {
            return new com.google.android.gms.internal.measurement.IiLlI(Double.valueOf(((Long) obj).doubleValue()));
        }
        if (obj instanceof Integer) {
            return new com.google.android.gms.internal.measurement.IiLlI(Double.valueOf(((Integer) obj).doubleValue()));
        }
        if (obj instanceof Boolean) {
            return new com.google.android.gms.internal.measurement.llLii((Boolean) obj);
        }
        if (!(obj instanceof Map)) {
            if (!(obj instanceof List)) {
                throw new IllegalArgumentException("Invalid value type");
            }
            com.google.android.gms.internal.measurement.iliLLil ilillil = new com.google.android.gms.internal.measurement.iliLLil();
            Iterator it = ((List) obj).iterator();
            while (it.hasNext()) {
                ilillil.ILLiI(ilillil.LILlLi(), iiILI(it.next()));
            }
            return ilillil;
        }
        com.google.android.gms.internal.measurement.IiLIL iiLIL = new com.google.android.gms.internal.measurement.IiLIL();
        Map map = (Map) obj;
        for (Object obj2 : map.keySet()) {
            com.google.android.gms.internal.measurement.ILLiI iiILI = iiILI(map.get(obj2));
            if (obj2 != null) {
                if (!(obj2 instanceof String)) {
                    obj2 = obj2.toString();
                }
                iiLIL.ilLll((String) obj2, iiILI);
            }
        }
        return iiLIL;
    }

    public static LinkedHashMap iiIiiI(String str, Map map) {
        LinkedHashMap lLlii = LLLli.lLlii(map);
        if (!StringsKt.lIlilI(str)) {
            lLlii.put("eventDetail", str);
        }
        Locale locale = Locale.ROOT;
        String lowerCase = "RISK".toLowerCase(locale);
        Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
        lLlii.put("eventBelong", lowerCase);
        lLlii.put("eventPage", "pv");
        String lowerCase2 = "BUSINESS".toLowerCase(locale);
        Intrinsics.checkNotNullExpressionValue(lowerCase2, "this as java.lang.String).toLowerCase(Locale.ROOT)");
        lLlii.put("eventSource", lowerCase2);
        lLlii.put("eventTime", Long.valueOf(System.currentTimeMillis()));
        return lLlii;
    }

    public static String ilLll(String str, String str2) {
        int length = str.length() - str2.length();
        if (length < 0 || length > 1) {
            throw new IllegalArgumentException("Invalid input received");
        }
        StringBuilder sb = new StringBuilder(str2.length() + str.length());
        for (int i = 0; i < str.length(); i++) {
            sb.append(str.charAt(i));
            if (str2.length() > i) {
                sb.append(str2.charAt(i));
            }
        }
        return sb.toString();
    }

    public static boolean iliLLil() {
        return Build.VERSION.SDK_INT >= 26;
    }

    public static final View lIliL(Activity activity) {
        if (IILllL.lLILIl.lIliL(LLiIl.class) || activity == null) {
            return null;
        }
        try {
            Window window = activity.getWindow();
            if (window == null) {
                return null;
            }
            return window.getDecorView().getRootView();
        } catch (Exception unused) {
            return null;
        } catch (Throwable th) {
            IILllL.lLILIl.lLILIl(LLiIl.class, th);
            return null;
        }
    }

    public static String lLILIl(Long l) {
        Intrinsics.checkNotNullParameter("dd-MM-yyyy", "pattern");
        if (l == null || l.longValue() == 0) {
            return "";
        }
        long longValue = l.longValue();
        Intrinsics.checkNotNullParameter("dd-MM-yyyy", "pattern");
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd-MM-yyyy");
        IIiLIIl.LLiIl lIliL = com.efectivo.presto.credi.tuna.LLiIl.lIliL();
        if (lIliL == null || lIliL.getMX_TIMEZONE_SET() == null || !Intrinsics.lIliL(lIliL.getMX_TIMEZONE_SET(), DiskLruCache.VERSION)) {
            simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT-5:00"));
        } else {
            simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT-6:00"));
        }
        String format = simpleDateFormat.format(new Date(longValue));
        Intrinsics.checkNotNullExpressionValue(format, "format(...)");
        if (format == null || format.length() == 0 || !StringsKt.iilLIL(format, "-", false)) {
            return "";
        }
        List LIili = StringsKt.LIili(format, new String[]{"-"}, 0, 6);
        if (LIili.size() != 3) {
            return "";
        }
        String str = (String) LLLli.IiLlI(new Pair[]{new Pair(DiskLruCache.VERSION, "ENE"), new Pair("01", "ENE"), new Pair("2", "FEB"), new Pair("02", "FEB"), new Pair("3", "MAR"), new Pair("03", "MAR"), new Pair("4", "ABR"), new Pair("04", "ABR"), new Pair("5", "MAY"), new Pair("05", "MAY"), new Pair("6", "JUN"), new Pair("06", "JUN"), new Pair("7", "JUL"), new Pair("07", "JUL"), new Pair("8", "AGO"), new Pair("08", "AGO"), new Pair("9", "SEP"), new Pair("09", "SEP"), new Pair("10", "OCT"), new Pair("11", "NOV"), new Pair("12", "DIC")}).get(LIili.get(1));
        String str2 = str != null ? str : "";
        return LIili.get(0) + " " + str2 + " " + LIili.get(2);
    }

    public static String lLILl(Object... objArr) {
        int length;
        int length2;
        int indexOf;
        String str;
        int i = 0;
        int i2 = 0;
        while (true) {
            length = objArr.length;
            if (i2 >= length) {
                break;
            }
            Object obj = objArr[i2];
            if (obj == null) {
                str = "null";
            } else {
                try {
                    str = obj.toString();
                } catch (Exception e) {
                    String ilLll = IiLIi.ilLll.ilLll(obj.getClass().getName(), "@", Integer.toHexString(System.identityHashCode(obj)));
                    Logger.getLogger("com.google.common.base.Strings").logp(Level.WARNING, "com.google.common.base.Strings", "lenientToString", "Exception during lenientFormat for ".concat(ilLll), (Throwable) e);
                    str = "<" + ilLll + " threw " + e.getClass().getName() + ">";
                }
            }
            objArr[i2] = str;
            i2++;
        }
        StringBuilder sb = new StringBuilder((length * 16) + 29);
        int i3 = 0;
        while (true) {
            length2 = objArr.length;
            if (i >= length2 || (indexOf = "expected a non-null reference".indexOf("%s", i3)) == -1) {
                break;
            }
            sb.append((CharSequence) "expected a non-null reference", i3, indexOf);
            sb.append(objArr[i]);
            i3 = indexOf + 2;
            i++;
        }
        sb.append((CharSequence) "expected a non-null reference", i3, 29);
        if (i < length2) {
            sb.append(" [");
            sb.append(objArr[i]);
            for (int i4 = i + 1; i4 < objArr.length; i4++) {
                sb.append(", ");
                sb.append(objArr[i4]);
            }
            sb.append(']');
        }
        return sb.toString();
    }

    public static int lLlii(int i) {
        if (i == 0) {
            return 1;
        }
        if (i == 1) {
            return 2;
        }
        if (i == 2) {
            return 3;
        }
        if (i != 3) {
            return i != 4 ? 0 : 5;
        }
        return 4;
    }

    public static final boolean llLii() {
        throw new UnsupportedOperationException("Method not decompiled: lliliI.LLiIl.llLii():boolean");
    }
}