正在查看: Empower MX v1.29.4.340 应用的 AFe1eSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 AFe1eSDK.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.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.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\t\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0004\u0018\u0000 \u00172\u00020\u0001:\u0001\u0017B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007R\u0014\u0010\n\u001a\u00020\u00028\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\b\u0010\tR\u0014\u0010\r\u001a\u00020\u00048\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u0015\u0010\u0011\u001a\u00020\u000e8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010R\u0015\u0010\b\u001a\u00020\u000e8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\u0012\u0010\u0010R\u0011\u0010\u0012\u001a\u00020\u00138G¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0014R\u0011\u0010\u0016\u001a\u00020\u000e8G¢\u0006\u0006\u001a\u0004\b\n\u0010\u0015R\u0011\u0010\u000b\u001a\u00020\u000e8G¢\u0006\u0006\u001a\u0004\b\u000b\u0010\u0015"}, d2 = {"Lcom/appsflyer/internal/AFe1eSDK;", "", "Lcom/appsflyer/internal/AFd1nSDK;", "p0", "Lcom/appsflyer/internal/AFd1pSDK;", "p1", "<init>", "(Lcom/appsflyer/internal/AFd1nSDK;Lcom/appsflyer/internal/AFd1pSDK;)V", "getRevenue", "Lcom/appsflyer/internal/AFd1nSDK;", "getMediationNetwork", "getMonetizationNetwork", "Lcom/appsflyer/internal/AFd1pSDK;", "component1", "", "component4", "Lsf/l;", "AFAdRevenueData", "getCurrencyIso4217Code", "", "()Z", "()Ljava/lang/String;", "component2", "AFa1tSDK"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class AFe1eSDK {
private static AFe1fSDK areAllFieldsValid;
private final sf.l AFAdRevenueData;
public final sf.l getRevenue;
private final AFd1pSDK component1;
private final AFd1nSDK getMediationNetwork;
public static final Companion INSTANCE = new Companion(null);
public static String AFAdRevenueData = "https://%scdn-%ssettings.%s/android/v1/%s/settings";
public static String getMediationNetwork = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";
private static final List<String> component2 = CollectionsKt.p(new String[]{"googleplay", "playstore", "googleplaystore"});
@Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\u000b¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "getRevenue", "()Ljava/lang/String;"}, k = 3, mv = {1, 8, 0}, xi = 48)
static final class AnonymousClass1 extends Gf.s implements Function0<String> {
AnonymousClass1() {
super(0);
}
public final String invoke() {
String packageName = AFe1eSDK.this.getMediationNetwork.getRevenue.getMonetizationNetwork.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
return AFe1eSDK.getMonetizationNetwork(packageName, AFe1eSDK.AFAdRevenueData(AFe1eSDK.this));
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\u000b¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "getMediationNetwork", "()Ljava/lang/String;"}, k = 3, mv = {1, 8, 0}, xi = 48)
static final class AnonymousClass4 extends Gf.s implements Function0<String> {
AnonymousClass4() {
super(0);
}
public final String invoke() {
String currencyIso4217Code = AFb1tSDK.getCurrencyIso4217Code(AFe1eSDK.this.component1, AFe1eSDK.this.getMediationNetwork.component1());
if (currencyIso4217Code != null && !StringsKt.f0(currencyIso4217Code)) {
String obj = StringsKt.Y0(currencyIso4217Code).toString();
List<String> monetizationNetwork = Companion.getMonetizationNetwork();
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "");
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
if (monetizationNetwork.contains(lowerCase)) {
Gf.Q q4 = Gf.Q.a;
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);
currencyIso4217Code = "";
} else {
currencyIso4217Code = "-" + obj;
}
}
return StringsKt.Y0(currencyIso4217Code != null ? currencyIso4217Code : "").toString();
}
}
@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\b\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\n\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\b\u001a\u00020\u00058\u0006@\u0006X\u0087\f¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u0016\u0010\u000b\u001a\u00020\u00058\u0006@\u0006X\u0087\f¢\u0006\u0006\n\u0004\b\r\u0010\fR\u001e\u0010\u0012\u001a\u0004\u0018\u00010\u000e8\u0006@\u0007X\u0087\u000e¢\u0006\f\n\u0004\b\u000f\u0010\u0010\"\u0004\b\r\u0010\u0011"}, d2 = {"Lcom/appsflyer/internal/AFe1eSDK$AFa1tSDK;", "", "<init>", "()V", "", "", "component2", "Ljava/util/List;", "getMonetizationNetwork", "()Ljava/util/List;", "getRevenue", "AFAdRevenueData", "Ljava/lang/String;", "getMediationNetwork", "Lcom/appsflyer/internal/AFe1fSDK;", "areAllFieldsValid", "Lcom/appsflyer/internal/AFe1fSDK;", "(Lcom/appsflyer/internal/AFe1fSDK;)V", "getCurrencyIso4217Code"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
private Companion() {
}
public static void getMediationNetwork(AFe1fSDK aFe1fSDK) {
AFe1eSDK.areAllFieldsValid = aFe1fSDK;
}
public static List<String> getMonetizationNetwork() {
return AFe1eSDK.component2;
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
public class AFa1ySDK {
public static final int[] getCurrencyIso4217Code;
static {
int[] iArr = new int[AFe1bSDK.values().length];
try {
iArr[AFe1bSDK.DEFAULT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[AFe1bSDK.API.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[AFe1bSDK.RC.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
getCurrencyIso4217Code = iArr;
}
}
public AFe1eSDK(AFd1nSDK aFd1nSDK, AFd1pSDK aFd1pSDK) {
Intrinsics.checkNotNullParameter(aFd1nSDK, "");
Intrinsics.checkNotNullParameter(aFd1pSDK, "");
this.getMediationNetwork = aFd1nSDK;
this.component1 = aFd1pSDK;
this.AFAdRevenueData = sf.m.a(new AnonymousClass4());
this.getRevenue = sf.m.a(new AnonymousClass1());
}
public static boolean AFAdRevenueData() {
return areAllFieldsValid == null;
}
public final String getMediationNetwork() {
int i4 = AFa1ySDK.getCurrencyIso4217Code[(AFAdRevenueData() ? AFe1bSDK.DEFAULT : AFe1bSDK.API).ordinal()];
if (i4 == 1) {
return (String) this.getRevenue.getValue();
}
if (i4 != 2) {
if (i4 == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1fSDK aFe1fSDK = areAllFieldsValid;
String str = aFe1fSDK != null ? aFe1fSDK.getCurrencyIso4217Code : null;
return str == null ? "" : str;
}
public static final String AFAdRevenueData(AFe1eSDK aFe1eSDK) {
return (String) aFe1eSDK.AFAdRevenueData.getValue();
}
public final String getMonetizationNetwork() {
AFe1bSDK aFe1bSDK;
if (AFAdRevenueData()) {
aFe1bSDK = AFe1bSDK.DEFAULT;
} else {
aFe1bSDK = AFe1bSDK.API;
}
int i4 = AFa1ySDK.getCurrencyIso4217Code[aFe1bSDK.ordinal()];
if (i4 == 1) {
return "appsflyersdk.com";
}
if (i4 != 2) {
if (i4 == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1fSDK aFe1fSDK = areAllFieldsValid;
String str = aFe1fSDK != null ? aFe1fSDK.getMediationNetwork : null;
return str == null ? "" : str;
}
public static final void getMediationNetwork(AFe1fSDK aFe1fSDK) {
Companion.getMediationNetwork(aFe1fSDK);
}
public static final String getMonetizationNetwork(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 + "-";
}
}