MD5 校验值:51aae3247d6bd20bca268c4c9a4dd21c
AFd1qSDK.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.collections.AbstractC0827p; import kotlin.jvm.functions.Function0; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.y; import kotlin.text.Regex; import org.jetbrains.annotations.NotNull; public class AFd1qSDK { private static AFd1pSDK afDebugLog; @NotNull private final AFb1aSDK AFInAppEventParameterName; @NotNull private final e4.h afInfoLog; @NotNull public final e4.h valueOf; @NotNull private final AFc1vSDK values; @NotNull public static final AFa1ySDK AFa1ySDK = new AFa1ySDK(null); @NotNull public static String AFInAppEventType = "https://%scdn-%ssettings.%s/android/v1/%s/settings"; @NotNull public static String AFKeystoreWrapper = "https://%scdn-%stestsettings.%s/android/v1/%s/settings"; @NotNull private static final List<String> afRDLog = AbstractC0827p.i("googleplay", "playstore", "googleplaystore"); static final class AnonymousClass1 extends kotlin.jvm.internal.l implements Function0<String> { AnonymousClass1() { super(0); } @Override @NotNull public final String invoke() { String values = AFa1dSDK.values(AFd1qSDK.this.AFInAppEventParameterName, AFd1qSDK.this.values.AFInAppEventType()); if (values != null && !kotlin.text.g.F(values)) { String obj = kotlin.text.g.e0(values).toString(); List<String> AFKeystoreWrapper = AFa1ySDK.AFKeystoreWrapper(); Locale locale = Locale.getDefault(); Intrinsics.checkNotNullExpressionValue(locale, ""); String lowerCase = obj.toLowerCase(locale); Intrinsics.checkNotNullExpressionValue(lowerCase, ""); if (AFKeystoreWrapper.contains(lowerCase)) { y yVar = y.f15635a; 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); values = ""; } else { values = "-".concat(obj); } } return kotlin.text.g.e0(values != null ? values : "").toString(); } } static final class AnonymousClass4 extends kotlin.jvm.internal.l implements Function0<String> { AnonymousClass4() { super(0); } @Override @NotNull public final String invoke() { String packageName = AFd1qSDK.this.values.AFInAppEventParameterName.AFInAppEventType.getPackageName(); Intrinsics.checkNotNullExpressionValue(packageName, ""); return AFd1qSDK.values(packageName, AFd1qSDK.AFInAppEventType(AFd1qSDK.this)); } } public class AFa1xSDK { public static final int[] values; static { int[] iArr = new int[AFd1oSDK.values().length]; iArr[AFd1oSDK.DEFAULT.ordinal()] = 1; iArr[AFd1oSDK.API.ordinal()] = 2; iArr[AFd1oSDK.RC.ordinal()] = 3; values = iArr; } } public static final class AFa1ySDK { private AFa1ySDK() { } @NotNull public static List<String> AFKeystoreWrapper() { return AFd1qSDK.afRDLog; } public static void values(AFd1pSDK aFd1pSDK) { AFd1qSDK.afDebugLog = aFd1pSDK; } public AFa1ySDK(DefaultConstructorMarker defaultConstructorMarker) { this(); } } public AFd1qSDK(@NotNull AFc1vSDK aFc1vSDK, @NotNull AFb1aSDK aFb1aSDK) { Intrinsics.checkNotNullParameter(aFc1vSDK, ""); Intrinsics.checkNotNullParameter(aFb1aSDK, ""); this.values = aFc1vSDK; this.AFInAppEventParameterName = aFb1aSDK; this.afInfoLog = e4.i.a(new AnonymousClass1()); this.valueOf = e4.i.a(new AnonymousClass4()); } public static final String AFInAppEventType(AFd1qSDK aFd1qSDK) { return (String) aFd1qSDK.afInfoLog.getValue(); } @NotNull public final String values() { int i5 = AFa1xSDK.values[(AFInAppEventType() ? AFd1oSDK.DEFAULT : AFd1oSDK.API).ordinal()]; if (i5 == 1) { return (String) this.valueOf.getValue(); } if (i5 != 2) { if (i5 == 3) { return ""; } throw new e4.l(); } AFd1pSDK aFd1pSDK = afDebugLog; String str = aFd1pSDK != null ? aFd1pSDK.values : null; return str == null ? "" : str; } public static boolean AFInAppEventType() { return afDebugLog == null; } public static final String values(String str, String str2) { StringBuilder sb = new StringBuilder(); StringBuilder sb2 = new StringBuilder(); sb2.append(str); sb2.append(str2); String obj = sb2.toString(); Intrinsics.checkNotNullParameter(obj, ""); MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); byte[] bytes = obj.getBytes(kotlin.text.b.f15693b); 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, ""); sb.append(substring); sb.append('-'); return sb.toString(); } @NotNull public final String valueOf() { int i5 = AFa1xSDK.values[(AFInAppEventType() ? AFd1oSDK.DEFAULT : AFd1oSDK.API).ordinal()]; if (i5 == 1) { return "appsflyersdk.com"; } if (i5 != 2) { if (i5 == 3) { return ""; } throw new e4.l(); } AFd1pSDK aFd1pSDK = afDebugLog; String str = aFd1pSDK != null ? aFd1pSDK.valueOf : null; return str == null ? "" : str; } public static final void valueOf(AFd1pSDK aFd1pSDK) { AFa1ySDK.values(aFd1pSDK); } }