正在查看: Pulsar v1.0.0 应用的 AFe1ySDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Pulsar v1.0.0 应用的 AFe1ySDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.util.Base64;
import com.appsflyer.AFLogger;
import com.facebook.react.uimanager.events.PointerEventHelper;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.r1;
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\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\t\u0018\u0000 \u00172\u00020\u0001:\u0001\u0017B\u0017\u0012\u0006\u0010\u0013\u001a\u00020\u0002\u0012\u0006\u0010\u0014\u001a\u00020\u0006¢\u0006\u0004\b\u0015\u0010\u0016R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\t\u001a\u00020\u00068\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\bR\u0015\u0010\r\u001a\u00020\n8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u0015\u0010\u0003\u001a\u00020\n8BX\u0083\u0084\u0002¢\u0006\u0006\n\u0004\b\u0005\u0010\fR\u0011\u0010\u0010\u001a\u00020\u000e8G¢\u0006\u0006\u001a\u0004\b\r\u0010\u000fR\u0011\u0010\u0012\u001a\u00020\n8G¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0011R\u0011\u0010\u0007\u001a\u00020\n8G¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u0011"}, d2 = {"Lcom/appsflyer/internal/AFe1ySDK;", PointerEventHelper.POINTER_TYPE_UNKNOWN, "Lcom/appsflyer/internal/AFc1kSDK;", "getMediationNetwork", "Lcom/appsflyer/internal/AFc1kSDK;", "getCurrencyIso4217Code", "Lcom/appsflyer/internal/AFc1sSDK;", "AFAdRevenueData", "Lcom/appsflyer/internal/AFc1sSDK;", "component1", PointerEventHelper.POINTER_TYPE_UNKNOWN, "component4", "Lkotlin/d0;", "getRevenue", PointerEventHelper.POINTER_TYPE_UNKNOWN, "()Z", "getMonetizationNetwork", "()Ljava/lang/String;", "areAllFieldsValid", "p0", "p1", "<init>", "(Lcom/appsflyer/internal/AFc1kSDK;Lcom/appsflyer/internal/AFc1sSDK;)V", "AFa1vSDK"}, k = 1, mv = {1, 8, 0})
public final class AFe1ySDK {
private static AFd1bSDK component1;
private final AFc1sSDK component1;
private final kotlin.d0 getRevenue;
public final kotlin.d0 getMediationNetwork;
private final AFc1kSDK getCurrencyIso4217Code;
public static final Companion INSTANCE = new Companion(null);
public static String getRevenue = "https://%scdn-%ssettings.%s/android/v1/%s/settings";
public static String getMonetizationNetwork = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";
private static final List<String> component2 = CollectionsKt.listOf(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 = {PointerEventHelper.POINTER_TYPE_UNKNOWN, "getMediationNetwork", "()Ljava/lang/String;"}, k = 3, mv = {1, 8, 0}, xi = 48)
static final class AnonymousClass4 extends kotlin.jvm.internal.l0 implements Function0<String> {
AnonymousClass4() {
super(0);
}
public final String invoke() {
String packageName = AFe1ySDK.this.getCurrencyIso4217Code.AFAdRevenueData.getMonetizationNetwork.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, PointerEventHelper.POINTER_TYPE_UNKNOWN);
return AFe1ySDK.getMediationNetwork(packageName, AFe1ySDK.getRevenue(AFe1ySDK.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 = {PointerEventHelper.POINTER_TYPE_UNKNOWN, "AFAdRevenueData", "()Ljava/lang/String;"}, k = 3, mv = {1, 8, 0}, xi = 48)
static final class AnonymousClass5 extends kotlin.jvm.internal.l0 implements Function0<String> {
AnonymousClass5() {
super(0);
}
public final String invoke() {
String AFAdRevenueData = com.appsflyer.internal.AFa1zSDK.AFAdRevenueData(AFe1ySDK.this.component1, AFe1ySDK.this.getCurrencyIso4217Code.component1());
String str = PointerEventHelper.POINTER_TYPE_UNKNOWN;
if (AFAdRevenueData != null && !StringsKt.isBlank(AFAdRevenueData)) {
String obj = StringsKt.trim(AFAdRevenueData).toString();
Companion companion = AFe1ySDK.INSTANCE;
List<String> currencyIso4217Code = Companion.getCurrencyIso4217Code();
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, PointerEventHelper.POINTER_TYPE_UNKNOWN);
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, PointerEventHelper.POINTER_TYPE_UNKNOWN);
if (currencyIso4217Code.contains(lowerCase)) {
r1 r1Var = r1.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, PointerEventHelper.POINTER_TYPE_UNKNOWN);
AFLogger.afWarnLog(format);
AFAdRevenueData = PointerEventHelper.POINTER_TYPE_UNKNOWN;
} else {
AFAdRevenueData = "-" + obj;
}
}
if (AFAdRevenueData != null) {
str = AFAdRevenueData;
}
return StringsKt.trim(str).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\r\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\b\u0010\u0011"}, d2 = {"Lcom/appsflyer/internal/AFe1ySDK$AFa1vSDK;", PointerEventHelper.POINTER_TYPE_UNKNOWN, "<init>", "()V", PointerEventHelper.POINTER_TYPE_UNKNOWN, PointerEventHelper.POINTER_TYPE_UNKNOWN, "component2", "Ljava/util/List;", "getCurrencyIso4217Code", "()Ljava/util/List;", "AFAdRevenueData", "getRevenue", "Ljava/lang/String;", "getMonetizationNetwork", "Lcom/appsflyer/internal/AFd1bSDK;", "component1", "Lcom/appsflyer/internal/AFd1bSDK;", "(Lcom/appsflyer/internal/AFd1bSDK;)V", "getMediationNetwork"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
private Companion() {
}
public static List<String> getCurrencyIso4217Code() {
return AFe1ySDK.component2;
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static void getCurrencyIso4217Code(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(AFc1kSDK aFc1kSDK, AFc1sSDK aFc1sSDK) {
Intrinsics.checkNotNullParameter(aFc1kSDK, PointerEventHelper.POINTER_TYPE_UNKNOWN);
Intrinsics.checkNotNullParameter(aFc1sSDK, PointerEventHelper.POINTER_TYPE_UNKNOWN);
this.getCurrencyIso4217Code = aFc1kSDK;
this.component1 = aFc1sSDK;
this.getRevenue = kotlin.e0.lazy(new AnonymousClass5());
this.getMediationNetwork = kotlin.e0.lazy(new AnonymousClass4());
}
public static final String getRevenue(AFe1ySDK aFe1ySDK) {
return (String) aFe1ySDK.getRevenue.getValue();
}
public final String getCurrencyIso4217Code() {
int i5 = AFa1zSDK.getMediationNetwork[(getRevenue() ? AFe1wSDK.DEFAULT : AFe1wSDK.API).ordinal()];
if (i5 == 1) {
return (String) this.getMediationNetwork.getValue();
}
if (i5 != 2) {
if (i5 == 3) {
return PointerEventHelper.POINTER_TYPE_UNKNOWN;
}
throw new kotlin.i0();
}
AFd1bSDK aFd1bSDK = component1;
String str = aFd1bSDK != null ? aFd1bSDK.getCurrencyIso4217Code : null;
return str == null ? PointerEventHelper.POINTER_TYPE_UNKNOWN : str;
}
public static final String getMediationNetwork(String str, String str2) {
String str3 = str + str2;
Intrinsics.checkNotNullParameter(str3, PointerEventHelper.POINTER_TYPE_UNKNOWN);
MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
byte[] bytes = str3.getBytes(Charsets.UTF_8);
Intrinsics.checkNotNullExpressionValue(bytes, PointerEventHelper.POINTER_TYPE_UNKNOWN);
byte[] digest = messageDigest.digest(bytes);
Intrinsics.checkNotNullExpressionValue(digest, PointerEventHelper.POINTER_TYPE_UNKNOWN);
String encodeToString = Base64.encodeToString(digest, 2);
Intrinsics.checkNotNullExpressionValue(encodeToString, PointerEventHelper.POINTER_TYPE_UNKNOWN);
String lowerCase = encodeToString.toLowerCase(Locale.ROOT);
Intrinsics.checkNotNullExpressionValue(lowerCase, PointerEventHelper.POINTER_TYPE_UNKNOWN);
String substring = new Regex("[^\\w]+").replace(lowerCase, PointerEventHelper.POINTER_TYPE_UNKNOWN).substring(0, 6);
Intrinsics.checkNotNullExpressionValue(substring, PointerEventHelper.POINTER_TYPE_UNKNOWN);
return substring + "-";
}
public final String AFAdRevenueData() {
int i5 = AFa1zSDK.getMediationNetwork[(getRevenue() ? AFe1wSDK.DEFAULT : AFe1wSDK.API).ordinal()];
if (i5 == 1) {
return "appsflyersdk.com";
}
if (i5 != 2) {
if (i5 == 3) {
return PointerEventHelper.POINTER_TYPE_UNKNOWN;
}
throw new kotlin.i0();
}
AFd1bSDK aFd1bSDK = component1;
String str = aFd1bSDK != null ? aFd1bSDK.getRevenue : null;
return str == null ? PointerEventHelper.POINTER_TYPE_UNKNOWN : str;
}
public static boolean getRevenue() {
return component1 == null;
}
public static final void getMediationNetwork(AFd1bSDK aFd1bSDK) {
Companion.getCurrencyIso4217Code(aFd1bSDK);
}
}