正在查看: Chaupal v3.2 应用的 AFc1dSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Chaupal v3.2 应用的 AFc1dSDK.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.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.text.Regex;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class AFc1dSDK {
private static AFc1fSDK afErrorLog;
@NotNull
public final bf.f AFInAppEventType;
@NotNull
private final AFb1dSDK AFLogger;
@NotNull
private final bf.f afRDLog;
@NotNull
private final AFb1gSDK valueOf;
@NotNull
public static final AFa1zSDK values = new AFa1zSDK(0);
@NotNull
public static String AFInAppEventParameterName = "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> afDebugLog = kotlin.collections.o.n(new String[]{"googleplay", "playstore", "googleplaystore"});
@Metadata
public class AFa1vSDK {
public static final int[] values;
static {
int[] iArr = new int[AFc1aSDK.values().length];
iArr[AFc1aSDK.DEFAULT.ordinal()] = 1;
iArr[AFc1aSDK.API.ordinal()] = 2;
iArr[AFc1aSDK.RC.ordinal()] = 3;
values = iArr;
}
}
@Metadata
static final class AFa1wSDK extends Lambda implements kf.a<String> {
AFa1wSDK() {
super(0);
}
public final Object invoke() {
String packageName = AFc1dSDK.this.valueOf.valueOf.AFInAppEventType.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
return AFc1dSDK.values(packageName, AFc1dSDK.AFKeystoreWrapper(AFc1dSDK.this));
}
}
@Metadata
static final class AFa1xSDK extends Lambda implements kf.a<String> {
AFa1xSDK() {
super(0);
}
public final Object invoke() {
String AFInAppEventType = AFa1eSDK.AFInAppEventType(AFc1dSDK.this.AFLogger, AFc1dSDK.this.valueOf.values());
if (!(AFInAppEventType == null || kotlin.text.j.u(AFInAppEventType))) {
String obj = kotlin.text.j.O0(AFInAppEventType).toString();
AFa1zSDK aFa1zSDK = AFc1dSDK.values;
List list = AFc1dSDK.afDebugLog;
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "");
String lowerCase = obj.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "");
if (list.contains(lowerCase)) {
kotlin.jvm.internal.m mVar = kotlin.jvm.internal.m.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);
AFInAppEventType = "";
} else {
AFInAppEventType = "-".concat(obj);
}
}
return kotlin.text.j.O0(AFInAppEventType != null ? AFInAppEventType : "").toString();
}
}
@Metadata
public static final class AFa1zSDK {
private AFa1zSDK() {
}
public AFa1zSDK(byte b7) {
this();
}
}
public AFc1dSDK(@NotNull AFb1gSDK aFb1gSDK, @NotNull AFb1dSDK aFb1dSDK) {
Intrinsics.checkNotNullParameter(aFb1gSDK, "");
Intrinsics.checkNotNullParameter(aFb1dSDK, "");
this.valueOf = aFb1gSDK;
this.AFLogger = aFb1dSDK;
this.afRDLog = kotlin.a.a(new AFa1xSDK());
this.AFInAppEventType = kotlin.a.a(new AFa1wSDK());
}
@NotNull
public final String AFInAppEventParameterName() {
int i7 = AFa1vSDK.values[(AFInAppEventType() ? AFc1aSDK.DEFAULT : AFc1aSDK.API).ordinal()];
if (i7 == 1) {
return "appsflyersdk.com";
}
if (i7 != 2) {
if (i7 == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFc1fSDK aFc1fSDK = afErrorLog;
String str = aFc1fSDK != null ? aFc1fSDK.valueOf : null;
return str == null ? "" : str;
}
@NotNull
public final String valueOf() {
int i7 = AFa1vSDK.values[(AFInAppEventType() ? AFc1aSDK.DEFAULT : AFc1aSDK.API).ordinal()];
if (i7 == 1) {
return (String) this.AFInAppEventType.getValue();
}
if (i7 != 2) {
if (i7 == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFc1fSDK aFc1fSDK = afErrorLog;
String str = aFc1fSDK != null ? aFc1fSDK.AFInAppEventParameterName : null;
return str == null ? "" : str;
}
public static boolean AFInAppEventType() {
return afErrorLog == null;
}
public static final String AFKeystoreWrapper(AFc1dSDK aFc1dSDK) {
return (String) aFc1dSDK.afRDLog.getValue();
}
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.b);
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();
}
public static final void valueOf(AFc1fSDK aFc1fSDK) {
afErrorLog = aFc1fSDK;
}
}