导航菜单

页面标题

页面副标题

CashVia v1.6.02 - AFe1bSDK.java 源代码

正在查看: CashVia v1.6.02 应用的 AFe1bSDK.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.Lazy;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.text.Charsets;
import kotlin.text.Regex;
import kotlin.text.StringsKt;
import org.jetbrains.annotations.NotNull;

@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\u0018\u0000 \u00172\u00020\u0001:\u0001\u0017B\u0017\u0012\u0006\u0010\u0013\u001a\u00020\n\u0012\u0006\u0010\u0014\u001a\u00020\u000f¢\u0006\u0004\b\u0015\u0010\u0016R\u0013\u0010\u0005\u001a\u00020\u0002X\u0083\u0080\u0002¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0013\u0010\u0006\u001a\u00020\u0002X\u0083\u0080\u0002¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0011\u0010\t\u001a\u00020\u00028G¢\u0006\u0006\u001a\u0004\b\u0007\u0010\bR\u0014\u0010\u0007\u001a\u00020\n8\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u000bR\u0011\u0010\r\u001a\u00020\f8G¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u0011\u001a\u00020\u000f8\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\r\u0010\u0010R\u0011\u0010\u0012\u001a\u00020\u00028G¢\u0006\u0006\u001a\u0004\b\t\u0010\b"}, d2 = {"Lcom/appsflyer/internal/AFe1bSDK;", "", "", "unregisterClient", "Lkotlin/Lazy;", "values", "AFInAppEventParameterName", "AFInAppEventType", "()Ljava/lang/String;", "AFKeystoreWrapper", "Lcom/appsflyer/internal/AFd1sSDK;", "Lcom/appsflyer/internal/AFd1sSDK;", "", "valueOf", "()Z", "Lcom/appsflyer/internal/AFd1pSDK;", "Lcom/appsflyer/internal/AFd1pSDK;", "d", "AFLogger", "p0", "p1", "<init>", "(Lcom/appsflyer/internal/AFd1sSDK;Lcom/appsflyer/internal/AFd1pSDK;)V", "AFa1ySDK"}, k = 1, mv = {1, 6, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_CONSTRAINT_VERTICAL_CHAINSTYLE)
public final class AFe1bSDK {

    private static AFe1kSDK f1766e;

    @NotNull
    private final AFd1sSDK AFInAppEventType;

    @NotNull
    private final Lazy values;

    @NotNull
    private final AFd1pSDK d;

    @NotNull
    public final Lazy AFInAppEventParameterName;

    @NotNull
    public static final Companion INSTANCE = new Companion(null);

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

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

    @NotNull
    private static final List<String> registerClient = CollectionsKt.listOf(new String[]{"googleplay", "playstore", "googleplaystore"});

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

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

    @Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0011\u0010\u0012R \u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0007X\u0087\u0004¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R\u0012\u0010\u0006\u001a\u00020\u0003X\u0087\u0002¢\u0006\u0006\n\u0004\b\t\u0010\nR\u0012\u0010\t\u001a\u00020\u0003X\u0087\u0002¢\u0006\u0006\n\u0004\b\u000b\u0010\nR\u001c\u0010\u0010\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/AFe1bSDK$AFa1ySDK;", "", "", "", "registerClient", "Ljava/util/List;", "values", "()Ljava/util/List;", "AFKeystoreWrapper", "AFInAppEventParameterName", "Ljava/lang/String;", "AFInAppEventType", "Lcom/appsflyer/internal/AFe1kSDK;", "e", "Lcom/appsflyer/internal/AFe1kSDK;", "(Lcom/appsflyer/internal/AFe1kSDK;)V", "valueOf", "<init>", "()V"}, k = 1, mv = {1, 6, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_CONSTRAINT_VERTICAL_CHAINSTYLE)
    public static final class Companion {
        private Companion() {
        }

        @JvmName(name = "AFInAppEventType")
        public static void AFInAppEventType(AFe1kSDK aFe1kSDK) {
            AFe1bSDK.f1766e = aFe1kSDK;
        }

        @JvmName(name = "values")
        @NotNull
        public static List<String> values() {
            return AFe1bSDK.registerClient;
        }

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

    public AFe1bSDK(@NotNull AFd1sSDK aFd1sSDK, @NotNull AFd1pSDK aFd1pSDK) {
        Intrinsics.checkNotNullParameter(aFd1sSDK, "");
        Intrinsics.checkNotNullParameter(aFd1pSDK, "");
        this.AFInAppEventType = aFd1sSDK;
        this.d = aFd1pSDK;
        this.values = LazyKt.lazy(new Function0<String>() {
            {
                super(0);
            }

            @NotNull
            public final String invoke() {
                String AFInAppEventType2 = AFb1rSDK.AFInAppEventType(AFe1bSDK.this.d, AFe1bSDK.this.AFInAppEventType.AFLogger());
                if (AFInAppEventType2 != null && !StringsKt.isBlank(AFInAppEventType2)) {
                    String obj = StringsKt.trim(AFInAppEventType2).toString();
                    List<String> values = Companion.values();
                    Locale locale = Locale.getDefault();
                    Intrinsics.checkNotNullExpressionValue(locale, "");
                    String lowerCase = obj.toLowerCase(locale);
                    Intrinsics.checkNotNullExpressionValue(lowerCase, "");
                    if (values.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);
                        AFInAppEventType2 = "";
                    } else {
                        AFInAppEventType2 = "-".concat(obj);
                    }
                }
                return StringsKt.trim(AFInAppEventType2 != null ? AFInAppEventType2 : "").toString();
            }
        });
        this.AFInAppEventParameterName = LazyKt.lazy(new Function0<String>() {
            {
                super(0);
            }

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

    public static final String AFInAppEventParameterName(AFe1bSDK aFe1bSDK) {
        return (String) aFe1bSDK.values.getValue();
    }

    public static final void valueOf(AFe1kSDK aFe1kSDK) {
        Companion.AFInAppEventType(aFe1kSDK);
    }

    public static final String values(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();
    }

    @JvmName(name = "AFInAppEventType")
    @NotNull
    public final String AFInAppEventType() {
        int i2 = AFa1tSDK.valueOf[(valueOf() ? AFe1cSDK.DEFAULT : AFe1cSDK.API).ordinal()];
        if (i2 == 1) {
            return "appsflyersdk.com";
        }
        if (i2 != 2) {
            if (i2 == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFe1kSDK aFe1kSDK = f1766e;
        String str = aFe1kSDK != null ? aFe1kSDK.values : null;
        return str == null ? "" : str;
    }

    @JvmName(name = "AFKeystoreWrapper")
    @NotNull
    public final String AFKeystoreWrapper() {
        int i2 = AFa1tSDK.valueOf[(valueOf() ? AFe1cSDK.DEFAULT : AFe1cSDK.API).ordinal()];
        if (i2 == 1) {
            return (String) this.AFInAppEventParameterName.getValue();
        }
        if (i2 != 2) {
            if (i2 == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFe1kSDK aFe1kSDK = f1766e;
        String str = aFe1kSDK != null ? aFe1kSDK.AFInAppEventType : null;
        return str == null ? "" : str;
    }

    @JvmName(name = "valueOf")
    public static boolean valueOf() {
        return f1766e == null;
    }
}