正在查看: FinLeap Cash v1.0.5 应用的 AFe1iSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: FinLeap Cash v1.0.5 应用的 AFe1iSDK.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.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt;
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;
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0004\u0018\u0000 \u00162\u00020\u0001:\u0001\u0016B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007R\u0015\u0010\u000b\u001a\u00020\b8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\t\u0010\nR\u0015\u0010\f\u001a\u00020\b8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\u000b\u0010\nR\u0011\u0010\r\u001a\u00020\b8G¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u0011\u001a\u00020\u00028\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010R\u0011\u0010\u000f\u001a\u00020\u00128G¢\u0006\u0006\u001a\u0004\b\f\u0010\u0013R\u0014\u0010\u0015\u001a\u00020\u00048\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\f\u0010\u0014R\u0011\u0010\t\u001a\u00020\b8G¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u000e"}, d2 = {"Lcom/appsflyer/internal/AFe1iSDK;", "", "Lcom/appsflyer/internal/AFd1qSDK;", "p0", "Lcom/appsflyer/internal/AFd1rSDK;", "p1", "<init>", "(Lcom/appsflyer/internal/AFd1qSDK;Lcom/appsflyer/internal/AFd1rSDK;)V", "", "component3", "Lkotlin/Lazy;", "getMonetizationNetwork", "getCurrencyIso4217Code", "AFAdRevenueData", "()Ljava/lang/String;", "getRevenue", "Lcom/appsflyer/internal/AFd1qSDK;", "getMediationNetwork", "", "()Z", "Lcom/appsflyer/internal/AFd1rSDK;", "areAllFieldsValid", "AFa1zSDK"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class AFe1iSDK {
private static AFe1hSDK areAllFieldsValid;
private final Lazy getMonetizationNetwork;
private final AFd1rSDK areAllFieldsValid;
public final Lazy getCurrencyIso4217Code;
private final AFd1qSDK getMediationNetwork;
public static final Companion INSTANCE = new Companion(null);
public static String getMediationNetwork = "https://%scdn-%ssettings.%s/android/v1/%s/settings";
public static String AFAdRevenueData = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";
private static final List<String> component1 = CollectionsKt.listOf(new String[]{"googleplay", "playstore", "googleplaystore"});
public AFe1iSDK(AFd1qSDK aFd1qSDK, AFd1rSDK aFd1rSDK) {
Intrinsics.checkNotNullParameter(aFd1qSDK, "");
Intrinsics.checkNotNullParameter(aFd1rSDK, "");
this.getMediationNetwork = aFd1qSDK;
this.areAllFieldsValid = aFd1rSDK;
this.getMonetizationNetwork = LazyKt.lazy(new Function0<String>() {
public final String invoke() {
String monetizationNetwork = AFb1rSDK.getMonetizationNetwork(AFe1iSDK.this.areAllFieldsValid, AFe1iSDK.this.getMediationNetwork.component4());
String str = monetizationNetwork;
if (!(str == null || StringsKt.isBlank(str))) {
String obj = StringsKt.trim(str).toString();
Companion companion = AFe1iSDK.INSTANCE;
List<String> currencyIso4217Code = Companion.getCurrencyIso4217Code();
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "");
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
if (!currencyIso4217Code.contains(lowerCase)) {
monetizationNetwork = "-" + obj;
} else {
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);
monetizationNetwork = "";
}
}
return StringsKt.trim(monetizationNetwork != null ? monetizationNetwork : "").toString();
}
{
super(0);
}
});
this.getCurrencyIso4217Code = LazyKt.lazy(new Function0<String>() {
public final String invoke() {
String packageName = AFe1iSDK.this.getMediationNetwork.getMonetizationNetwork.AFAdRevenueData.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
return AFe1iSDK.getMediationNetwork(packageName, AFe1iSDK.getMonetizationNetwork(AFe1iSDK.this));
}
{
super(0);
}
});
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R \u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00050\u00048\u0007X\u0087\u0004¢\u0006\f\n\u0004\b\u0006\u0010\u0007\u001a\u0004\b\b\u0010\tR\u0016\u0010\n\u001a\u00020\u00058\u0006@\u0006X\u0087\f¢\u0006\u0006\n\u0004\b\n\u0010\u000bR\u0016\u0010\f\u001a\u00020\u00058\u0006@\u0006X\u0087\f¢\u0006\u0006\n\u0004\b\f\u0010\u000bR\u001e\u0010\u0010\u001a\u0004\u0018\u00010\r8\u0006@\u0007X\u0087\u000e¢\u0006\f\n\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011"}, d2 = {"Lcom/appsflyer/internal/AFe1iSDK$AFa1zSDK;", "", "<init>", "()V", "", "", "component1", "Ljava/util/List;", "getCurrencyIso4217Code", "()Ljava/util/List;", "getMediationNetwork", "Ljava/lang/String;", "AFAdRevenueData", "Lcom/appsflyer/internal/AFe1hSDK;", "areAllFieldsValid", "Lcom/appsflyer/internal/AFe1hSDK;", "getMonetizationNetwork", "(Lcom/appsflyer/internal/AFe1hSDK;)V"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
private Companion() {
}
public static List<String> getCurrencyIso4217Code() {
return AFe1iSDK.component1;
}
public static void getMonetizationNetwork(AFe1hSDK aFe1hSDK) {
AFe1iSDK.areAllFieldsValid = aFe1hSDK;
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
public static boolean getCurrencyIso4217Code() {
return areAllFieldsValid == null;
}
public final String getMediationNetwork() {
AFe1fSDK aFe1fSDK;
if (getCurrencyIso4217Code()) {
aFe1fSDK = AFe1fSDK.DEFAULT;
} else {
aFe1fSDK = AFe1fSDK.API;
}
int i = AFa1uSDK.getRevenue[aFe1fSDK.ordinal()];
if (i == 1) {
return (String) this.getCurrencyIso4217Code.getValue();
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1hSDK aFe1hSDK = areAllFieldsValid;
String str = aFe1hSDK != null ? aFe1hSDK.AFAdRevenueData : null;
return str == null ? "" : str;
}
public final String AFAdRevenueData() {
AFe1fSDK aFe1fSDK;
if (getCurrencyIso4217Code()) {
aFe1fSDK = AFe1fSDK.DEFAULT;
} else {
aFe1fSDK = AFe1fSDK.API;
}
int i = AFa1uSDK.getRevenue[aFe1fSDK.ordinal()];
if (i == 1) {
return "appsflyersdk.com";
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1hSDK aFe1hSDK = areAllFieldsValid;
String str = aFe1hSDK != null ? aFe1hSDK.getMediationNetwork : 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 getMonetizationNetwork(AFe1iSDK aFe1iSDK) {
return (String) aFe1iSDK.getMonetizationNetwork.getValue();
}
public class AFa1uSDK {
public static final int[] getRevenue;
static {
int[] iArr = new int[AFe1fSDK.values().length];
try {
iArr[AFe1fSDK.DEFAULT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[AFe1fSDK.API.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[AFe1fSDK.RC.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
getRevenue = iArr;
}
}
public static final void getMonetizationNetwork(AFe1hSDK aFe1hSDK) {
Companion.getMonetizationNetwork(aFe1hSDK);
}
}