导航菜单

页面标题

页面副标题

Online Loans v421.2.42 - AFe1ySDK.java 源代码

正在查看: Online Loans v421.2.42 应用的 AFe1ySDK.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.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Charsets;
import kotlin.text.Regex;
import kotlin.text.StringsKt;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class AFe1ySDK {
    private static AFd1bSDK component1;

    @NotNull
    private final AFc1sSDK AFAdRevenueData;

    @NotNull
    private final f6.f component4;

    @NotNull
    public final f6.f getCurrencyIso4217Code;

    @NotNull
    private final AFc1kSDK getMediationNetwork;

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

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

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

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

    @Metadata
    public static final class AnonymousClass4 extends s6.k implements Function0<String> {
        public AnonymousClass4() {
            super(0);
        }

        @NotNull
        public final String invoke() {
            String packageName = AFe1ySDK.this.getMediationNetwork.AFAdRevenueData.getMonetizationNetwork.getPackageName();
            Intrinsics.checkNotNullExpressionValue(packageName, "");
            return AFe1ySDK.getMediationNetwork(packageName, AFe1ySDK.getRevenue(AFe1ySDK.this));
        }
    }

    @Metadata
    public static final class AnonymousClass5 extends s6.k implements Function0<String> {
        public AnonymousClass5() {
            super(0);
        }

        @NotNull
        public final String invoke() {
            String AFAdRevenueData = com.appsflyer.internal.AFa1zSDK.AFAdRevenueData(AFe1ySDK.this.AFAdRevenueData, AFe1ySDK.this.getMediationNetwork.component1());
            if (AFAdRevenueData != null && !StringsKt.s(AFAdRevenueData)) {
                String obj = StringsKt.H0(AFAdRevenueData).toString();
                List<String> currencyIso4217Code = AFa1vSDK.getCurrencyIso4217Code();
                Locale locale = Locale.getDefault();
                Intrinsics.checkNotNullExpressionValue(locale, "");
                String lowerCase = obj.toLowerCase(locale);
                Intrinsics.checkNotNullExpressionValue(lowerCase, "");
                if (currencyIso4217Code.contains(lowerCase)) {
                    s6.y yVar = s6.y.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);
                    AFAdRevenueData = "";
                } else {
                    AFAdRevenueData = "-" + obj;
                }
            }
            return StringsKt.H0(AFAdRevenueData != null ? AFAdRevenueData : "").toString();
        }
    }

    @Metadata
    public static final class AFa1vSDK {
        private AFa1vSDK() {
        }

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

        @NotNull
        public static List<String> getCurrencyIso4217Code() {
            return AFe1ySDK.component2;
        }

        public static void getCurrencyIso4217Code(AFd1bSDK aFd1bSDK) {
            AFe1ySDK.component1 = aFd1bSDK;
        }
    }

    public class AFa1zSDK {
        public static final int[] getMediationNetwork;

        static {
            int[] iArr = new int[AFe1wSDK.values().length];
            try {
                iArr[AFe1wSDK.DEFAULT.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[AFe1wSDK.API.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[AFe1wSDK.RC.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            getMediationNetwork = iArr;
        }
    }

    public AFe1ySDK(@NotNull AFc1kSDK aFc1kSDK, @NotNull AFc1sSDK aFc1sSDK) {
        Intrinsics.checkNotNullParameter(aFc1kSDK, "");
        Intrinsics.checkNotNullParameter(aFc1sSDK, "");
        this.getMediationNetwork = aFc1kSDK;
        this.AFAdRevenueData = aFc1sSDK;
        this.component4 = f6.g.a(new AnonymousClass5());
        this.getCurrencyIso4217Code = f6.g.a(new AnonymousClass4());
    }

    @NotNull
    public final String getCurrencyIso4217Code() {
        int i6 = AFa1zSDK.getMediationNetwork[(getRevenue() ? AFe1wSDK.DEFAULT : AFe1wSDK.API).ordinal()];
        if (i6 == 1) {
            return (String) this.getCurrencyIso4217Code.getValue();
        }
        if (i6 != 2) {
            if (i6 == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFd1bSDK aFd1bSDK = component1;
        String str = aFd1bSDK != null ? aFd1bSDK.getCurrencyIso4217Code : null;
        return str == null ? "" : str;
    }

    public static boolean getRevenue() {
        return component1 == null;
    }

    @NotNull
    public final String AFAdRevenueData() {
        int i6 = AFa1zSDK.getMediationNetwork[(getRevenue() ? AFe1wSDK.DEFAULT : AFe1wSDK.API).ordinal()];
        if (i6 == 1) {
            return "appsflyersdk.com";
        }
        if (i6 != 2) {
            if (i6 == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFd1bSDK aFd1bSDK = component1;
        String str = aFd1bSDK != null ? aFd1bSDK.getRevenue : null;
        return str == null ? "" : str;
    }

    public static final String getMediationNetwork(String str, String str2) {
        String str3 = str + str2;
        Intrinsics.checkNotNullParameter(str3, "");
        MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
        byte[] bytes = str3.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, "");
        return substring + "-";
    }

    public static final String getRevenue(AFe1ySDK aFe1ySDK) {
        return (String) aFe1ySDK.component4.getValue();
    }

    public static final void getMediationNetwork(AFd1bSDK aFd1bSDK) {
        AFa1vSDK.getCurrencyIso4217Code(aFd1bSDK);
    }
}