导航菜单

页面标题

页面副标题

PrestaMax v1.0.9 - AFg1wSDK.java 源代码

正在查看: PrestaMax v1.0.9 应用的 AFg1wSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.net.Uri;
import com.appsflyer.AFLogger;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsKt;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class AFg1wSDK {

    @NotNull
    public static final String AFInAppEventParameterName;

    @NotNull
    public static final String AFKeystoreWrapper;

    @NotNull
    public static final String AFLogger;

    @NotNull
    public static final String AFLogger$LogLevel;

    @NotNull
    public static String AFVersionDeclaration;

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

    @NotNull
    public static final String afDebugLog;

    @NotNull
    public static final String afErrorLog;

    @NotNull
    public static String afErrorLogForExcManagerOnly;

    @NotNull
    public static final String afInfoLog;

    @NotNull
    public static final String afRDLog;

    @NotNull
    public static final String afWarnLog;

    @NotNull
    public static String getLevel;
    public static String init;
    public static String onAppOpenAttribution;
    public static String onAppOpenAttributionNative;
    public static String onAttributionFailure;
    public static String onAttributionFailureNative;
    public static String onConversionDataFail;
    public static String onConversionDataSuccess;

    @NotNull
    private static final String onDeepLinking;
    public static String onDeepLinkingNative;
    public static String onInstallConversionDataLoadedNative;
    public static String onInstallConversionFailureNative;
    public static String onResponseErrorNative;
    public static String onResponseNative;

    @NotNull
    public static final String values;

    @NotNull
    public final AFb1gSDK AFInAppEventType;

    @NotNull
    public final AFg1xSDK valueOf;

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

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

    static {
        StringBuilder sb = new StringBuilder();
        String str = AFa1bSDK.AFInAppEventType;
        sb.append(str);
        sb.append("/androidevent?app_id=");
        String obj = sb.toString();
        onDeepLinking = obj;
        StringBuilder sb2 = new StringBuilder("https://%sattr.%s/api/v");
        sb2.append(obj);
        AFInAppEventParameterName = sb2.toString();
        values = "https://%sadrevenue.%s/api/v2/generic/v6.12.3/android?app_id=";
        AFKeystoreWrapper = "https://%sadrevenue.%s/api/v2/log/AdImpression/v6.12.3/android?app_id=";
        StringBuilder sb3 = new StringBuilder("https://%sconversions.%s/api/v");
        sb3.append(obj);
        afDebugLog = sb3.toString();
        StringBuilder sb4 = new StringBuilder("https://%slaunches.%s/api/v");
        sb4.append(obj);
        AFLogger = sb4.toString();
        StringBuilder sb5 = new StringBuilder("https://%sinapps.%s/api/v");
        sb5.append(obj);
        afErrorLog = sb5.toString();
        afRDLog = "https://%sars.%s/api/v2/android/validate_subscription?app_id=";
        afInfoLog = "https://%sviap.%s/api/v1/android/validate_purchase?app_id=";
        AFLogger$LogLevel = "https://%sars.%s/api/v2/android/validate_subscription_v2?app_id=";
        afWarnLog = "https://%sviap.%s/api/v1/android/validate_purchase_v2?app_id=";
        getLevel = "https://%sdlsdk.%s/v1.0/android/";
        afErrorLogForExcManagerOnly = "https://%ssdk-services.%s/validate-android-signature";
        StringBuilder sb6 = new StringBuilder("https://%svalidate.%s/api/v");
        sb6.append(str);
        sb6.append("/androidevent?buildnumber=6.12.3&app_id=");
        AFVersionDeclaration = sb6.toString();
    }

    public AFg1wSDK(@NotNull AFb1gSDK aFb1gSDK) {
        this(aFb1gSDK, null, 2, 0 == true ? 1 : 0);
        Intrinsics.checkNotNullParameter(aFb1gSDK, "");
    }

    private static Uri.Builder valueOf(Uri.Builder builder, String str, String str2) {
        if (str != null && str2 != null) {
            StringBuilder sb = new StringBuilder();
            sb.append(str2);
            sb.append(str);
            builder.appendQueryParameter("af_sig", AFc1rSDK.AFInAppEventParameterName(sb.toString(), str));
            return builder;
        }
        String str3 = str == null ? "devKey" : "timestamp";
        StringBuilder sb2 = new StringBuilder();
        sb2.append(str3);
        sb2.append(" is null at attempt to generate ddl event url");
        AFLogger.afErrorLog(sb2.toString(), new IllegalStateException());
        return builder;
    }

    public final String AFInAppEventParameterName(String str) {
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        String AFKeystoreWrapper2 = this.AFInAppEventType.AFKeystoreWrapper();
        String concat = AFKeystoreWrapper2 != null ? "&channel=".concat(AFKeystoreWrapper2) : null;
        if (concat == null) {
            concat = "";
        }
        sb.append(concat);
        return sb.toString();
    }

    @NotNull
    public final String AFInAppEventType(String str, String str2) {
        String packageName = this.AFInAppEventType.values.values.getPackageName();
        Intrinsics.checkNotNullExpressionValue(packageName, "");
        String AFKeystoreWrapper2 = this.AFInAppEventType.AFKeystoreWrapper();
        if (!(AFKeystoreWrapper2 == null || kotlin.text.jzzsan.pzetpkg(AFKeystoreWrapper2))) {
            AFKeystoreWrapper2 = "-".concat(String.valueOf(StringsKt__StringsKt.jresql(AFKeystoreWrapper2).toString()));
        }
        if (AFKeystoreWrapper2 == null) {
            AFKeystoreWrapper2 = "";
        }
        String obj = StringsKt__StringsKt.jresql(AFKeystoreWrapper2).toString();
        String str3 = onAppOpenAttribution;
        if (str3 == null) {
            str3 = this.valueOf.AFInAppEventParameterName(getLevel);
        }
        Uri.Builder buildUpon = Uri.parse(str3).buildUpon();
        StringBuilder sb = new StringBuilder();
        sb.append(packageName);
        sb.append(obj);
        Uri.Builder appendPath = buildUpon.appendPath(sb.toString());
        Intrinsics.checkNotNullExpressionValue(appendPath, "");
        String obj2 = valueOf(appendPath, str, str2).appendQueryParameter("sdk_version", AFa1bSDK.AFInAppEventType).build().toString();
        Intrinsics.checkNotNullExpressionValue(obj2, "");
        return obj2;
    }

    private AFg1wSDK(@NotNull AFb1gSDK aFb1gSDK, @NotNull AFg1xSDK aFg1xSDK) {
        Intrinsics.checkNotNullParameter(aFb1gSDK, "");
        Intrinsics.checkNotNullParameter(aFg1xSDK, "");
        this.AFInAppEventType = aFb1gSDK;
        this.valueOf = aFg1xSDK;
    }

    @NotNull
    public final String valueOf(@NotNull AFf1xSDK aFf1xSDK) {
        Intrinsics.checkNotNullParameter(aFf1xSDK, "");
        if (aFf1xSDK instanceof AFf1wSDK) {
            String str = onAttributionFailure;
            return str == null ? this.valueOf.AFInAppEventParameterName(afErrorLogForExcManagerOnly) : str;
        }
        if (aFf1xSDK instanceof AFf1zSDK) {
            String str2 = onConversionDataFail;
            if (str2 == null) {
                str2 = this.valueOf.AFInAppEventParameterName(AFVersionDeclaration);
            }
            StringBuilder sb = new StringBuilder();
            sb.append(str2);
            sb.append(this.AFInAppEventType.values.values.getPackageName());
            return sb.toString();
        }
        throw new UnsupportedOperationException();
    }

    public AFg1wSDK(AFb1gSDK aFb1gSDK, AFg1xSDK aFg1xSDK, int i, DefaultConstructorMarker defaultConstructorMarker) {
        this(aFb1gSDK, (i & 2) != 0 ? new AFf1aSDK() : aFg1xSDK);
    }

    public static String AFInAppEventType(String str, boolean z) {
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        sb.append(!z ? "&buildnumber=6.12.3" : "");
        return sb.toString();
    }
}