afun 2020238 v1.0版本的 MD5 值为:0e5438925c609ea263d060e5259b230d
以下内容为反编译后的 AFi1zSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.net.Uri;
import com.appsflyer.AFLogger;
import kotlin.Metadata;
import kotlin.jvm.JvmField;
import kotlin.jvm.JvmOverloads;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsJVMKt;
import kotlin.text.StringsKt__StringsKt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u0000 \u00172\u00020\u0001:\u0001\u0017B\u001b\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u000e\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0012¢\u0006\u0004\b\u0015\u0010\u0016J#\u0010\u0005\u001a\u00020\u00022\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002H\u0007¢\u0006\u0004\b\u0005\u0010\u0006J\u0017\u0010\u0005\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0007H\u0007¢\u0006\u0004\b\u0005\u0010\bJ\u001b\u0010\u0005\u001a\u00020\u0002*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\tH\u0002¢\u0006\u0004\b\u0005\u0010\nJ\u0013\u0010\u0005\u001a\u00020\u0002*\u00020\u0002H\u0002¢\u0006\u0004\b\u0005\u0010\u000bJ'\u0010\u0005\u001a\u00020\f*\u00020\f2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002H\u0002¢\u0006\u0004\b\u0005\u0010\rR\u0014\u0010\u0011\u001a\u00020\u000e8\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0005\u001a\u00020\u00128\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014"}, d2 = {"Lcom/appsflyer/internal/AFi1zSDK;", "", "", "p0", "p1", "AFInAppEventParameterName", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "Lcom/appsflyer/internal/AFg1jSDK;", "(Lcom/appsflyer/internal/AFg1jSDK;)Ljava/lang/String;", "", "(Ljava/lang/String;Z)Ljava/lang/String;", "(Ljava/lang/String;)Ljava/lang/String;", "Landroid/net/Uri$Builder;", "(Landroid/net/Uri$Builder;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;", "Lcom/appsflyer/internal/AFd1vSDK;", "AFKeystoreWrapper", "Lcom/appsflyer/internal/AFd1vSDK;", "values", "Lcom/appsflyer/internal/AFh1dSDK;", "AFInAppEventType", "Lcom/appsflyer/internal/AFh1dSDK;", "<init>", "(Lcom/appsflyer/internal/AFd1vSDK;Lcom/appsflyer/internal/AFh1dSDK;)V", "AFa1tSDK"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class AFi1zSDK {
@JvmField
@NotNull
public static final String AFInAppEventParameterName;
@JvmField
@NotNull
public static final String AFLogger;
@NotNull
public static final AFa1tSDK AFa1tSDK = new AFa1tSDK(null);
@JvmField
@NotNull
public static String afDebugLog;
@NotNull
private static final String afErrorLog;
@JvmField
@NotNull
public static final String afInfoLog;
@JvmField
@NotNull
public static final String afRDLog;
@JvmField
@NotNull
public static final String valueOf;
@JvmField
@NotNull
public static final String values;
@NotNull
public final AFh1dSDK AFInAppEventType;
@NotNull
public final AFd1vSDK AFKeystoreWrapper;
@JvmOverloads
public AFi1zSDK(@NotNull AFd1vSDK aFd1vSDK) {
this(aFd1vSDK, null, 2, null);
Intrinsics.checkNotNullParameter(aFd1vSDK, "");
}
@JvmOverloads
private AFi1zSDK(@NotNull AFd1vSDK aFd1vSDK, @NotNull AFh1dSDK aFh1dSDK) {
Intrinsics.checkNotNullParameter(aFd1vSDK, "");
Intrinsics.checkNotNullParameter(aFh1dSDK, "");
this.AFKeystoreWrapper = aFd1vSDK;
this.AFInAppEventType = aFh1dSDK;
}
public AFi1zSDK(AFd1vSDK aFd1vSDK, AFh1dSDK aFh1dSDK, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(aFd1vSDK, (i & 2) != 0 ? new AFh1bSDK() : aFh1dSDK);
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\r\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\u0006\u001a\u00020\u00028\u0006X\u0087D¢\u0006\u0006\n\u0004\b\u0006\u0010\u0004R\u0014\u0010\b\u001a\u00020\u00028\u0006X\u0087D¢\u0006\u0006\n\u0004\b\u0007\u0010\u0004R\u0014\u0010\n\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u0004R\u0014\u0010\u0007\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\u0004R\u0014\u0010\u0003\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\f\u0010\u0004R\u0014\u0010\t\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0016\u0010\f\u001a\u00020\u00028\u0006@\u0006X\u0087\u000e¢\u0006\u0006\n\u0004\b\r\u0010\u0004"}, d2 = {"Lcom/appsflyer/internal/AFi1zSDK$AFa1tSDK;", "", "", "afErrorLog", "Ljava/lang/String;", "values", "valueOf", "AFInAppEventParameterName", "AFKeystoreWrapper", "AFLogger", "AFInAppEventType", "afRDLog", "afInfoLog", "afDebugLog", "<init>", "()V"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class AFa1tSDK {
public AFa1tSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private AFa1tSDK() {
}
}
static {
StringBuilder sb = new StringBuilder();
String str = AFb1tSDK.values;
sb.append(str);
sb.append("/androidevent?app_id=");
String obj = sb.toString();
afErrorLog = obj;
StringBuilder sb2 = new StringBuilder("https://%sattr.%s/api/v");
sb2.append(obj);
values = sb2.toString();
AFInAppEventParameterName = "https://%sadrevenue.%s/api/v2/generic/v6.12.5/android?app_id=";
valueOf = "https://%sadrevenue.%s/api/v2/log/AdImpression/v6.12.5/android?app_id=";
StringBuilder sb3 = new StringBuilder("https://%sconversions.%s/api/v");
sb3.append(obj);
AFLogger = sb3.toString();
StringBuilder sb4 = new StringBuilder("https://%slaunches.%s/api/v");
sb4.append(obj);
afInfoLog = sb4.toString();
StringBuilder sb5 = new StringBuilder("https://%sinapps.%s/api/v");
sb5.append(obj);
afRDLog = sb5.toString();
StringBuilder sb6 = new StringBuilder("https://%svalidate.%s/api/v");
sb6.append(str);
sb6.append("/androidevent?buildnumber=6.12.5&app_id=");
afDebugLog = sb6.toString();
}
@NotNull
public final String AFInAppEventParameterName(@Nullable String str, @Nullable String str2) {
String packageName = this.AFKeystoreWrapper.AFKeystoreWrapper.AFInAppEventType.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
String AFKeystoreWrapper = this.AFKeystoreWrapper.AFKeystoreWrapper();
if (!(AFKeystoreWrapper == null || StringsKt__StringsJVMKt.isBlank(AFKeystoreWrapper))) {
AFKeystoreWrapper = "-".concat(String.valueOf(StringsKt__StringsKt.trim((CharSequence) AFKeystoreWrapper).toString()));
}
if (AFKeystoreWrapper == null) {
AFKeystoreWrapper = "";
}
String obj = StringsKt__StringsKt.trim((CharSequence) AFKeystoreWrapper).toString();
Uri.Builder buildUpon = Uri.parse(this.AFInAppEventType.AFInAppEventParameterName("https://%sdlsdk.%s/v1.0/android/")).buildUpon();
StringBuilder sb = new StringBuilder();
sb.append(packageName);
sb.append(obj);
Uri.Builder appendPath = buildUpon.appendPath(sb.toString());
Intrinsics.checkNotNullExpressionValue(appendPath, "");
String obj2 = AFInAppEventParameterName(appendPath, str, str2).appendQueryParameter("sdk_version", AFb1tSDK.values).build().toString();
Intrinsics.checkNotNullExpressionValue(obj2, "");
return obj2;
}
private static Uri.Builder AFInAppEventParameterName(Uri.Builder builder, String str, String str2) {
if (str == null || str2 == null) {
String str3 = str == null ? "devKey" : "timestamp";
StringBuilder sb = new StringBuilder();
sb.append(str3);
sb.append(" is null at attempt to generate ddl event url");
String obj = sb.toString();
StringBuilder sb2 = new StringBuilder();
sb2.append(str3);
sb2.append(" is null");
AFLogger.afErrorLog(obj, new IllegalStateException(sb2.toString()));
return builder;
}
StringBuilder sb3 = new StringBuilder();
sb3.append(str2);
sb3.append(str);
builder.appendQueryParameter("af_sig", AFb1jSDK.valueOf(sb3.toString(), str));
return builder;
}
@NotNull
public final String AFInAppEventParameterName(@NotNull AFg1jSDK aFg1jSDK) {
Intrinsics.checkNotNullParameter(aFg1jSDK, "");
if (!(aFg1jSDK instanceof AFg1mSDK)) {
if (!(aFg1jSDK instanceof AFg1lSDK)) {
throw new UnsupportedOperationException();
}
String AFInAppEventParameterName2 = this.AFInAppEventType.AFInAppEventParameterName(afDebugLog);
StringBuilder sb = new StringBuilder();
sb.append(AFInAppEventParameterName2);
sb.append(this.AFKeystoreWrapper.AFKeystoreWrapper.AFInAppEventType.getPackageName());
return sb.toString();
}
return this.AFInAppEventType.AFInAppEventParameterName("https://%ssdk-services.%s/validate-android-signature");
}
public static String AFInAppEventParameterName(String str, boolean z) {
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(!z ? "&buildnumber=6.12.5" : "");
return sb.toString();
}
public final String AFInAppEventParameterName(String str) {
StringBuilder sb = new StringBuilder();
sb.append(str);
String AFKeystoreWrapper = this.AFKeystoreWrapper.AFKeystoreWrapper();
String concat = AFKeystoreWrapper != null ? "&channel=".concat(String.valueOf(AFKeystoreWrapper)) : null;
if (concat == null) {
concat = "";
}
sb.append(concat);
return sb.toString();
}
}