导航菜单

页面标题

页面副标题

Kickcash v16.1 - AFc1cSDK.java 源代码

正在查看: Kickcash v16.1 应用的 AFc1cSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.util.Base64;
import com.appsflyer.AFLogger;
import com.microsoft.clarity.gr.i;
import com.microsoft.clarity.gr.j;
import com.microsoft.clarity.hr.k;
import com.microsoft.clarity.ur.m;
import com.microsoft.clarity.ur.x;
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.text.Regex;
import org.jetbrains.annotations.NotNull;

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 = k.m(new String[]{"googleplay", "playstore", "googleplaystore"});

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

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

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

        @NotNull
        public final String invoke() {
            String values = AFa1dSDK.values(AFc1cSDK.this.AFInAppEventType, AFc1cSDK.this.AFInAppEventParameterName.AFKeystoreWrapper());
            if (!(values == null || kotlin.text.d.r(values))) {
                String obj = kotlin.text.d.M0(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)) {
                    x xVar = x.a;
                    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 = "";
                } else {
                    values = "-".concat(obj);
                }
            }
            return kotlin.text.d.M0(values != null ? values : "").toString();
        }
    }

    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() {
        }

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

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

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

    public AFc1cSDK(@NotNull AFb1cSDK aFb1cSDK, @NotNull AFb1fSDK aFb1fSDK) {
        Intrinsics.checkNotNullParameter(aFb1cSDK, "");
        Intrinsics.checkNotNullParameter(aFb1fSDK, "");
        this.AFInAppEventParameterName = aFb1cSDK;
        this.AFInAppEventType = aFb1fSDK;
        this.afErrorLog = j.a(new AnonymousClass2());
        this.values = j.a(new AnonymousClass1());
    }

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

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

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

    @NotNull
    public final String valueOf() {
        int i = AFa1vSDK.AFKeystoreWrapper[(AFInAppEventParameterName() ? AFc1aSDK.DEFAULT : AFc1aSDK.API).ordinal()];
        if (i == 1) {
            return (String) this.values.getValue();
        }
        if (i != 2) {
            if (i == 3) {
                return "";
            }
            throw new com.microsoft.clarity.gr.m();
        }
        AFc1dSDK aFc1dSDK = afRDLog;
        String str = aFc1dSDK != null ? aFc1dSDK.AFInAppEventParameterName : null;
        return str == null ? "" : str;
    }

    public static final String AFInAppEventParameterName(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(com.microsoft.clarity.cs.a.b);
        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(AFc1cSDK aFc1cSDK) {
        return (String) aFc1cSDK.afErrorLog.getValue();
    }
}