导航菜单

页面标题

页面副标题

Kaspi.kz v5.85.1 - AFe1jSDK.java 源代码

正在查看: Kaspi.kz v5.85.1 应用的 AFe1jSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.util.Base64;
import com.appsflyer.AFLogger;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Charsets;
import kotlin.text.Regex;
import o.DescriptorUtilsKt;
import o.ProtoContainerClass;
import o.allTypeAliases_delegatelambda2;
import o.getResolutionAnchor;
import o.getResolutionAnchorIfAny;
import o.typeAliasDescriptorslambda1;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class AFe1jSDK {
    private static AFe1gSDK AFLogger;
    private final AFd1xSDK AFInAppEventType;
    private final getResolutionAnchorIfAny registerClient;
    public final getResolutionAnchorIfAny valueOf;
    private final AFd1rSDK values;
    public static final AFa1zSDK AFa1zSDK = new AFa1zSDK(null);
    public static String AFKeystoreWrapper = "https://%scdn-%ssettings.%s/android/v1/%s/settings";
    public static String AFInAppEventParameterName = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";
    private static final List<String> unregisterClient = DescriptorUtilsKt.setError(new String[]{"googleplay", "playstore", "googleplaystore"});

    public final class AFa1tSDK {
        public static final int[] values;

        static {
            int[] iArr = new int[AFe1iSDK.values().length];
            iArr[AFe1iSDK.DEFAULT.ordinal()] = 1;
            iArr[AFe1iSDK.API.ordinal()] = 2;
            iArr[AFe1iSDK.RC.ordinal()] = 3;
            values = iArr;
        }
    }

    public static final void AFInAppEventParameterName(@Nullable AFe1gSDK aFe1gSDK) {
        AFa1zSDK.AFInAppEventParameterName(aFe1gSDK);
    }

    public AFe1jSDK(@NotNull AFd1rSDK aFd1rSDK, @NotNull AFd1xSDK aFd1xSDK) {
        Intrinsics.checkNotNullParameter(aFd1rSDK, "");
        Intrinsics.checkNotNullParameter(aFd1xSDK, "");
        this.values = aFd1rSDK;
        this.AFInAppEventType = aFd1xSDK;
        this.registerClient = getResolutionAnchor.setFieldValue(new AnonymousClass5());
        this.valueOf = getResolutionAnchor.setFieldValue(new AnonymousClass3());
    }

    public static final class AFa1zSDK {
        public AFa1zSDK(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private AFa1zSDK() {
        }

        public static List<String> AFKeystoreWrapper() {
            return AFe1jSDK.unregisterClient;
        }

        public static void AFInAppEventParameterName(@Nullable AFe1gSDK aFe1gSDK) {
            AFe1jSDK.AFLogger = aFe1gSDK;
        }
    }

    static final class AnonymousClass5 extends ProtoContainerClass implements Function0<String> {
        AnonymousClass5() {
            super(0);
        }

        public final String invoke() {
            String AFInAppEventType = AFb1vSDK.AFInAppEventType(AFe1jSDK.this.AFInAppEventType, AFe1jSDK.this.values.values());
            if (AFInAppEventType != null && !allTypeAliases_delegatelambda2.setError(AFInAppEventType)) {
                String obj = allTypeAliases_delegatelambda2.AudioAttributesImplBaseParcelizer(AFInAppEventType).toString();
                AFa1zSDK aFa1zSDK = AFe1jSDK.AFa1zSDK;
                List<String> AFKeystoreWrapper = AFa1zSDK.AFKeystoreWrapper();
                Locale locale = Locale.getDefault();
                Intrinsics.checkNotNullExpressionValue(locale, "");
                String lowerCase = obj.toLowerCase(locale);
                Intrinsics.checkNotNullExpressionValue(lowerCase, "");
                if (!AFKeystoreWrapper.contains(lowerCase)) {
                    AFInAppEventType = "-".concat(obj);
                } else {
                    typeAliasDescriptorslambda1 typealiasdescriptorslambda1 = typeAliasDescriptorslambda1.setFieldValue;
                    String format = String.format("AF detected using redundant Google-Play channel for attribution - %s. Using without channel postfix.", Arrays.copyOf(new Object[]{obj}, 1));
                    Intrinsics.checkNotNullExpressionValue(format, "");
                    AFLogger.afWarnLog(format);
                    AFInAppEventType = "";
                }
            }
            return allTypeAliases_delegatelambda2.AudioAttributesImplBaseParcelizer(AFInAppEventType != null ? AFInAppEventType : "").toString();
        }
    }

    static final class AnonymousClass3 extends ProtoContainerClass implements Function0<String> {
        AnonymousClass3() {
            super(0);
        }

        public final String invoke() {
            String packageName = AFe1jSDK.this.values.AFKeystoreWrapper.AFInAppEventParameterName.getPackageName();
            Intrinsics.checkNotNullExpressionValue(packageName, "");
            return AFe1jSDK.AFKeystoreWrapper(packageName, AFe1jSDK.AFInAppEventParameterName(AFe1jSDK.this));
        }
    }

    public static boolean values() {
        return AFLogger == null;
    }

    public final String AFInAppEventType() {
        AFe1iSDK aFe1iSDK;
        if (values()) {
            aFe1iSDK = AFe1iSDK.DEFAULT;
        } else {
            aFe1iSDK = AFe1iSDK.API;
        }
        int i = AFa1tSDK.values[aFe1iSDK.ordinal()];
        if (i == 1) {
            return (String) this.valueOf.getValue();
        }
        if (i != 2) {
            if (i == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFe1gSDK aFe1gSDK = AFLogger;
        String str = aFe1gSDK != null ? aFe1gSDK.values : null;
        return str == null ? "" : str;
    }

    public final String valueOf() {
        AFe1iSDK aFe1iSDK;
        if (values()) {
            aFe1iSDK = AFe1iSDK.DEFAULT;
        } else {
            aFe1iSDK = AFe1iSDK.API;
        }
        int i = AFa1tSDK.values[aFe1iSDK.ordinal()];
        if (i == 1) {
            return "appsflyersdk.com";
        }
        if (i != 2) {
            if (i == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFe1gSDK aFe1gSDK = AFLogger;
        String str = aFe1gSDK != null ? aFe1gSDK.AFKeystoreWrapper : null;
        return str == null ? "" : str;
    }

    public static final String AFKeystoreWrapper(String str, String str2) {
        StringBuilder sb = new StringBuilder();
        StringBuilder sb2 = new StringBuilder();
        sb2.append(str);
        sb2.append(str2);
        String obj = sb2.toString();
        Intrinsics.checkNotNullParameter(obj, "");
        MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
        byte[] bytes = obj.getBytes(Charsets.UTF_8);
        Intrinsics.checkNotNullExpressionValue(bytes, "");
        byte[] digest = messageDigest.digest(bytes);
        Intrinsics.checkNotNullExpressionValue(digest, "");
        String encodeToString = Base64.encodeToString(digest, 2);
        Intrinsics.checkNotNullExpressionValue(encodeToString, "");
        String lowerCase = encodeToString.toLowerCase(Locale.ROOT);
        Intrinsics.checkNotNullExpressionValue(lowerCase, "");
        String substring = new Regex("[^\\w]+").replace(lowerCase, "").substring(0, 6);
        Intrinsics.checkNotNullExpressionValue(substring, "");
        sb.append(substring);
        sb.append('-');
        return sb.toString();
    }

    public static final String AFInAppEventParameterName(AFe1jSDK aFe1jSDK) {
        return (String) aFe1jSDK.registerClient.getValue();
    }
}