Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 AFc1dSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.util.Base64;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerProperties;
import com.cloudinject.feature.p015.C0809;
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.u0;
import kotlin.text.Regex;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0016\u0018\u00002\u00020\u0001:\u0001*B\u0017\u0012\u0006\u0010\u0019\u001a\u00020\u0018\u0012\u0006\u0010\u001e\u001a\u00020\u001d¢\u0006\u0004\b(\u0010)J\u0018\u0010\u0005\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0002H\u0002J\u001e\u0010\n\u001a\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\u0002R\u001b\u0010\u0004\u001a\u00020\u00028BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000eR\u001b\u0010\u0011\u001a\u00020\u00028BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u000f\u0010\f\u001a\u0004\b\u0010\u0010\u000eR\u0011\u0010\u0013\u001a\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u000eR\u0014\u0010\u0017\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016R\u0014\u0010\u0019\u001a\u00020\u00188\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0019\u0010\u001aR\u0014\u0010\u001b\u001a\u00020\u00068BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001cR\u0014\u0010\u001e\u001a\u00020\u001d8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001e\u0010\u001fR\u0011\u0010!\u001a\u00020\u00028F¢\u0006\u0006\u001a\u0004\b \u0010\u000eR\u0014\u0010#\u001a\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\"\u0010\u000eR\u0014\u0010'\u001a\u00020$8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b%\u0010&¨\u0006+"}, d2 = {"Lcom/appsflyer/internal/components/network/provider/UrlProvider;", "", "", "pkgName", AppsFlyerProperties.CHANNEL, "generateDynamicPrefix", "", "isSandbox", "isStaging", "cdnToken", "getRemoteControlUrl", "channel$delegate", "Lco/k;", "getChannel", "()Ljava/lang/String;", "dynamicPrefix$delegate", "getDynamicPrefix", "dynamicPrefix", "getHost", C0809.f327, "Lcom/appsflyer/internal/components/network/provider/meta/HostMeta;", "getHostMeta", "()Lcom/appsflyer/internal/components/network/provider/meta/HostMeta;", "hostMeta", "Lcom/appsflyer/internal/components/IdProvider;", "idProvider", "Lcom/appsflyer/internal/components/IdProvider;", "isDefaultHost", "()Z", "Lcom/appsflyer/internal/components/AppsFlyerPreferences;", "preferences", "Lcom/appsflyer/internal/components/AppsFlyerPreferences;", "getPrefix", "prefix", "getPrefixForCdn", "prefixForCdn", "Lcom/appsflyer/internal/components/network/provider/meta/SetHostMethod;", "getSetHostMethod", "()Lcom/appsflyer/internal/components/network/provider/meta/SetHostMethod;", "setHostMethod", "<init>", "(Lcom/appsflyer/internal/components/IdProvider;Lcom/appsflyer/internal/components/AppsFlyerPreferences;)V", "Companion", "SDK_prodRelease"}, k = 1, mv = {1, 6, 0})
public final class AFc1dSDK {
@NotNull
private static final List<String> afDebugLog;
private static AFc1fSDK afErrorLog;
@NotNull
public final co.k AFInAppEventType;
@NotNull
private final AFb1dSDK AFLogger;
@NotNull
private final co.k 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";
@Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
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(d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "invoke", "()Ljava/lang/String;", "<anonymous>"}, k = 3, mv = {1, 6, 0})
static final class AFa1wSDK extends kotlin.jvm.internal.u implements qo.a<String> {
AFa1wSDK() {
super(0);
}
@Override
public final String invoke() {
return AFc1dSDK.values(AFc1dSDK.this.valueOf.valueOf.AFInAppEventType.getPackageName(), AFc1dSDK.AFKeystoreWrapper(AFc1dSDK.this));
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "invoke", "()Ljava/lang/String;", "<anonymous>"}, k = 3, mv = {1, 6, 0})
static final class AFa1xSDK extends kotlin.jvm.internal.u implements qo.a<String> {
AFa1xSDK() {
super(0);
}
@Override
public final String invoke() {
CharSequence s15;
boolean I;
CharSequence s16;
String AFInAppEventType = AFa1eSDK.AFInAppEventType(AFc1dSDK.this.AFLogger, AFc1dSDK.this.valueOf.values());
String str = "";
if (AFInAppEventType != null) {
I = kotlin.text.v.I(AFInAppEventType);
if (!I) {
s16 = kotlin.text.w.s1(AFInAppEventType);
String obj = s16.toString();
if (!AFc1dSDK.afDebugLog.contains(obj.toLowerCase(Locale.getDefault()))) {
AFInAppEventType = "-".concat(obj);
} else {
u0 u0Var = u0.f85785a;
AFLogger.afWarnLog(String.format("AF detected using redundant Google-Play channel for attribution - %s. Using without channel postfix.", Arrays.copyOf(new Object[]{obj}, 1)));
AFInAppEventType = "";
}
}
}
if (AFInAppEventType != null) {
str = AFInAppEventType;
}
s15 = kotlin.text.w.s1(str);
return s15.toString();
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\"\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00048\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u0006\u0010\u0002\u001a\u0004\b\u0007\u0010\bR$\u0010\t\u001a\u00020\u00058\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\n\u0010\u0002\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000eR$\u0010\u000f\u001a\u00020\u00058\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\u0010\u0010\u0002\u001a\u0004\b\u0011\u0010\f\"\u0004\b\u0012\u0010\u000eR&\u0010\u0013\u001a\u0004\u0018\u00010\u00148\u0006@\u0006X\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\u0015\u0010\u0002\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u0018\u0010\u0019¨\u0006\u001a"}, d2 = {"Lcom/appsflyer/internal/components/network/provider/UrlProvider$Companion;", "", "()V", "IGNORABLE_CHANNELS", "", "", "getIGNORABLE_CHANNELS$annotations", "getIGNORABLE_CHANNELS", "()Ljava/util/List;", "RC_PROD_URL", "getRC_PROD_URL$annotations", "getRC_PROD_URL", "()Ljava/lang/String;", "setRC_PROD_URL", "(Ljava/lang/String;)V", "RC_SANDBOX_URL", "getRC_SANDBOX_URL$annotations", "getRC_SANDBOX_URL", "setRC_SANDBOX_URL", "clientHostConfig", "Lcom/appsflyer/internal/components/network/provider/HostConfig;", "getClientHostConfig$annotations", "getClientHostConfig", "()Lcom/appsflyer/internal/components/network/provider/HostConfig;", "setClientHostConfig", "(Lcom/appsflyer/internal/components/network/provider/HostConfig;)V", "SDK_prodRelease"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class AFa1zSDK {
private AFa1zSDK() {
}
public AFa1zSDK(byte b15) {
this();
}
}
static {
List<String> n15;
n15 = p029do.u.n("googleplay", "playstore", "googleplaystore");
afDebugLog = n15;
}
public AFc1dSDK(@NotNull AFb1gSDK aFb1gSDK, @NotNull AFb1dSDK aFb1dSDK) {
co.k b15;
co.k b16;
this.valueOf = aFb1gSDK;
this.AFLogger = aFb1dSDK;
b15 = co.m.b(new AFa1xSDK());
this.afRDLog = b15;
b16 = co.m.b(new AFa1wSDK());
this.AFInAppEventType = b16;
}
public static boolean AFInAppEventType() {
return afErrorLog == null;
}
public static final void valueOf(AFc1fSDK aFc1fSDK) {
afErrorLog = aFc1fSDK;
}
@NotNull
public final String AFInAppEventParameterName() {
AFc1aSDK aFc1aSDK;
String str;
if (AFInAppEventType()) {
aFc1aSDK = AFc1aSDK.DEFAULT;
} else {
aFc1aSDK = AFc1aSDK.API;
}
int i15 = AFa1vSDK.values[aFc1aSDK.ordinal()];
if (i15 != 1) {
if (i15 != 2) {
if (i15 == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFc1fSDK aFc1fSDK = afErrorLog;
if (aFc1fSDK != null) {
str = aFc1fSDK.valueOf;
} else {
str = null;
}
if (str == null) {
return "";
}
return str;
}
return "appsflyersdk.com";
}
public static final String AFKeystoreWrapper(AFc1dSDK aFc1dSDK) {
return (String) aFc1dSDK.afRDLog.getValue();
}
public static final String values(String str, String str2) {
StringBuilder sb5 = new StringBuilder();
StringBuilder sb6 = new StringBuilder();
sb6.append(str);
sb6.append(str2);
sb5.append(new Regex("[^\\w]+").replace(Base64.encodeToString(MessageDigest.getInstance("SHA-256").digest(sb6.toString().getBytes(kotlin.text.b.UTF_8)), 2).toLowerCase(Locale.ROOT), "").substring(0, 6));
sb5.append('-');
return sb5.toString();
}
@NotNull
public final String valueOf() {
AFc1aSDK aFc1aSDK;
if (AFInAppEventType()) {
aFc1aSDK = AFc1aSDK.DEFAULT;
} else {
aFc1aSDK = AFc1aSDK.API;
}
int i15 = AFa1vSDK.values[aFc1aSDK.ordinal()];
if (i15 == 1) {
return (String) this.AFInAppEventType.getValue();
}
if (i15 != 2) {
if (i15 == 3) {
return "";
}
throw new NoWhenBranchMatchedException();
}
AFc1fSDK aFc1fSDK = afErrorLog;
String str = aFc1fSDK != null ? aFc1fSDK.AFInAppEventParameterName : null;
return str == null ? "" : str;
}
}