OPPGAME v3.0版本的 MD5 值为:1ceb0a1abb48ac61fa374f3f5276c4ff

以下内容为反编译后的 AFe1gSDK.java 源代码,内容仅作参考


package com.appsflyer.internal;

import android.util.Base64;
import com.appsflyer.AFLogger;
import com.appsflyer.R;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt__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__StringsJVMKt;
import kotlin.text.StringsKt__StringsKt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\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\t\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\b\u001a\u00020\u00028G¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0014\u0010\n\u001a\u00020\t8\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u000bR\u0011\u0010\u000e\u001a\u00020\f8G¢\u0006\u0006\u001a\u0004\b\n\u0010\rR\u0014\u0010\u0011\u001a\u00020\u000f8\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u000e\u0010\u0010R\u0011\u0010\u0012\u001a\u00020\u00028G¢\u0006\u0006\u001a\u0004\b\b\u0010\u0007"}, d2 = {"Lcom/appsflyer/internal/AFe1gSDK;", "", "", "registerClient", "Lkotlin/Lazy;", "AFKeystoreWrapper", "AFInAppEventParameterName", "()Ljava/lang/String;", "AFInAppEventType", "Lcom/appsflyer/internal/AFd1sSDK;", "valueOf", "Lcom/appsflyer/internal/AFd1sSDK;", "", "()Z", "values", "Lcom/appsflyer/internal/AFd1qSDK;", "Lcom/appsflyer/internal/AFd1qSDK;", "e", "unregisterClient", "p0", "p1", "<init>", "(Lcom/appsflyer/internal/AFd1sSDK;Lcom/appsflyer/internal/AFd1qSDK;)V", "AFa1zSDK"}, k = 1, mv = {1, 6, 0}, xi = R.styleable.AppCompatTheme_checkboxStyle)
public final class AFe1gSDK {

    @Nullable
    private static AFe1kSDK e;

    @NotNull
    public final Lazy AFInAppEventParameterName;

    @NotNull
    private final Lazy AFKeystoreWrapper;

    @NotNull
    private final AFd1sSDK valueOf;

    @NotNull
    private final AFd1qSDK e;

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

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

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

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

    public class AFa1ySDK {
        public static final int[] AFInAppEventType;

        static {
            AFe1eSDK.values();
            AFe1eSDK aFe1eSDK = AFe1eSDK.DEFAULT;
            AFe1eSDK aFe1eSDK2 = AFe1eSDK.API;
            AFe1eSDK aFe1eSDK3 = AFe1eSDK.RC;
            AFInAppEventType = new int[]{2, 3, 1};
        }
    }

    @Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0010\u0010\u0011R \u0010\u0006\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\b\u001a\u00020\u0003X\u0087\u0002¢\u0006\u0006\n\u0004\b\b\u0010\tR\u0012\u0010\n\u001a\u00020\u0003X\u0087\u0002¢\u0006\u0006\n\u0004\b\u0006\u0010\tR\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u000b@\u0007X\u0087\n¢\u0006\f\n\u0004\b\f\u0010\r\"\u0004\b\u0006\u0010\u000e"}, d2 = {"Lcom/appsflyer/internal/AFe1gSDK$AFa1zSDK;", "", "", "", "d", "Ljava/util/List;", "AFInAppEventParameterName", "()Ljava/util/List;", "AFInAppEventType", "Ljava/lang/String;", "valueOf", "Lcom/appsflyer/internal/AFe1kSDK;", "e", "Lcom/appsflyer/internal/AFe1kSDK;", "(Lcom/appsflyer/internal/AFe1kSDK;)V", "values", "<init>", "()V"}, k = 1, mv = {1, 6, 0}, xi = R.styleable.AppCompatTheme_checkboxStyle)
    public static final class Companion {
        private Companion() {
        }

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

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

        @JvmName(name = "AFInAppEventParameterName")
        public static void AFInAppEventParameterName(@Nullable AFe1kSDK aFe1kSDK) {
            AFe1gSDK.e = aFe1kSDK;
        }
    }

    public AFe1gSDK(@NotNull AFd1sSDK aFd1sSDK, @NotNull AFd1qSDK aFd1qSDK) {
        Intrinsics.checkNotNullParameter(aFd1sSDK, "");
        Intrinsics.checkNotNullParameter(aFd1qSDK, "");
        this.valueOf = aFd1sSDK;
        this.e = aFd1qSDK;
        this.AFKeystoreWrapper = LazyKt__LazyJVMKt.lazy(new Function0<String>() {
            {
                super(0);
            }

            @Override
            @NotNull
            public final String invoke() {
                String AFKeystoreWrapper = AFb1vSDK.AFKeystoreWrapper(AFe1gSDK.this.e, AFe1gSDK.this.valueOf.d());
                if (!(AFKeystoreWrapper == null || StringsKt__StringsJVMKt.isBlank(AFKeystoreWrapper))) {
                    String obj = StringsKt__StringsKt.trim((CharSequence) AFKeystoreWrapper).toString();
                    Companion companion = AFe1gSDK.INSTANCE;
                    List<String> AFInAppEventParameterName2 = Companion.AFInAppEventParameterName();
                    Locale locale = Locale.getDefault();
                    Intrinsics.checkNotNullExpressionValue(locale, "");
                    String lowerCase = obj.toLowerCase(locale);
                    Intrinsics.checkNotNullExpressionValue(lowerCase, "");
                    if (AFInAppEventParameterName2.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);
                        AFKeystoreWrapper = "";
                    } else {
                        AFKeystoreWrapper = "-".concat(obj);
                    }
                }
                return StringsKt__StringsKt.trim((CharSequence) (AFKeystoreWrapper != null ? AFKeystoreWrapper : "")).toString();
            }
        });
        this.AFInAppEventParameterName = LazyKt__LazyJVMKt.lazy(new Function0<String>() {
            {
                super(0);
            }

            @Override
            @NotNull
            public final String invoke() {
                String packageName = AFe1gSDK.this.valueOf.valueOf.AFKeystoreWrapper.getPackageName();
                Intrinsics.checkNotNullExpressionValue(packageName, "");
                return AFe1gSDK.valueOf(packageName, AFe1gSDK.AFKeystoreWrapper(AFe1gSDK.this));
            }
        });
    }

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

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

    public static final void valueOf(@Nullable AFe1kSDK aFe1kSDK) {
        Companion.AFInAppEventParameterName(aFe1kSDK);
    }

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

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

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