Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 AFe1jSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.util.Base64;
import com.appsflyer.AFLogger;
import com.inmobi.media.p1;
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(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\t\u0018\u0000 \u00162\u00020\u0001:\u0001\u0016B\u0017\u0012\u0006\u0010\u0012\u001a\u00020\u0002\u0012\u0006\u0010\u0013\u001a\u00020\u0006¢\u0006\u0004\b\u0014\u0010\u0015R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\b\u001a\u00020\u00068\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0007R\u0013\u0010\u000b\u001a\u00020\tX\u0083\u0080\u0002¢\u0006\u0006\n\u0004\b\b\u0010\nR\u0013\u0010\f\u001a\u00020\tX\u0083\u0080\u0002¢\u0006\u0006\n\u0004\b\u000b\u0010\nR\u0014\u0010\u0003\u001a\u00020\r8CX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u000eR\u0011\u0010\u0010\u001a\u00020\t8G¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u000fR\u0011\u0010\u0011\u001a\u00020\t8G¢\u0006\u0006\u001a\u0004\b\u000b\u0010\u000f"}, d2 = {"Lcom/appsflyer/internal/AFe1jSDK;", "", "Lcom/appsflyer/internal/AFd1rSDK;", "values", "Lcom/appsflyer/internal/AFd1rSDK;", "AFInAppEventType", "Lcom/appsflyer/internal/AFd1xSDK;", "Lcom/appsflyer/internal/AFd1xSDK;", "registerClient", "", "Lmyobfuscated/ik2/h;", "valueOf", "AFInAppEventParameterName", "", "()Z", "()Ljava/lang/String;", "AFLogger", "AFKeystoreWrapper", "p0", p1.b, "<init>", "(Lcom/appsflyer/internal/AFd1rSDK;Lcom/appsflyer/internal/AFd1xSDK;)V", "AFa1zSDK"}, k = 1, mv = {1, 6, 0})
public final class AFe1jSDK {
private static AFe1gSDK AFLogger;
@NotNull
private final AFd1xSDK AFInAppEventType;
@NotNull
private final myobfuscated.ik2.h registerClient;
@NotNull
public final myobfuscated.ik2.h 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 = myobfuscated.jk2.o.h("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(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0011\u0010\u0012R \u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0007X\u0087\u0004¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R\u0012\u0010\n\u001a\u00020\u0003X\u0087\u0002¢\u0006\u0006\n\u0004\b\u0006\u0010\tR\u0012\u0010\f\u001a\u00020\u0003X\u0087\u0002¢\u0006\u0006\n\u0004\b\u000b\u0010\tR\u001c\u0010\u000b\u001a\u0004\u0018\u00010\r@\u0007X\u0087\n¢\u0006\f\n\u0004\b\u000e\u0010\u000f\"\u0004\b\u000b\u0010\u0010"}, d2 = {"Lcom/appsflyer/internal/AFe1jSDK$AFa1zSDK;", "", "", "", "unregisterClient", "Ljava/util/List;", "AFKeystoreWrapper", "()Ljava/util/List;", "valueOf", "Ljava/lang/String;", "values", "AFInAppEventParameterName", "AFInAppEventType", "Lcom/appsflyer/internal/AFe1gSDK;", "AFLogger", "Lcom/appsflyer/internal/AFe1gSDK;", "(Lcom/appsflyer/internal/AFe1gSDK;)V", "<init>", "()V"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class AFa1zSDK {
private AFa1zSDK() {
}
public AFa1zSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static void AFInAppEventParameterName(AFe1gSDK aFe1gSDK) {
AFe1jSDK.AFLogger = aFe1gSDK;
}
@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 = kotlin.a.b(new Function0<String>() {
{
super(0);
}
@Override
@NotNull
public final String invoke() {
String AFInAppEventType = AFb1vSDK.AFInAppEventType(AFe1jSDK.this.AFInAppEventType, AFe1jSDK.this.values.values());
if (AFInAppEventType != null && !myobfuscated.mn2.k.o(AFInAppEventType)) {
String obj = kotlin.text.d.h0(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 kotlin.text.d.h0(AFInAppEventType != null ? AFInAppEventType : "").toString();
}
});
this.valueOf = kotlin.a.b(new Function0<String>() {
{
super(0);
}
@Override
@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 String AFInAppEventParameterName(AFe1jSDK aFe1jSDK) {
return (String) aFe1jSDK.registerClient.getValue();
}
public static final void AFInAppEventParameterName(AFe1gSDK aFe1gSDK) {
AFa1zSDK.AFInAppEventParameterName(aFe1gSDK);
}
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();
}
public static boolean values() {
return AFLogger == null;
}
@NotNull
public final String AFInAppEventType() {
int i = AFa1tSDK.values[(values() ? AFe1iSDK.DEFAULT : AFe1iSDK.API).ordinal()];
if (i != 1) {
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1gSDK aFe1gSDK = AFLogger;
String str = aFe1gSDK != null ? aFe1gSDK.values : null;
return str == null ? "" : str;
}
return (String) this.valueOf.getValue();
}
@NotNull
public final String valueOf() {
int i = AFa1tSDK.values[(values() ? AFe1iSDK.DEFAULT : AFe1iSDK.API).ordinal()];
if (i != 1) {
if (i != 2) {
if (i == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFe1gSDK aFe1gSDK = AFLogger;
String str = aFe1gSDK != null ? aFe1gSDK.AFKeystoreWrapper : null;
return str == null ? "" : str;
}
return "appsflyersdk.com";
}
}