导航菜单

页面标题

页面副标题

Crafto v9.3.3 - AFj1bSDK.java 源代码

正在查看: Crafto v9.3.3 应用的 AFj1bSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

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

@Metadata
@SourceDebugExtension({"SMAP\nEventUrlResolver.kt\nKotlin\n*S Kotlin\n*F\n+ 1 EventUrlResolver.kt\ncom/appsflyer/internal/util/EventUrlResolver\n+ 2 StringExtensions.kt\ncom/appsflyer/StringExtensionsKt\n*L\n1#1,306:1\n39#2:307\n*S KotlinDebug\n*F\n+ 1 EventUrlResolver.kt\ncom/appsflyer/internal/util/EventUrlResolver\n*L\n164#1:307\n*E\n"})
public final class AFj1bSDK {

    @NotNull
    public static final String AFAdRevenueData;

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

    @NotNull
    public static final String areAllFieldsValid;

    @NotNull
    private static final String component1;

    @NotNull
    public static final String component2;

    @NotNull
    public static final String component3;

    @NotNull
    public static String component4;

    @NotNull
    public static final String getMediationNetwork;

    @NotNull
    public static final String getMonetizationNetwork;

    @NotNull
    public final AFk1ySDK getCurrencyIso4217Code;

    @NotNull
    public final AFd1nSDK getRevenue;

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

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

    static {
        String str = AFb1tSDK.getMediationNetwork;
        String b8 = E7.D.b(str, "/androidevent?app_id=");
        component1 = b8;
        getMonetizationNetwork = C1.e.a("https://%sattr.%s/api/v", b8);
        AFAdRevenueData = "https://%sadrevenue.%s/api/v2/generic/v6.16.0/android?app_id=";
        getMediationNetwork = C1.e.a("https://%sconversions.%s/api/v", b8);
        areAllFieldsValid = C1.e.a("https://%slaunches.%s/api/v", b8);
        component3 = C1.e.a("https://%sinapps.%s/api/v", b8);
        component2 = "https://%smonitorsdk.%s/api/remote-debug/v2.0?app_id=";
        component4 = C1038s.c("https://%svalidate.%s/api/v", str, "/androidevent?buildnumber=6.16.0&app_id=");
    }

    private AFj1bSDK(@NotNull AFd1nSDK aFd1nSDK, @NotNull AFk1ySDK aFk1ySDK) {
        Intrinsics.checkNotNullParameter(aFd1nSDK, "");
        Intrinsics.checkNotNullParameter(aFk1ySDK, "");
        this.getRevenue = aFd1nSDK;
        this.getCurrencyIso4217Code = aFk1ySDK;
    }

    public static String getRevenue(String str, boolean z7) {
        return E7.D.b(str, !z7 ? "&buildnumber=6.16.0" : "");
    }

    @NotNull
    public final String AFAdRevenueData(String str, String str2) {
        String packageName = this.getRevenue.getRevenue.getMonetizationNetwork.getPackageName();
        Intrinsics.checkNotNullExpressionValue(packageName, "");
        String component12 = this.getRevenue.component1();
        if (component12 != null && !StringsKt.J(component12)) {
            component12 = C1.e.a("-", StringsKt.a0(component12).toString());
        }
        if (component12 == null) {
            component12 = "";
        }
        String obj = StringsKt.a0(component12).toString();
        Uri.Builder appendPath = Uri.parse(this.getCurrencyIso4217Code.getMonetizationNetwork("https://%sdlsdk.%s/v1.0/android/")).buildUpon().appendPath(packageName + obj);
        Intrinsics.checkNotNullExpressionValue(appendPath, "");
        if (str == null || str2 == null) {
            String str3 = str == null ? "devKey" : "timestamp";
            AFLogger.afErrorLog(str3.concat(" is null at attempt to generate ddl event url"), new IllegalStateException(str3.concat(" is null")));
        } else {
            appendPath.appendQueryParameter("af_sig", AFb1mSDK.getRevenue(str2.concat(str), str));
        }
        String obj2 = appendPath.appendQueryParameter("sdk_version", AFb1tSDK.getMediationNetwork).build().toString();
        Intrinsics.checkNotNullExpressionValue(obj2, "");
        return obj2;
    }

    public final String getCurrencyIso4217Code(String str) {
        String component12 = this.getRevenue.component1();
        String concat = component12 != null ? "&channel=".concat(component12) : null;
        if (concat == null) {
            concat = "";
        }
        return E7.D.b(str, concat);
    }

    public final String getMediationNetwork(String str) {
        return E7.D.b(str, this.getRevenue.getRevenue.getMonetizationNetwork.getPackageName());
    }

    public AFj1bSDK(AFd1nSDK aFd1nSDK, AFk1ySDK aFk1ySDK, int i7, DefaultConstructorMarker defaultConstructorMarker) {
        this(aFd1nSDK, (i7 & 2) != 0 ? new AFk1zSDK() : aFk1ySDK);
    }

    public AFj1bSDK(@org.jetbrains.annotations.NotNull com.appsflyer.internal.AFd1nSDK r3) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFj1bSDK.<init>(com.appsflyer.internal.AFd1nSDK):void");
    }

    @NotNull
    public final String AFAdRevenueData(@NotNull AFh1aSDK aFh1aSDK) {
        Intrinsics.checkNotNullParameter(aFh1aSDK, "");
        if (aFh1aSDK instanceof AFi1uSDK) {
            return this.getCurrencyIso4217Code.getMonetizationNetwork("https://%ssdk-services.%s/validate-android-signature");
        }
        if (aFh1aSDK instanceof AFi1vSDK) {
            return E7.D.b(this.getCurrencyIso4217Code.getMonetizationNetwork(component4), this.getRevenue.getRevenue.getMonetizationNetwork.getPackageName());
        }
        throw new UnsupportedOperationException();
    }

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