导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - AFc1cSDK.java 源代码

正在查看: klikUMKM v2.0.1 应用的 AFc1cSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.util.Base64;
import com.appsflyer.AFLogger;
import com.google.firebase.encoders.json.BuildConfig;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.text.Regex;
import kotlin.text.s;
import org.jetbrains.annotations.NotNull;
import pb.i;
import pb.k;
import pb.n;
import qb.w;

public class AFc1cSDK {
    private static AFc1dSDK afRDLog;

    @NotNull
    private final AFb1cSDK AFInAppEventParameterName;

    @NotNull
    private final AFb1fSDK AFInAppEventType;

    @NotNull
    private final i afErrorLog;

    @NotNull
    public final i values;

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

    @NotNull
    public static String AFKeystoreWrapper = "https://%scdn-%ssettings.%s/android/v1/%s/settings";

    @NotNull
    public static String valueOf = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";

    @NotNull
    private static final List<String> afInfoLog = w.e("googleplay", "playstore", "googleplaystore");

    public class AFa1vSDK {
        public static final int[] AFKeystoreWrapper;

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

    public static final class AFa1ySDK {
        private AFa1ySDK() {
        }

        @NotNull
        public static List<String> AFInAppEventType() {
            return AFc1cSDK.afInfoLog;
        }

        public static void values(AFc1dSDK aFc1dSDK) {
            AFc1cSDK.afRDLog = aFc1dSDK;
        }

        public AFa1ySDK(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }
    }

    public AFc1cSDK(@NotNull AFb1cSDK aFb1cSDK, @NotNull AFb1fSDK aFb1fSDK) {
        Intrinsics.checkNotNullParameter(aFb1cSDK, "");
        Intrinsics.checkNotNullParameter(aFb1fSDK, "");
        this.AFInAppEventParameterName = aFb1cSDK;
        this.AFInAppEventType = aFb1fSDK;
        this.afErrorLog = k.a(new Function0<String>() {
            {
                super(0);
            }

            @Override
            @NotNull
            public final String invoke() {
                String values = AFa1dSDK.values(AFc1cSDK.this.AFInAppEventType, AFc1cSDK.this.AFInAppEventParameterName.AFKeystoreWrapper());
                String str = BuildConfig.FLAVOR;
                if (values != null && !s.v(values)) {
                    String obj = s.E(values).toString();
                    List<String> AFInAppEventType = AFa1ySDK.AFInAppEventType();
                    Locale locale = Locale.getDefault();
                    Intrinsics.checkNotNullExpressionValue(locale, "");
                    String lowerCase = obj.toLowerCase(locale);
                    Intrinsics.checkNotNullExpressionValue(lowerCase, "");
                    if (AFInAppEventType.contains(lowerCase)) {
                        StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
                        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);
                        values = BuildConfig.FLAVOR;
                    } else {
                        values = "-".concat(obj);
                    }
                }
                if (values != null) {
                    str = values;
                }
                return s.E(str).toString();
            }
        });
        this.values = k.a(new Function0<String>() {
            {
                super(0);
            }

            @Override
            @NotNull
            public final String invoke() {
                String packageName = AFc1cSDK.this.AFInAppEventParameterName.values.AFInAppEventParameterName.getPackageName();
                Intrinsics.checkNotNullExpressionValue(packageName, "");
                return AFc1cSDK.AFInAppEventParameterName(packageName, AFc1cSDK.AFInAppEventParameterName(AFc1cSDK.this));
            }
        });
    }

    public static final void AFInAppEventType(AFc1dSDK aFc1dSDK) {
        AFa1ySDK.values(aFc1dSDK);
    }

    public static boolean AFInAppEventParameterName() {
        return afRDLog == null;
    }

    @NotNull
    public final String AFInAppEventType() {
        int i10 = AFa1vSDK.AFKeystoreWrapper[(AFInAppEventParameterName() ? AFc1aSDK.DEFAULT : AFc1aSDK.API).ordinal()];
        if (i10 == 1) {
            return "appsflyersdk.com";
        }
        if (i10 != 2) {
            if (i10 == 3) {
                return BuildConfig.FLAVOR;
            }
            throw new n();
        }
        AFc1dSDK aFc1dSDK = afRDLog;
        String str = aFc1dSDK != null ? aFc1dSDK.values : null;
        return str == null ? BuildConfig.FLAVOR : str;
    }

    @NotNull
    public final String valueOf() {
        int i10 = AFa1vSDK.AFKeystoreWrapper[(AFInAppEventParameterName() ? AFc1aSDK.DEFAULT : AFc1aSDK.API).ordinal()];
        if (i10 == 1) {
            return (String) this.values.getValue();
        }
        if (i10 != 2) {
            if (i10 == 3) {
                return BuildConfig.FLAVOR;
            }
            throw new n();
        }
        AFc1dSDK aFc1dSDK = afRDLog;
        String str = aFc1dSDK != null ? aFc1dSDK.AFInAppEventParameterName : null;
        return str == null ? BuildConfig.FLAVOR : str;
    }

    public static final String AFInAppEventParameterName(String str, String str2) {
        StringBuilder sb2 = new StringBuilder();
        StringBuilder sb3 = new StringBuilder();
        sb3.append(str);
        sb3.append(str2);
        String obj = sb3.toString();
        Intrinsics.checkNotNullParameter(obj, "");
        MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
        byte[] bytes = obj.getBytes(kotlin.text.b.f9672b);
        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, BuildConfig.FLAVOR).substring(0, 6);
        Intrinsics.checkNotNullExpressionValue(substring, "");
        sb2.append(substring);
        sb2.append('-');
        return sb2.toString();
    }

    public static final String AFInAppEventParameterName(AFc1cSDK aFc1cSDK) {
        return (String) aFc1cSDK.afErrorLog.getValue();
    }
}