正在查看: Zepto v25.1.4 应用的 AFe1jSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Zepto v25.1.4 应用的 AFe1jSDK.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.JvmName;
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;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata
public final class AFe1jSDK {
@Nullable
private static AFe1gSDK AFLogger;
@NotNull
private final AFd1xSDK AFInAppEventType;
@NotNull
private final Lazy registerClient;
@NotNull
public final Lazy valueOf;
@NotNull
private final AFd1rSDK values;
@NotNull
public static final AFa1zSDK AFa1zSDK = new AFa1zSDK(null);
@NotNull
public static String AFKeystoreWrapper = "https://%scdn-%ssettings.%s/android/v1/%s/settings";
@NotNull
public static String AFInAppEventParameterName = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";
@NotNull
private static final List<String> unregisterClient = CollectionsKt.A(new String[]{"googleplay", "playstore", "googleplaystore"});
public class AFa1tSDK {
public static final int[] values;
static {
int[] iArr = new int[AFe1iSDK.values().length];
iArr[AFe1iSDK.DEFAULT.ordinal()] = 1;
iArr[AFe1iSDK.API.ordinal()] = 2;
iArr[AFe1iSDK.RC.ordinal()] = 3;
values = iArr;
}
}
@Metadata
public static final class AFa1zSDK {
private AFa1zSDK() {
}
public AFa1zSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@JvmName
public static void AFInAppEventParameterName(@Nullable AFe1gSDK aFe1gSDK) {
AFe1jSDK.AFLogger = aFe1gSDK;
}
@JvmName
@NotNull
public static List<String> AFKeystoreWrapper() {
return AFe1jSDK.unregisterClient;
}
}
public AFe1jSDK(@NotNull AFd1rSDK aFd1rSDK, @NotNull AFd1xSDK aFd1xSDK) {
Intrinsics.checkNotNullParameter(aFd1rSDK, "");
Intrinsics.checkNotNullParameter(aFd1xSDK, "");
this.values = aFd1rSDK;
this.AFInAppEventType = aFd1xSDK;
this.registerClient = LazyKt.b(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
String AFInAppEventType = AFb1vSDK.AFInAppEventType(AFe1jSDK.this.AFInAppEventType, AFe1jSDK.this.values.values());
if (AFInAppEventType != null && !StringsKt.w(AFInAppEventType)) {
String obj = StringsKt.X(AFInAppEventType).toString();
List<String> AFKeystoreWrapper2 = AFa1zSDK.AFKeystoreWrapper();
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "");
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
if (AFKeystoreWrapper2.contains(lowerCase)) {
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);
AFInAppEventType = "";
} else {
AFInAppEventType = "-".concat(obj);
}
}
return StringsKt.X(AFInAppEventType != null ? AFInAppEventType : "").toString();
}
});
this.valueOf = LazyKt.b(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
String packageName = AFe1jSDK.this.values.AFKeystoreWrapper.AFInAppEventParameterName.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
return AFe1jSDK.AFKeystoreWrapper(packageName, AFe1jSDK.AFInAppEventParameterName(AFe1jSDK.this));
}
});
}
public static final void AFInAppEventParameterName(@Nullable AFe1gSDK aFe1gSDK) {
AFa1zSDK.AFInAppEventParameterName(aFe1gSDK);
}
@JvmName
@NotNull
public final String AFInAppEventType() {
int i = AFa1tSDK.values[(values() ? AFe1iSDK.DEFAULT : AFe1iSDK.API).ordinal()];
if (i == 1) {
return (String) this.valueOf.getValue();
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1gSDK aFe1gSDK = AFLogger;
String str = aFe1gSDK != null ? aFe1gSDK.values : null;
return str == null ? "" : str;
}
public static final String AFInAppEventParameterName(AFe1jSDK aFe1jSDK) {
return (String) aFe1jSDK.registerClient.getValue();
}
public static final String AFKeystoreWrapper(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(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, "");
sb.append(substring);
sb.append('-');
return sb.toString();
}
@JvmName
public static boolean values() {
return AFLogger == null;
}
@JvmName
@NotNull
public final String valueOf() {
int i = AFa1tSDK.values[(values() ? AFe1iSDK.DEFAULT : AFe1iSDK.API).ordinal()];
if (i == 1) {
return "appsflyersdk.com";
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1gSDK aFe1gSDK = AFLogger;
String str = aFe1gSDK != null ? aFe1gSDK.AFKeystoreWrapper : null;
return str == null ? "" : str;
}
}