Fortune Cow 6 v1.0.1版本的 MD5 值为:cc5dbc2a635a6fa7c66a7991d91041f6
以下内容为反编译后的 AFg1kSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.net.Uri;
import com.appsflyer.AFLogger;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u0000 \u00182\u00020\u0001:\u0001\u0018B\u001b\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0011\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0014¢\u0006\u0004\b\u0016\u0010\u0017J#\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\b\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0007H\u0007¢\u0006\u0004\b\b\u0010\tJ\u001b\u0010\u000b\u001a\u00020\u0002*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\nH\u0002¢\u0006\u0004\b\u000b\u0010\fJ\u0013\u0010\u000b\u001a\u00020\u0002*\u00020\u0002H\u0002¢\u0006\u0004\b\u000b\u0010\rJ'\u0010\u000f\u001a\u00020\u000e*\u00020\u000e2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002H\u0002¢\u0006\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0013\u001a\u00020\u00118\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0012R\u0014\u0010\b\u001a\u00020\u00148\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0015"}, d2 = {"Lcom/appsflyer/internal/AFg1kSDK;", "", "", "p0", "p1", "AFInAppEventType", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "Lcom/appsflyer/internal/AFf1hSDK;", "AFInAppEventParameterName", "(Lcom/appsflyer/internal/AFf1hSDK;)Ljava/lang/String;", "", "values", "(Ljava/lang/String;Z)Ljava/lang/String;", "(Ljava/lang/String;)Ljava/lang/String;", "Landroid/net/Uri$Builder;", "AFKeystoreWrapper", "(Landroid/net/Uri$Builder;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;", "Lcom/appsflyer/internal/AFc1tSDK;", "Lcom/appsflyer/internal/AFc1tSDK;", "valueOf", "Lcom/appsflyer/internal/AFg1eSDK;", "Lcom/appsflyer/internal/AFg1eSDK;", "<init>", "(Lcom/appsflyer/internal/AFc1tSDK;Lcom/appsflyer/internal/AFg1eSDK;)V", "AFa1wSDK"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class AFg1kSDK {
public static final String AFInAppEventParameterName;
public static final String AFKeystoreWrapper;
public static final String AFLogger;
public static final AFa1wSDK AFa1wSDK = new AFa1wSDK(null);
public static final String afDebugLog;
public static final String afErrorLog;
private static final String afInfoLog;
public static String afRDLog;
public static final String values;
public final AFc1tSDK AFInAppEventType;
public final AFg1eSDK valueOf;
public AFg1kSDK(AFc1tSDK aFc1tSDK) {
this(aFc1tSDK, null, 2, null);
Intrinsics.checkNotNullParameter(aFc1tSDK, "");
}
private AFg1kSDK(AFc1tSDK aFc1tSDK, AFg1eSDK aFg1eSDK) {
Intrinsics.checkNotNullParameter(aFc1tSDK, "");
Intrinsics.checkNotNullParameter(aFg1eSDK, "");
this.AFInAppEventType = aFc1tSDK;
this.valueOf = aFg1eSDK;
}
public AFg1kSDK(AFc1tSDK aFc1tSDK, AFg1gSDK aFg1gSDK, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(aFc1tSDK, (i & 2) != 0 ? new AFg1gSDK() : aFg1gSDK);
}
@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\u0007\u001a\u00020\u00028\u0006X\u0087D¢\u0006\u0006\n\u0004\b\u0006\u0010\u0004R\u0014\u0010\u0006\u001a\u00020\u00028\u0006X\u0087D¢\u0006\u0006\n\u0004\b\u0007\u0010\u0004R\u0014\u0010\t\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\b\u0010\u0004R\u0014\u0010\u000b\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u0004R\u0014\u0010\b\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\f\u0010\u0004R\u0014\u0010\u0003\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0016\u0010\r\u001a\u00020\u00028\u0006@\u0006X\u0087\u000e¢\u0006\u0006\n\u0004\b\r\u0010\u0004"}, d2 = {"Lcom/appsflyer/internal/AFg1kSDK$AFa1wSDK;", "", "", "afInfoLog", "Ljava/lang/String;", "AFKeystoreWrapper", "AFInAppEventParameterName", "values", "afErrorLog", "valueOf", "AFLogger", "AFInAppEventType", "afDebugLog", "afRDLog", "<init>", "()V"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class AFa1wSDK {
public AFa1wSDK(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private AFa1wSDK() {
}
}
static {
StringBuilder sb = new StringBuilder();
sb.append(AFa1cSDK.AFInAppEventType);
sb.append("/androidevent?app_id=");
String obj = sb.toString();
afInfoLog = obj;
StringBuilder sb2 = new StringBuilder("https://%sattr.%s/api/v");
sb2.append(obj);
AFKeystoreWrapper = sb2.toString();
values = "https://%sadrevenue.%s/api/v2/generic/v6.12.4/android?app_id=";
AFInAppEventParameterName = "https://%sadrevenue.%s/api/v2/log/AdImpression/v6.12.4/android?app_id=";
StringBuilder sb3 = new StringBuilder("https://%sconversions.%s/api/v");
sb3.append(obj);
afErrorLog = sb3.toString();
StringBuilder sb4 = new StringBuilder("https://%slaunches.%s/api/v");
sb4.append(obj);
afDebugLog = sb4.toString();
StringBuilder sb5 = new StringBuilder("https://%sinapps.%s/api/v");
sb5.append(obj);
AFLogger = sb5.toString();
StringBuilder sb6 = new StringBuilder("https://%svalidate.%s/api/v");
sb6.append(AFa1cSDK.AFInAppEventType);
sb6.append("/androidevent?buildnumber=6.12.4&app_id=");
afRDLog = sb6.toString();
}
public final String AFInAppEventType(String str, String str2) {
String packageName = this.AFInAppEventType.values.AFInAppEventType.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "");
String valueOf = this.AFInAppEventType.valueOf();
String str3 = valueOf;
if (!(str3 == null || StringsKt.isBlank(str3))) {
valueOf = "-".concat(String.valueOf(StringsKt.trim((CharSequence) str3).toString()));
}
if (valueOf == null) {
valueOf = "";
}
String obj = StringsKt.trim((CharSequence) valueOf).toString();
Uri.Builder buildUpon = Uri.parse(this.valueOf.valueOf("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 = AFKeystoreWrapper(appendPath, str, str2).appendQueryParameter("sdk_version", AFa1cSDK.AFInAppEventType).build().toString();
Intrinsics.checkNotNullExpressionValue(obj2, "");
return obj2;
}
private static Uri.Builder AFKeystoreWrapper(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", AFb1wSDK.valueOf(sb3.toString(), str));
return builder;
}
public final String AFInAppEventParameterName(AFf1hSDK aFf1hSDK) {
Intrinsics.checkNotNullParameter(aFf1hSDK, "");
if (!(aFf1hSDK instanceof AFf1iSDK)) {
if (!(aFf1hSDK instanceof AFf1gSDK)) {
throw new UnsupportedOperationException();
}
String valueOf = this.valueOf.valueOf(afRDLog);
StringBuilder sb = new StringBuilder();
sb.append(valueOf);
sb.append(this.AFInAppEventType.values.AFInAppEventType.getPackageName());
return sb.toString();
}
return this.valueOf.valueOf("https://%ssdk-services.%s/validate-android-signature");
}
public static String values(String str, boolean z) {
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(!z ? "&buildnumber=6.12.4" : "");
return sb.toString();
}
public final String values(String str) {
StringBuilder sb = new StringBuilder();
sb.append(str);
String valueOf = this.AFInAppEventType.valueOf();
String concat = valueOf != null ? "&channel=".concat(String.valueOf(valueOf)) : null;
if (concat == null) {
concat = "";
}
sb.append(concat);
return sb.toString();
}
}