正在查看: FanCode v7.24.0 应用的 AFj1iSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: FanCode v7.24.0 应用的 AFj1iSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.net.Uri;
import com.appsflyer.AFLogger;
import com.connectsdk.service.webos.lgcast.common.utils.StringUtil;
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,289:1\n39#2:290\n*S KotlinDebug\n*F\n+ 1 EventUrlResolver.kt\ncom/appsflyer/internal/util/EventUrlResolver\n*L\n156#1:290\n*E\n"})
public final class AFj1iSDK {
@NotNull
public static final AFa1tSDK AFa1tSDK = new AFa1tSDK(null);
@NotNull
public static String areAllFieldsValid;
@NotNull
private static final String component1;
@NotNull
public static final String component2;
@NotNull
public static final String component3;
@NotNull
public static final String component4;
@NotNull
public static final String getCurrencyIso4217Code;
@NotNull
public static final String getMediationNetwork;
@NotNull
public static final String getRevenue;
@NotNull
public final AFd1rSDK AFAdRevenueData;
@NotNull
public final AFj1dSDK getMonetizationNetwork;
@Metadata
public static final class AFa1tSDK {
private AFa1tSDK() {
}
public AFa1tSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
static {
String str = AFb1rSDK.getCurrencyIso4217Code;
String str2 = str + "/androidevent?app_id=";
component1 = str2;
getCurrencyIso4217Code = "https://%sattr.%s/api/v" + str2;
getRevenue = "https://%sadrevenue.%s/api/v2/generic/v6.15.1/android?app_id=";
getMediationNetwork = "https://%sconversions.%s/api/v" + str2;
component3 = "https://%slaunches.%s/api/v" + str2;
component2 = "https://%sinapps.%s/api/v" + str2;
component4 = "https://%smonitorsdk.%s/api/remote-debug/v2.0?app_id=";
areAllFieldsValid = "https://%svalidate.%s/api/v" + str + "/androidevent?buildnumber=6.15.1&app_id=";
}
private AFj1iSDK(@NotNull AFd1rSDK aFd1rSDK, @NotNull AFj1dSDK aFj1dSDK) {
Intrinsics.checkNotNullParameter(aFd1rSDK, StringUtil.EMPTY);
Intrinsics.checkNotNullParameter(aFj1dSDK, StringUtil.EMPTY);
this.AFAdRevenueData = aFd1rSDK;
this.getMonetizationNetwork = aFj1dSDK;
}
public static String getMediationNetwork() {
return "https://aps-webhandler.appsflyer.com/api/trigger";
}
@NotNull
public final String AFAdRevenueData(@NotNull AFh1hSDK aFh1hSDK) {
Intrinsics.checkNotNullParameter(aFh1hSDK, StringUtil.EMPTY);
if (aFh1hSDK instanceof AFh1iSDK) {
return this.getMonetizationNetwork.getMediationNetwork("https://%ssdk-services.%s/validate-android-signature");
}
if (!(aFh1hSDK instanceof AFi1zSDK)) {
throw new UnsupportedOperationException();
}
return this.getMonetizationNetwork.getMediationNetwork(areAllFieldsValid) + this.AFAdRevenueData.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName();
}
public final String getCurrencyIso4217Code(String str) {
return str + this.AFAdRevenueData.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName();
}
@NotNull
public final String getMonetizationNetwork(String str, String str2) {
String packageName = this.AFAdRevenueData.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, StringUtil.EMPTY);
String areAllFieldsValid2 = this.AFAdRevenueData.areAllFieldsValid();
if (!(areAllFieldsValid2 == null || StringsKt.v(areAllFieldsValid2))) {
areAllFieldsValid2 = "-" + StringsKt.O0(areAllFieldsValid2).toString();
}
if (areAllFieldsValid2 == null) {
areAllFieldsValid2 = StringUtil.EMPTY;
}
String obj = StringsKt.O0(areAllFieldsValid2).toString();
Uri.Builder appendPath = Uri.parse(this.getMonetizationNetwork.getMediationNetwork("https://%sdlsdk.%s/v1.0/android/")).buildUpon().appendPath(packageName + obj);
Intrinsics.checkNotNullExpressionValue(appendPath, StringUtil.EMPTY);
if (str == null || str2 == null) {
String str3 = str == null ? "devKey" : "timestamp";
AFLogger.afErrorLog(str3 + " is null at attempt to generate ddl event url", new IllegalStateException(str3 + " is null"));
} else {
appendPath.appendQueryParameter("af_sig", AFb1kSDK.getCurrencyIso4217Code(str2 + str, str));
}
String obj2 = appendPath.appendQueryParameter("sdk_version", AFb1rSDK.getCurrencyIso4217Code).build().toString();
Intrinsics.checkNotNullExpressionValue(obj2, StringUtil.EMPTY);
return obj2;
}
public AFj1iSDK(AFd1rSDK aFd1rSDK, AFj1dSDK aFj1dSDK, int i9, DefaultConstructorMarker defaultConstructorMarker) {
this(aFd1rSDK, (i9 & 2) != 0 ? new AFj1eSDK() : aFj1dSDK);
}
public AFj1iSDK(@org.jetbrains.annotations.NotNull com.appsflyer.internal.AFd1rSDK r3) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFj1iSDK.<init>(com.appsflyer.internal.AFd1rSDK):void");
}
public static String AFAdRevenueData(String str, boolean z9) {
return str + (!z9 ? "&buildnumber=6.15.1" : StringUtil.EMPTY);
}
public final String getMonetizationNetwork(String str) {
String str2;
String areAllFieldsValid2 = this.AFAdRevenueData.areAllFieldsValid();
if (areAllFieldsValid2 != null) {
str2 = "&channel=" + areAllFieldsValid2;
} else {
str2 = null;
}
if (str2 == null) {
str2 = StringUtil.EMPTY;
}
return str + str2;
}
}