正在查看: CreditNow v1.0.2 应用的 AFe1gSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CreditNow v1.0.2 应用的 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.NoWhenBranchMatchedException;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
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 c22 AFKeystoreWrapper;
@NotNull
private final c22 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 = q70.m(new String[]{"googleplay", "playstore", "googleplaystore"});
@Metadata
public static final class AnonymousClass3 extends o02 implements Function0<String> {
public AnonymousClass3() {
super(0);
}
@NotNull
public final String invoke() {
String AFKeystoreWrapper = AFb1vSDK.AFKeystoreWrapper(AFe1gSDK.this.values, AFe1gSDK.this.valueOf.d());
if (AFKeystoreWrapper != null && !i84.q(AFKeystoreWrapper)) {
String obj = i84.n0(AFKeystoreWrapper).toString();
List<String> AFInAppEventParameterName = AFa1zSDK.AFInAppEventParameterName();
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "");
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
if (AFInAppEventParameterName.contains(lowerCase)) {
w74 w74Var = w74.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);
AFKeystoreWrapper = "";
} else {
AFKeystoreWrapper = "-".concat(obj);
}
}
return i84.n0(AFKeystoreWrapper != null ? AFKeystoreWrapper : "").toString();
}
}
@Metadata
public static final class AnonymousClass5 extends o02 implements Function0<String> {
public AnonymousClass5() {
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 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() {
}
public AFa1zSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@NotNull
public static List<String> AFInAppEventParameterName() {
return AFe1gSDK.d;
}
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 = k22.b(new AnonymousClass3());
this.AFKeystoreWrapper = k22.b(new AnonymousClass5());
}
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 NoWhenBranchMatchedException();
}
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 NoWhenBranchMatchedException();
}
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();
}
}