正在查看: BetterTogether v3.0.0 应用的 AFj1iSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 AFj1iSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import a0.g0;
import android.net.Uri;
import com.appsflyer.AFLogger;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.u;
import kotlin.text.y;
@Metadata
public final class AFj1iSDK {
public static final AFa1tSDK AFa1tSDK = new AFa1tSDK(null);
public static String areAllFieldsValid;
private static final String component1;
public static final String component2;
public static final String component3;
public static final String component4;
public static final String getCurrencyIso4217Code;
public static final String getMediationNetwork;
public static final String getRevenue;
public final AFd1rSDK AFAdRevenueData;
public final AFj1dSDK getMonetizationNetwork;
@Metadata
public static final class AFa1tSDK {
private AFa1tSDK() {
}
public AFa1tSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
static {
String str = AFb1rSDK.getCurrencyIso4217Code;
String x10 = g0.x(str, "/androidevent?app_id=");
component1 = x10;
getCurrencyIso4217Code = g0.j("https://%sattr.%s/api/v", x10);
getRevenue = "https://%sadrevenue.%s/api/v2/generic/v6.15.1/android?app_id=";
getMediationNetwork = g0.j("https://%sconversions.%s/api/v", x10);
component3 = g0.j("https://%slaunches.%s/api/v", x10);
component2 = g0.j("https://%sinapps.%s/api/v", x10);
component4 = "https://%smonitorsdk.%s/api/remote-debug/v2.0?app_id=";
areAllFieldsValid = g0.b.k("https://%svalidate.%s/api/v", str, "/androidevent?buildnumber=6.15.1&app_id=");
}
private AFj1iSDK(AFd1rSDK aFd1rSDK, AFj1dSDK aFj1dSDK) {
Intrinsics.checkNotNullParameter(aFd1rSDK, "");
Intrinsics.checkNotNullParameter(aFj1dSDK, "");
this.AFAdRevenueData = aFd1rSDK;
this.getMonetizationNetwork = aFj1dSDK;
}
public static String AFAdRevenueData(String str, boolean z4) {
return g0.x(str, !z4 ? "&buildnumber=6.15.1" : "");
}
public static String getMediationNetwork() {
return "https://aps-webhandler.appsflyer.com/api/trigger";
}
public final String getCurrencyIso4217Code(String str) {
return g0.x(str, this.AFAdRevenueData.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName());
}
public final String getMonetizationNetwork(String str, String str2) {
String packageName = this.AFAdRevenueData.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
String areAllFieldsValid2 = this.AFAdRevenueData.areAllFieldsValid();
if (!(areAllFieldsValid2 == null || u.i(areAllFieldsValid2))) {
areAllFieldsValid2 = g0.j("-", y.W(areAllFieldsValid2).toString());
}
if (areAllFieldsValid2 == null) {
areAllFieldsValid2 = "";
}
String obj = y.W(areAllFieldsValid2).toString();
Uri.Builder appendPath = Uri.parse(this.getMonetizationNetwork.getMediationNetwork("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", AFb1kSDK.getCurrencyIso4217Code(str2.concat(str), str));
}
String obj2 = appendPath.appendQueryParameter("sdk_version", AFb1rSDK.getCurrencyIso4217Code).build().toString();
Intrinsics.checkNotNullExpressionValue(obj2, "");
return obj2;
}
public AFj1iSDK(AFd1rSDK aFd1rSDK, AFj1dSDK aFj1dSDK, int i10, DefaultConstructorMarker defaultConstructorMarker) {
this(aFd1rSDK, (i10 & 2) != 0 ? new AFj1eSDK() : aFj1dSDK);
}
public AFj1iSDK(com.appsflyer.internal.AFd1rSDK r3) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFj1iSDK.<init>(com.appsflyer.internal.AFd1rSDK):void");
}
public final String AFAdRevenueData(AFh1hSDK aFh1hSDK) {
Intrinsics.checkNotNullParameter(aFh1hSDK, "");
if (aFh1hSDK instanceof AFh1iSDK) {
return this.getMonetizationNetwork.getMediationNetwork("https://%ssdk-services.%s/validate-android-signature");
}
if (aFh1hSDK instanceof AFi1zSDK) {
return g0.x(this.getMonetizationNetwork.getMediationNetwork(areAllFieldsValid), this.AFAdRevenueData.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName());
}
throw new UnsupportedOperationException();
}
public final String getMonetizationNetwork(String str) {
String areAllFieldsValid2 = this.AFAdRevenueData.areAllFieldsValid();
String concat = areAllFieldsValid2 != null ? "&channel=".concat(areAllFieldsValid2) : null;
if (concat == null) {
concat = "";
}
return g0.x(str, concat);
}
}