导航菜单

页面标题

页面副标题

EfectivoYa v2.3 - AFc1cSDK.java 源代码

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

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


package com.appsflyer.internal;

import android.util.Base64;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.appsflyer.AFLogger;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\t\b\u0016\u0018\u0000 \u00162\u00020\u0001:\u0001\u0016B\u0017\u0012\u0006\u0010\u0012\u001a\u00020\u0002\u0012\u0006\u0010\u0013\u001a\u00020\u0006¢\u0006\u0004\b\u0014\u0010\u0015R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\t\u001a\u00020\u00068\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\bR\u0013\u0010\u0007\u001a\u00020\nX\u0083\u0080\u0002¢\u0006\u0006\n\u0004\b\t\u0010\u000bR\u0013\u0010\u0003\u001a\u00020\nX\u0083\u0080\u0002¢\u0006\u0006\n\u0004\b\f\u0010\u000bR\u0014\u0010\u000f\u001a\u00020\r8CX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u000eR\u0011\u0010\u0011\u001a\u00020\n8G¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\f\u001a\u00020\n8G¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u0010"}, d2 = {"Lcom/appsflyer/internal/AFc1cSDK;", "", "Lcom/appsflyer/internal/AFb1cSDK;", "AFInAppEventParameterName", "Lcom/appsflyer/internal/AFb1cSDK;", "AFKeystoreWrapper", "Lcom/appsflyer/internal/AFb1fSDK;", "AFInAppEventType", "Lcom/appsflyer/internal/AFb1fSDK;", "afErrorLog", "", "Ln2/f;", "values", "", "()Z", "valueOf", "()Ljava/lang/String;", "afInfoLog", "p0", "p1", "<init>", "(Lcom/appsflyer/internal/AFb1cSDK;Lcom/appsflyer/internal/AFb1fSDK;)V", "AFa1ySDK"}, k = 1, mv = {1, 6, 0})
public class AFc1cSDK {

    @Nullable
    private static AFc1dSDK afRDLog;

    @NotNull
    private final AFb1cSDK AFKeystoreWrapper;

    @NotNull
    private final AFb1fSDK afErrorLog;

    @NotNull
    private final n2.f AFInAppEventType;

    @NotNull
    public final n2.f AFInAppEventParameterName;

    @NotNull
    public static final Companion INSTANCE = new Companion(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 = kotlin.collections.n.l(new String[]{"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;
        }
    }

    @Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0000\b\u0086\u0003\u0018\u00002\u00020\u0012B\t\b\u0002¢\u0006\u0004\b\u0010\u0010\u0011R \u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00020\u00018\u0007X\u0087\u0004¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006R\u0012\u0010\t\u001a\u00020\u0002X\u0087\u0002¢\u0006\u0006\n\u0004\b\u0007\u0010\bR\u0012\u0010\u000b\u001a\u00020\u0002X\u0087\u0002¢\u0006\u0006\n\u0004\b\n\u0010\bR\u001c\u0010\u0007\u001a\u0004\u0018\u00010\f@\u0007X\u0087\n¢\u0006\f\n\u0004\b\r\u0010\u000e\"\u0004\b\u000b\u0010\u000f"}, d2 = {"Lcom/appsflyer/internal/AFc1cSDK$AFa1ySDK;", "", "", "afInfoLog", "Ljava/util/List;", "AFInAppEventType", "()Ljava/util/List;", "AFKeystoreWrapper", "Ljava/lang/String;", "AFInAppEventParameterName", "valueOf", "values", "Lcom/appsflyer/internal/AFc1dSDK;", "afRDLog", "Lcom/appsflyer/internal/AFc1dSDK;", "(Lcom/appsflyer/internal/AFc1dSDK;)V", "<init>", "()V", ""}, k = 1, mv = {1, 6, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_CONSTRAINT_VERTICAL_CHAINSTYLE)
    public static final class Companion {
        private Companion() {
        }

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

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

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

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

            @NotNull
            public final String invoke() {
                String values = AFa1dSDK.values(AFc1cSDK.this.afErrorLog, AFc1cSDK.this.AFKeystoreWrapper.AFKeystoreWrapper());
                if (!(values == null || kotlin.text.g.r(values))) {
                    String obj = kotlin.text.g.H0(values).toString();
                    List<String> AFInAppEventType = Companion.AFInAppEventType();
                    Locale locale = Locale.getDefault();
                    Intrinsics.checkNotNullExpressionValue(locale, "");
                    String lowerCase = obj.toLowerCase(locale);
                    Intrinsics.checkNotNullExpressionValue(lowerCase, "");
                    if (AFInAppEventType.contains(lowerCase)) {
                        kotlin.jvm.internal.o oVar = kotlin.jvm.internal.o.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.g.H0(values != null ? values : "").toString();
            }
        });
        this.AFInAppEventParameterName = kotlin.a.b(new Function0<String>() {
            {
                super(0);
            }

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

    public static final void AFInAppEventType(@Nullable AFc1dSDK aFc1dSDK) {
        Companion.values(aFc1dSDK);
    }

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

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

    @NotNull
    public final String valueOf() {
        int i2 = AFa1vSDK.AFKeystoreWrapper[(AFInAppEventParameterName() ? AFc1aSDK.DEFAULT : AFc1aSDK.API).ordinal()];
        if (i2 == 1) {
            return (String) this.AFInAppEventParameterName.getValue();
        }
        if (i2 != 2) {
            if (i2 == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        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(kotlin.text.b.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.AFInAppEventType.getValue();
    }
}