正在查看: Vi App v10.18.0 应用的 AFe1ySDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Vi App v10.18.0 应用的 AFe1ySDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.util.Base64;
import com.appsflyer.AFLogger;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.text.Charsets;
import kotlin.text.Regex;
import kotlin.text.StringsKt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class AFe1ySDK {
@Nullable
private static AFd1bSDK component1;
@NotNull
private final AFc1sSDK AFAdRevenueData;
@NotNull
private final Lazy component4;
@NotNull
public final Lazy getCurrencyIso4217Code;
@NotNull
private final AFc1kSDK getMediationNetwork;
@NotNull
public static final AFa1vSDK AFa1vSDK = new AFa1vSDK(null);
@NotNull
public static String getRevenue = "https://%scdn-%ssettings.%s/android/v1/%s/settings";
@NotNull
public static String getMonetizationNetwork = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";
@NotNull
private static final List<String> component2 = CollectionsKt.listOf(new String[]{"googleplay", "playstore", "googleplaystore"});
public static final class AFa1vSDK {
private AFa1vSDK() {
}
public AFa1vSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@JvmName(name = "getCurrencyIso4217Code")
@NotNull
public static List<String> getCurrencyIso4217Code() {
return AFe1ySDK.component2;
}
@JvmName(name = "getCurrencyIso4217Code")
public static void getCurrencyIso4217Code(@Nullable AFd1bSDK aFd1bSDK) {
AFe1ySDK.component1 = aFd1bSDK;
}
}
public class AFa1zSDK {
public static final int[] getMediationNetwork;
static {
int[] iArr = new int[AFe1wSDK.values().length];
try {
iArr[AFe1wSDK.DEFAULT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[AFe1wSDK.API.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[AFe1wSDK.RC.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
getMediationNetwork = iArr;
}
}
public AFe1ySDK(@NotNull AFc1kSDK aFc1kSDK, @NotNull AFc1sSDK aFc1sSDK) {
Intrinsics.checkNotNullParameter(aFc1kSDK, "");
Intrinsics.checkNotNullParameter(aFc1sSDK, "");
this.getMediationNetwork = aFc1kSDK;
this.AFAdRevenueData = aFc1sSDK;
this.component4 = LazyKt.lazy(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
String AFAdRevenueData = com.appsflyer.internal.AFa1zSDK.AFAdRevenueData(AFe1ySDK.this.AFAdRevenueData, AFe1ySDK.this.getMediationNetwork.component1());
if (!(AFAdRevenueData == null || StringsKt.isBlank(AFAdRevenueData))) {
String obj = StringsKt.trim(AFAdRevenueData).toString();
List<String> currencyIso4217Code = AFa1vSDK.getCurrencyIso4217Code();
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "");
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
if (currencyIso4217Code.contains(lowerCase)) {
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
String format = String.format("AF detected using redundant Google-Play channel for attribution - %s. Using without channel postfix.", Arrays.copyOf(new Object[]{obj}, 1));
Intrinsics.checkNotNullExpressionValue(format, "");
AFLogger.afWarnLog(format);
AFAdRevenueData = "";
} else {
AFAdRevenueData = "-" + obj;
}
}
return StringsKt.trim(AFAdRevenueData != null ? AFAdRevenueData : "").toString();
}
});
this.getCurrencyIso4217Code = LazyKt.lazy(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
String packageName = AFe1ySDK.this.getMediationNetwork.AFAdRevenueData.getMonetizationNetwork.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
return AFe1ySDK.getMediationNetwork(packageName, AFe1ySDK.getRevenue(AFe1ySDK.this));
}
});
}
@JvmName(name = "getCurrencyIso4217Code")
@NotNull
public final String getCurrencyIso4217Code() {
int i = AFa1zSDK.getMediationNetwork[(getRevenue() ? AFe1wSDK.DEFAULT : AFe1wSDK.API).ordinal()];
if (i == 1) {
return (String) this.getCurrencyIso4217Code.getValue();
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFd1bSDK aFd1bSDK = component1;
String str = aFd1bSDK != null ? aFd1bSDK.getCurrencyIso4217Code : null;
return str == null ? "" : str;
}
@JvmName(name = "getRevenue")
public static boolean getRevenue() {
return component1 == null;
}
@JvmName(name = "AFAdRevenueData")
@NotNull
public final String AFAdRevenueData() {
int i = AFa1zSDK.getMediationNetwork[(getRevenue() ? AFe1wSDK.DEFAULT : AFe1wSDK.API).ordinal()];
if (i == 1) {
return "appsflyersdk.com";
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFd1bSDK aFd1bSDK = component1;
String str = aFd1bSDK != null ? aFd1bSDK.getRevenue : null;
return str == null ? "" : str;
}
public static final String getMediationNetwork(String str, String str2) {
String str3 = str + str2;
Intrinsics.checkNotNullParameter(str3, "");
MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
byte[] bytes = str3.getBytes(Charsets.UTF_8);
Intrinsics.checkNotNullExpressionValue(bytes, "");
byte[] digest = messageDigest.digest(bytes);
Intrinsics.checkNotNullExpressionValue(digest, "");
String encodeToString = Base64.encodeToString(digest, 2);
Intrinsics.checkNotNullExpressionValue(encodeToString, "");
String lowerCase = encodeToString.toLowerCase(Locale.ROOT);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
String substring = new Regex("[^\\w]+").replace(lowerCase, "").substring(0, 6);
Intrinsics.checkNotNullExpressionValue(substring, "");
return substring + "-";
}
public static final String getRevenue(AFe1ySDK aFe1ySDK) {
return (String) aFe1ySDK.component4.getValue();
}
public static final void getMediationNetwork(@Nullable AFd1bSDK aFd1bSDK) {
AFa1vSDK.getCurrencyIso4217Code(aFd1bSDK);
}
}