导航菜单

页面标题

页面副标题

Pulsar v1.0.0 - AFj1kSDK.java 源代码

正在查看: Pulsar v1.0.0 应用的 AFj1kSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.net.Uri;
import androidx.core.app.b2;
import com.appsflyer.AFLogger;
import com.facebook.react.uimanager.events.PointerEventHelper;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;

@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0018\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001:\u00013B\u001b\b\u0007\u0012\u0006\u0010,\u001a\u00020+\u0012\b\b\u0002\u0010/\u001a\u00020.¢\u0006\u0004\b1\u00102J\b\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u0004\u001a\u00020\u0002H\u0002J\b\u0010\u0005\u001a\u00020\u0002H\u0002J\b\u0010\u0006\u001a\u00020\u0002H\u0002J\b\u0010\u0007\u001a\u00020\u0002H\u0002J\b\u0010\b\u001a\u00020\u0002H\u0002J\b\u0010\t\u001a\u00020\u0002H\u0002J\u0010\u0010\f\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\nH\u0002J\b\u0010\r\u001a\u00020\u0002H\u0002J\b\u0010\u000e\u001a\u00020\u0002H\u0002J\b\u0010\u000f\u001a\u00020\u0002H\u0002J\b\u0010\u0010\u001a\u00020\u0002H\u0002J\u0010\u0010\u0012\u001a\u00020\u00022\b\u0010\u0011\u001a\u0004\u0018\u00010\u0002J\u001a\u0010\u0015\u001a\u00020\u00022\b\u0010\u0013\u001a\u0004\u0018\u00010\u00022\b\u0010\u0014\u001a\u0004\u0018\u00010\u0002J\u000e\u0010\u0016\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\nJ\u0006\u0010\u0017\u001a\u00020\u0002J\u0006\u0010\u0018\u001a\u00020\u0002J\u0006\u0010\u0019\u001a\u00020\u0002J\u0006\u0010\u001a\u001a\u00020\u0002J\u0006\u0010\u001b\u001a\u00020\u0002J\u0006\u0010\u001c\u001a\u00020\u0002J\u0006\u0010\u001d\u001a\u00020\u0002J\u0010\u0010\u001e\u001a\u00020\u00022\b\u0010\u0011\u001a\u0004\u0018\u00010\u0002J\b\u0010\u001f\u001a\u00020\u0002H\u0002J\b\u0010 \u001a\u00020\u0002H\u0002J\b\u0010!\u001a\u00020\u0002H\u0002J\b\u0010\"\u001a\u00020\u0002H\u0002J\u0016\u0010%\u001a\u00020\u0002*\u00020\u00022\b\b\u0002\u0010$\u001a\u00020#H\u0002J\u0016\u0010'\u001a\u00020\u0002*\u00020\u00022\b\b\u0002\u0010&\u001a\u00020#H\u0002J\f\u0010(\u001a\u00020\u0002*\u00020\u0002H\u0002J \u0010*\u001a\u00020)*\u00020)2\b\u0010\u0013\u001a\u0004\u0018\u00010\u00022\b\u0010\u0014\u001a\u0004\u0018\u00010\u0002H\u0002R\u0014\u0010,\u001a\u00020+8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b,\u0010-R\u0014\u0010/\u001a\u00020.8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b/\u00100¨\u00064"}, d2 = {"Lcom/appsflyer/internal/util/EventUrlResolver;", PointerEventHelper.POINTER_TYPE_UNKNOWN, PointerEventHelper.POINTER_TYPE_UNKNOWN, "getAdRevenueUrl", "getAppsTrackingUrl", "getArsBilling4", "getArsBilling5", "getDdlUrl", "getEventsTrackingUrl", "getFirstLaunchUrl", "Lcom/appsflyer/internal/model/event/AFEvent;", b2.f6408u0, "getLaunchUrl", "getManualValidatePurchaseUrl", "getPlayIntegrityUrl", "getReferrerTrackingUrl", "getRegisterUrl", "billingVersion", "getUrlForArs", "devKey", "timestamp", "getUrlForDdlEvent", "getUrlForEvent", "getUrlForManualPurchaseValidation", "getUrlForPlayIntegrityReporting", "getUrlForPrivacySandbox", "getUrlForRdMonitor", "getUrlForRegister", "getUrlForValidatePurchase", "getUrlForValidatePurchaseWithWebHandler", "getUrlForViap", "getValidatePurchaseUrl", "getValidatePurchaseWithWebHandlerUrl", "getViapBilling4", "getViapBilling5", PointerEventHelper.POINTER_TYPE_UNKNOWN, "isAdRevenueEvent", "appendBuildNumber", "isRegisterEvent", "appendConfiguredChannel", "appendPackageName", "Landroid/net/Uri$Builder;", "appendSigQueryParam", "Lcom/appsflyer/internal/components/IdProvider;", "idProvider", "Lcom/appsflyer/internal/components/IdProvider;", "Lcom/appsflyer/internal/util/ServerConfigUrlFormatter;", "serverConfigUrlFormatter", "Lcom/appsflyer/internal/util/ServerConfigUrlFormatter;", "<init>", "(Lcom/appsflyer/internal/components/IdProvider;Lcom/appsflyer/internal/util/ServerConfigUrlFormatter;)V", "Companion", "SDK_prodRelease"}, k = 1, mv = {1, 8, 0})
public final class AFj1kSDK {
    public static final String AFAdRevenueData;
    public static final String areAllFieldsValid;
    public static final String component1;
    public static final String component2;
    public static final String component3;
    public static final String component4;
    public static final AFa1tSDK getCurrencyIso4217Code = new AFa1tSDK(null);
    public static final String getMediationNetwork;
    public static final String getMonetizationNetwork;
    private static final String toString;
    private final AFc1kSDK copy;
    public final AFj1bSDK getRevenue;

