正在查看: Crédito Express v1.0.3 应用的 AFc1cSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crédito Express v1.0.3 应用的 AFc1cSDK.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.NoWhenBranchMatchedException;
import kotlin.collections.p;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.l;
import kotlin.text.Regex;
import kotlin.text.StringsKt__StringsKt;
import okhttp3.HttpUrl;
public class AFc1cSDK {
private static final List<String> afDebugLog;
private static AFc1eSDK afRDLog;
private final AFb1fSDK AFInAppEventParameterName;
public final b6.f AFInAppEventType;
private final AFb1gSDK AFKeystoreWrapper;
private final b6.f afInfoLog;
public static final AFa1ySDK AFa1ySDK = new AFa1ySDK(null);
public static String valueOf = "https://%scdn-%ssettings.%s/android/v1/%s/settings";
public static String values = "https://%scdn-%stestsettings.%s/android/v1/%s/settings";
public class AFa1xSDK {
public static final int[] AFInAppEventType;
static {
int[] iArr = new int[AFd1ySDK.values().length];
iArr[AFd1ySDK.DEFAULT.ordinal()] = 1;
iArr[AFd1ySDK.API.ordinal()] = 2;
iArr[AFd1ySDK.RC.ordinal()] = 3;
AFInAppEventType = iArr;
}
}
public static final class AFa1ySDK {
private AFa1ySDK() {
}
public AFa1ySDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static List<String> AFInAppEventType() {
return AFc1cSDK.afDebugLog;
}
public static void values(AFc1eSDK aFc1eSDK) {
AFc1cSDK.afRDLog = aFc1eSDK;
}
}
static {
List<String> m7;
m7 = p.m("googleplay", "playstore", "googleplaystore");
afDebugLog = m7;
}
public AFc1cSDK(AFb1fSDK aFb1fSDK, AFb1gSDK aFb1gSDK) {
b6.f a7;
b6.f a8;
kotlin.jvm.internal.h.f(aFb1fSDK, "");
kotlin.jvm.internal.h.f(aFb1gSDK, "");
this.AFInAppEventParameterName = aFb1fSDK;
this.AFKeystoreWrapper = aFb1gSDK;
a7 = kotlin.a.a(new Function0<String>() {
{
super(0);
}
@Override
public final String invoke() {
CharSequence G0;
boolean s7;
CharSequence G02;
String AFKeystoreWrapper = AFb1zSDK.AFKeystoreWrapper(AFc1cSDK.this.AFKeystoreWrapper, AFc1cSDK.this.AFInAppEventParameterName.values());
String str = HttpUrl.FRAGMENT_ENCODE_SET;
if (AFKeystoreWrapper != null) {
s7 = kotlin.text.p.s(AFKeystoreWrapper);
if (!s7) {
G02 = StringsKt__StringsKt.G0(AFKeystoreWrapper);
String obj = G02.toString();
List<String> AFInAppEventType = AFa1ySDK.AFInAppEventType();
Locale locale = Locale.getDefault();
kotlin.jvm.internal.h.e(locale, "");
String lowerCase = obj.toLowerCase(locale);
kotlin.jvm.internal.h.e(lowerCase, "");
if (AFInAppEventType.contains(lowerCase)) {
l lVar = l.f8348a;
String format = String.format("AF detected using redundant Google-Play channel for attribution - %s. Using without channel postfix.", Arrays.copyOf(new Object[]{obj}, 1));
kotlin.jvm.internal.h.e(format, "");
AFLogger.afWarnLog(format);
AFKeystoreWrapper = HttpUrl.FRAGMENT_ENCODE_SET;
} else {
AFKeystoreWrapper = "-".concat(obj);
}
}
}
if (AFKeystoreWrapper != null) {
str = AFKeystoreWrapper;
}
G0 = StringsKt__StringsKt.G0(str);
return G0.toString();
}
});
this.afInfoLog = a7;
a8 = kotlin.a.a(new Function0<String>() {
{
super(0);
}
@Override
public final String invoke() {
String packageName = AFc1cSDK.this.AFInAppEventParameterName.valueOf.values.getPackageName();
kotlin.jvm.internal.h.e(packageName, "");
return AFc1cSDK.valueOf(packageName, AFc1cSDK.valueOf(AFc1cSDK.this));
}
});
this.AFInAppEventType = a8;
}
public static boolean AFInAppEventType() {
return afRDLog == null;
}
public static final String valueOf(AFc1cSDK aFc1cSDK) {
return (String) aFc1cSDK.afInfoLog.getValue();
}
public final String AFInAppEventParameterName() {
int i7 = AFa1xSDK.AFInAppEventType[(AFInAppEventType() ? AFd1ySDK.DEFAULT : AFd1ySDK.API).ordinal()];
if (i7 == 1) {
return (String) this.AFInAppEventType.getValue();
}
if (i7 != 2) {
if (i7 == 3) {
return HttpUrl.FRAGMENT_ENCODE_SET;
}
throw new NoWhenBranchMatchedException();
}
AFc1eSDK aFc1eSDK = afRDLog;
String str = aFc1eSDK != null ? aFc1eSDK.valueOf : null;
return str == null ? HttpUrl.FRAGMENT_ENCODE_SET : str;
}
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();
kotlin.jvm.internal.h.f(obj, "");
MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
byte[] bytes = obj.getBytes(kotlin.text.d.f8377b);
kotlin.jvm.internal.h.e(bytes, "");
byte[] digest = messageDigest.digest(bytes);
kotlin.jvm.internal.h.e(digest, "");
String encodeToString = Base64.encodeToString(digest, 2);
kotlin.jvm.internal.h.e(encodeToString, "");
String lowerCase = encodeToString.toLowerCase(Locale.ROOT);
kotlin.jvm.internal.h.e(lowerCase, "");
String substring = new Regex("[^\\w]+").c(lowerCase, HttpUrl.FRAGMENT_ENCODE_SET).substring(0, 6);
kotlin.jvm.internal.h.e(substring, "");
sb.append(substring);
sb.append('-');
return sb.toString();
}
public final String AFKeystoreWrapper() {
int i7 = AFa1xSDK.AFInAppEventType[(AFInAppEventType() ? AFd1ySDK.DEFAULT : AFd1ySDK.API).ordinal()];
if (i7 == 1) {
return "appsflyersdk.com";
}
if (i7 != 2) {
if (i7 == 3) {
return HttpUrl.FRAGMENT_ENCODE_SET;
}
throw new NoWhenBranchMatchedException();
}
AFc1eSDK aFc1eSDK = afRDLog;
String str = aFc1eSDK != null ? aFc1eSDK.AFKeystoreWrapper : null;
return str == null ? HttpUrl.FRAGMENT_ENCODE_SET : str;
}
public static final void values(AFc1eSDK aFc1eSDK) {
AFa1ySDK.values(aFc1eSDK);
}
}