正在查看: Aisle v12.32 应用的 AFe1gSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aisle v12.32 应用的 AFe1gSDK.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.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 org.jetbrains.annotations.NotNull;
@Metadata
public final class AFe1gSDK {
private static AFe1kSDK e;
@NotNull
public final Ja.i AFKeystoreWrapper;
@NotNull
private final Ja.i registerClient;
@NotNull
private final AFd1sSDK valueOf;
@NotNull
private final AFd1qSDK values;
@NotNull
public static final AFa1zSDK AFa1zSDK = new AFa1zSDK(null);
@NotNull
public static String AFInAppEventType = "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> d = kotlin.collections.r.o(new String[]{"googleplay", "playstore", "googleplaystore"});
public class AFa1ySDK {
public static final int[] AFInAppEventType;
static {
int[] iArr = new int[AFe1eSDK.values().length];
iArr[AFe1eSDK.DEFAULT.ordinal()] = 1;
iArr[AFe1eSDK.API.ordinal()] = 2;
iArr[AFe1eSDK.RC.ordinal()] = 3;
AFInAppEventType = iArr;
}
}
@Metadata
public static final class AFa1zSDK {
private AFa1zSDK() {
}
@NotNull
public static List<String> AFInAppEventParameterName() {
return AFe1gSDK.d;
}
public AFa1zSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static void AFInAppEventParameterName(AFe1kSDK aFe1kSDK) {
AFe1gSDK.e = aFe1kSDK;
}
}
public AFe1gSDK(@NotNull AFd1sSDK aFd1sSDK, @NotNull AFd1qSDK aFd1qSDK) {
Intrinsics.checkNotNullParameter(aFd1sSDK, "");
Intrinsics.checkNotNullParameter(aFd1qSDK, "");
this.valueOf = aFd1sSDK;
this.values = aFd1qSDK;
this.registerClient = Ja.j.b(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
String AFKeystoreWrapper = AFb1vSDK.AFKeystoreWrapper(AFe1gSDK.this.values, AFe1gSDK.this.valueOf.d());
if (AFKeystoreWrapper != null && !kotlin.text.h.W(AFKeystoreWrapper)) {
String obj = kotlin.text.h.P0(AFKeystoreWrapper).toString();
List<String> AFInAppEventParameterName2 = AFa1zSDK.AFInAppEventParameterName();
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "");
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
if (AFInAppEventParameterName2.contains(lowerCase)) {
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);
AFKeystoreWrapper = "";
} else {
AFKeystoreWrapper = "-".concat(obj);
}
}
return kotlin.text.h.P0(AFKeystoreWrapper != null ? AFKeystoreWrapper : "").toString();
}
});
this.AFKeystoreWrapper = Ja.j.b(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
String packageName = AFe1gSDK.this.valueOf.valueOf.AFKeystoreWrapper.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
return AFe1gSDK.valueOf(packageName, AFe1gSDK.AFKeystoreWrapper(AFe1gSDK.this));
}
});
}
public static final String AFKeystoreWrapper(AFe1gSDK aFe1gSDK) {
return (String) aFe1gSDK.registerClient.getValue();
}
public static final void valueOf(AFe1kSDK aFe1kSDK) {
AFa1zSDK.AFInAppEventParameterName(aFe1kSDK);
}
@NotNull
public final String AFInAppEventType() {
int i = AFa1ySDK.AFInAppEventType[(valueOf() ? AFe1eSDK.DEFAULT : AFe1eSDK.API).ordinal()];
if (i == 1) {
return (String) this.AFKeystoreWrapper.getValue();
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new Ja.n();
}
AFe1kSDK aFe1kSDK = e;
String str = aFe1kSDK != null ? aFe1kSDK.valueOf : null;
return str == null ? "" : str;
}
@NotNull
public final String AFInAppEventParameterName() {
int i = AFa1ySDK.AFInAppEventType[(valueOf() ? AFe1eSDK.DEFAULT : AFe1eSDK.API).ordinal()];
if (i == 1) {
return "appsflyersdk.com";
}
if (i != 2) {
if (i == 3) {
return "";
}
throw new Ja.n();
}
AFe1kSDK aFe1kSDK = e;
String str = aFe1kSDK != null ? aFe1kSDK.values : null;
return str == null ? "" : str;
}
public static boolean valueOf() {
return e == null;
}
public static final String valueOf(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();
}
}