    @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\f\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u0014\u0010\u0007\u001a\u00020\u00048\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0006R\u0014\u0010\b\u001a\u00020\u00048\u0006X\u0087D¢\u0006\u0006\n\u0004\b\u0007\u0010\u0006R\u0014\u0010\t\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\b\u0010\u0006R\u0014\u0010\u000b\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u0006R\u0014\u0010\r\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\f\u0010\u0006R\u0014\u0010\f\u001a\u00020\u00048\u0006X\u0087D¢\u0006\u0006\n\u0004\b\u000e\u0010\u0006R\u0014\u0010\n\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u0006R\u0014\u0010\u000e\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u000f\u0010\u0006R\u0014\u0010\u000f\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u0010\u0010\u0006"}, d2 = {"Lcom/appsflyer/internal/AFj1kSDK$AFa1tSDK;", PointerEventHelper.POINTER_TYPE_UNKNOWN, "<init>", "()V", PointerEventHelper.POINTER_TYPE_UNKNOWN, "toString", "Ljava/lang/String;", "getMediationNetwork", "getMonetizationNetwork", "AFAdRevenueData", "component2", "getRevenue", "component3", "getCurrencyIso4217Code", "component1", "component4", "areAllFieldsValid"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class AFa1tSDK {
        private AFa1tSDK() {
        }

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

    static {
        String str = AFa1zSDK.AFAdRevenueData + "/androidevent?app_id=";
        toString = str;
        AFAdRevenueData = "https://%sattr.%s/api/v" + str;
        getMediationNetwork = "https://%sadrevenue.%s/api/v2/generic/v6.16.2/android?app_id=";
        getMonetizationNetwork = "https://%sconversions.%s/api/v" + str;
        component3 = "https://%slaunches.%s/api/v" + str;
        component2 = "https://%sinapps.%s/api/v" + str;
        component4 = "https://%sregister.%s/api/v" + str;
        areAllFieldsValid = "https://%svalidate.%s/api/v" + str;
        component1 = "https://%smonitorsdk.%s/api/remote-debug/v2.0?app_id=";
    }

    public AFj1kSDK(com.appsflyer.internal.AFc1kSDK r3) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFj1kSDK.<init>(com.appsflyer.internal.AFc1kSDK):void");
    }

    public static String getMediationNetwork() {
        return "https://privacy-sandbox.appsflyersdk.com/api/trigger";
    }

    public final String getCurrencyIso4217Code(String str, String str2) {
        String packageName = this.copy.AFAdRevenueData.getMonetizationNetwork.getPackageName();
        Intrinsics.checkNotNullExpressionValue(packageName, PointerEventHelper.POINTER_TYPE_UNKNOWN);
        String component12 = this.copy.component1();
        if (component12 != null && !StringsKt.isBlank(component12)) {
            component12 = "-" + StringsKt.trim(component12).toString();
        }
        if (component12 == null) {
            component12 = PointerEventHelper.POINTER_TYPE_UNKNOWN;
        }
        String obj = StringsKt.trim(component12).toString();
        Uri.Builder appendPath = Uri.parse(this.getRevenue.getMediationNetwork("https://%sdlsdk.%s/v1.0/android/")).buildUpon().appendPath(packageName + obj);
        Intrinsics.checkNotNullExpressionValue(appendPath, PointerEventHelper.POINTER_TYPE_UNKNOWN);
        if (str == null || str2 == null) {
            String str3 = str == null ? "devKey" : "timestamp";
            AFLogger.INSTANCE.e(AFh1zSDK.GENERAL, str3 + " is null at attempt to generate ddl event url", new IllegalStateException(str3 + " is null"), true, false, false, true);
        } else {
            appendPath.appendQueryParameter("af_sig", AFj1hSDK.AFAdRevenueData(str2 + str, str));
        }
        String obj2 = appendPath.appendQueryParameter("sdk_version", AFa1zSDK.AFAdRevenueData).build().toString();
        Intrinsics.checkNotNullExpressionValue(obj2, PointerEventHelper.POINTER_TYPE_UNKNOWN);
        return obj2;
    }

    public final String getRevenue(String str, boolean z4) {
        String str2;
        if (z4) {
            return str;
        }
        String component12 = this.copy.component1();
        if (component12 != null) {
            str2 = "&channel=" + component12;
        } else {
            str2 = null;
        }
        if (str2 == null) {
            str2 = PointerEventHelper.POINTER_TYPE_UNKNOWN;
        }
        return str + str2;
    }

    private AFj1kSDK(AFc1kSDK aFc1kSDK, AFj1bSDK aFj1bSDK) {
        Intrinsics.checkNotNullParameter(aFc1kSDK, PointerEventHelper.POINTER_TYPE_UNKNOWN);
        Intrinsics.checkNotNullParameter(aFj1bSDK, PointerEventHelper.POINTER_TYPE_UNKNOWN);
        this.copy = aFc1kSDK;
        this.getRevenue = aFj1bSDK;
    }

    public final String getMonetizationNetwork(String str) {
        return str + this.copy.AFAdRevenueData.getMonetizationNetwork.getPackageName();
    }

    public AFj1kSDK(AFc1kSDK aFc1kSDK, AFj1bSDK aFj1bSDK, int i5, DefaultConstructorMarker defaultConstructorMarker) {
        this(aFc1kSDK, (i5 & 2) != 0 ? new AFj1dSDK() : aFj1bSDK);
    }

    public static String getMonetizationNetwork(String str, boolean z4) {
        return str + (!z4 ? "&buildnumber=6.16.2" : PointerEventHelper.POINTER_TYPE_UNKNOWN);
    }
}