导航菜单

页面标题

页面副标题

MX Player v1.97.8 - AFe1gSDK.java 源代码

正在查看: MX Player v1.97.8 应用的 AFe1gSDK.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.jvm.JvmName;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
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\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0005\u0018\u0000 \u00162\u00020\u0001:\u0001\u0016B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007R\u0014\u0010\n\u001a\u00020\u00028\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\b\u0010\tR\u0014\u0010\r\u001a\u00020\u00048\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u0015\u0010\u000b\u001a\u00020\u000e8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\r\u0010\u000fR\u0015\u0010\u0010\u001a\u00020\u000e8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\n\u0010\u000fR\u0011\u0010\u0012\u001a\u00020\u00118G¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013R\u0011\u0010\u0015\u001a\u00020\u000e8G¢\u0006\u0006\u001a\u0004\b\b\u0010\u0014R\u0011\u0010\b\u001a\u00020\u000e8G¢\u0006\u0006\u001a\u0004\b\u000b\u0010\u0014"}, d2 = {"Lcom/appsflyer/internal/AFe1gSDK;", "", "Lcom/appsflyer/internal/AFd1rSDK;", "p0", "Lcom/appsflyer/internal/AFd1pSDK;", "p1", "<init>", "(Lcom/appsflyer/internal/AFd1rSDK;Lcom/appsflyer/internal/AFd1pSDK;)V", "getMonetizationNetwork", "Lcom/appsflyer/internal/AFd1rSDK;", "AFAdRevenueData", "getCurrencyIso4217Code", "Lcom/appsflyer/internal/AFd1pSDK;", "areAllFieldsValid", "", "Lw7a;", "getRevenue", "", "getMediationNetwork", "()Z", "()Ljava/lang/String;", "component2", "AFa1tSDK"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class AFe1gSDK {
    private static AFe1jSDK component4;

    @NotNull
    private final AFd1pSDK areAllFieldsValid;

    @NotNull
    private final AFd1rSDK AFAdRevenueData;

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

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

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

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

    @NotNull
    private final w7a getCurrencyIso4217Code = o9a.b(new AnonymousClass2());

    @NotNull
    public final w7a getRevenue = o9a.b(new AnonymousClass4());

    @Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\u000b¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "getCurrencyIso4217Code", "()Ljava/lang/String;"}, k = 3, mv = {1, 8, 0}, xi = 48)
    public static final class AnonymousClass2 extends a3a implements Function0<String> {
        public AnonymousClass2() {
            super(0);
        }

        @NotNull
        public final String invoke() {
            String str = (String) AFb1rSDK.getRevenue(new Object[]{AFe1gSDK.this.areAllFieldsValid, AFe1gSDK.this.AFAdRevenueData.areAllFieldsValid()}, 983289703, -983289699, (int) System.currentTimeMillis());
            if (str != null && !StringsKt.I(str)) {
                String obj = StringsKt.Z(str).toString();
                if (Companion.AFAdRevenueData().contains(obj.toLowerCase(Locale.getDefault()))) {
                    AFLogger.afWarnLog(String.format("AF detected using redundant Google-Play channel for attribution - %s. Using without channel postfix.", Arrays.copyOf(new Object[]{obj}, 1)));
                    str = "";
                } else {
                    str = "-".concat(obj);
                }
            }
            return StringsKt.Z(str != null ? str : "").toString();
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\u000b¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "AFAdRevenueData", "()Ljava/lang/String;"}, k = 3, mv = {1, 8, 0}, xi = 48)
    public static final class AnonymousClass4 extends a3a implements Function0<String> {
        public AnonymousClass4() {
            super(0);
        }

        @NotNull
        public final String invoke() {
            return AFe1gSDK.getCurrencyIso4217Code(AFe1gSDK.this.AFAdRevenueData.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName(), AFe1gSDK.getRevenue(AFe1gSDK.this));
        }
    }

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R \u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00050\u00048\u0007X\u0087\u0004¢\u0006\f\n\u0004\b\u0006\u0010\u0007\u001a\u0004\b\b\u0010\tR\u0016\u0010\u000b\u001a\u00020\u00058\u0006@\u0006X\u0087\f¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u0016\u0010\b\u001a\u00020\u00058\u0006@\u0006X\u0087\f¢\u0006\u0006\n\u0004\b\n\u0010\fR\u001e\u0010\u0011\u001a\u0004\u0018\u00010\r8\u0006@\u0007X\u0087\u000e¢\u0006\f\n\u0004\b\u000e\u0010\u000f\"\u0004\b\b\u0010\u0010"}, d2 = {"Lcom/appsflyer/internal/AFe1gSDK$AFa1tSDK;", "", "<init>", "()V", "", "", "component2", "Ljava/util/List;", "AFAdRevenueData", "()Ljava/util/List;", "getRevenue", "getMediationNetwork", "Ljava/lang/String;", "Lcom/appsflyer/internal/AFe1jSDK;", "component4", "Lcom/appsflyer/internal/AFe1jSDK;", "(Lcom/appsflyer/internal/AFe1jSDK;)V", "getMonetizationNetwork"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class Companion {
        private Companion() {
        }

        @JvmName(name = "AFAdRevenueData")
        @NotNull
        public static List<String> AFAdRevenueData() {
            return AFe1gSDK.component2;
        }

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

        @JvmName(name = "AFAdRevenueData")
        public static void AFAdRevenueData(AFe1jSDK aFe1jSDK) {
            AFe1gSDK.component4 = aFe1jSDK;
        }
    }

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

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

    public AFe1gSDK(@NotNull AFd1rSDK aFd1rSDK, @NotNull AFd1pSDK aFd1pSDK) {
        this.AFAdRevenueData = aFd1rSDK;
        this.areAllFieldsValid = aFd1pSDK;
    }

    public static final String getCurrencyIso4217Code(String str, String str2) {
        return rg2.d(new Regex("[^\\w]+").replace(Base64.encodeToString(MessageDigest.getInstance("SHA-256").digest(rg2.d(str, str2).getBytes(Charsets.UTF_8)), 2).toLowerCase(Locale.ROOT), "").substring(0, 6), "-");
    }

    @JvmName(name = "getMediationNetwork")
    public static boolean getMediationNetwork() {
        return component4 == null;
    }

    public static final String getRevenue(AFe1gSDK aFe1gSDK) {
        return (String) aFe1gSDK.getCurrencyIso4217Code.getValue();
    }

    public static final void getRevenue(AFe1jSDK aFe1jSDK) {
        Companion.AFAdRevenueData(aFe1jSDK);
    }

    @JvmName(name = "getMonetizationNetwork")
    @NotNull
    public final String getMonetizationNetwork() {
        int i = AFa1vSDK.getRevenue[(getMediationNetwork() ? AFe1cSDK.DEFAULT : AFe1cSDK.API).ordinal()];
        if (i == 1) {
            return (String) this.getRevenue.getValue();
        }
        if (i != 2) {
            if (i == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFe1jSDK aFe1jSDK = component4;
        String str = aFe1jSDK != null ? aFe1jSDK.getMonetizationNetwork : null;
        return str == null ? "" : str;
    }

    @JvmName(name = "getCurrencyIso4217Code")
    @NotNull
    public final String getCurrencyIso4217Code() {
        AFe1cSDK aFe1cSDK;
        if (getMediationNetwork()) {
            aFe1cSDK = AFe1cSDK.DEFAULT;
        } else {
            aFe1cSDK = AFe1cSDK.API;
        }
        int i = AFa1vSDK.getRevenue[aFe1cSDK.ordinal()];
        if (i == 1) {
            return "appsflyersdk.com";
        }
        if (i != 2) {
            if (i == 3) {
                return "";
            }
            throw new NoWhenBranchMatchedException();
        }
        AFe1jSDK aFe1jSDK = component4;
        String str = aFe1jSDK != null ? aFe1jSDK.getCurrencyIso4217Code : null;
        return str == null ? "" : str;
    }
}