Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 CrossPromotionHelper.java 源代码,内容仅作参考
package com.appsflyer.share;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.internal.AFa1dSDK;
import com.appsflyer.internal.AFb1bSDK;
import com.appsflyer.internal.AFd1kSDK;
import com.appsflyer.internal.AFd1wSDK;
import com.appsflyer.internal.AFf1aSDK;
import com.appsflyer.internal.AFg1wSDK;
import com.tapjoy.TapjoyConstants;
import java.util.HashMap;
import java.util.Map;
public class CrossPromotionHelper {
private static String valueOf = "https://%simpression.%s";
@NonNull
private static LinkGenerator AFInAppEventParameterName(@NonNull Context context, String str, String str2, Map<String, String> map, String str3) {
LinkGenerator linkGenerator = new LinkGenerator("af_cross_promotion");
linkGenerator.AFInAppEventParameterName = str3;
linkGenerator.valueOf = str;
linkGenerator.addParameter("af_siteid", context.getPackageName());
if (str2 != null) {
linkGenerator.setCampaign(str2);
}
if (map != null) {
linkGenerator.addParameters(map);
}
String string = AppsFlyerProperties.getInstance().getString("advertiserId");
if (string != null) {
linkGenerator.addParameter(TapjoyConstants.TJC_ADVERTISING_ID, string);
}
return linkGenerator;
}
private static void AFKeystoreWrapper(@NonNull String str, @NonNull Context context, @Nullable AFf1aSDK aFf1aSDK) {
AFa1dSDK valueOf2 = AFa1dSDK.valueOf();
valueOf2.AFInAppEventParameterName(context);
AFb1bSDK AFKeystoreWrapper = valueOf2.AFKeystoreWrapper();
AFd1kSDK aFd1kSDK = new AFd1kSDK(AFKeystoreWrapper, str, aFf1aSDK);
AFd1wSDK afWarnLog = AFKeystoreWrapper.afWarnLog();
afWarnLog.valueOf.execute(new AFd1wSDK.AnonymousClass3(aFd1kSDK));
}
public static void logAndOpenStore(@NonNull Context context, String str, String str2) {
logAndOpenStore(context, str, str2, null);
}
public static void logCrossPromoteImpression(@NonNull Context context, String str, String str2) {
logCrossPromoteImpression(context, str, str2, null);
}
public static void setUrl(Map<String, String> map) {
char c11;
for (Map.Entry<String, String> entry : map.entrySet()) {
String value = entry.getValue();
String key = entry.getKey();
int hashCode = key.hashCode();
if (hashCode != 96801) {
if (hashCode == 120623625 && key.equals("impression")) {
c11 = 1;
}
c11 = 65535;
} else {
if (key.equals("app")) {
c11 = 0;
}
c11 = 65535;
}
if (c11 != 0) {
if (c11 == 1) {
valueOf = value;
}
} else {
AFg1wSDK.AFInAppEventType = value;
}
}
}
public static void logAndOpenStore(@NonNull Context context, String str, String str2, Map<String, String> map) {
LinkGenerator AFInAppEventParameterName = AFInAppEventParameterName(context, str, str2, map, String.format(AFg1wSDK.AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false)) {
AFLogger.afInfoLog("CustomerUserId not set, track And Open Store is disabled", true);
return;
}
if (AppsFlyerLib.getInstance().isStopped()) {
AFLogger.afInfoLog("SDK is stopped, track And Open Store is disabled", true);
return;
}
if (map == null) {
map = new HashMap<>();
}
map.put("af_campaign", str2);
AppsFlyerLib.getInstance().logEvent(context, "af_cross_promotion", map);
AFKeystoreWrapper(AFInAppEventParameterName.generateLink(), context, new AFf1aSDK(context));
}
public static void logCrossPromoteImpression(@NonNull Context context, String str, String str2, Map<String, String> map) {
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false)) {
AFLogger.afInfoLog("CustomerUserId not set, Promote Impression is disabled", true);
} else if (AppsFlyerLib.getInstance().isStopped()) {
AFLogger.afInfoLog("SDK is stopped, Promote Impression is disabled", true);
} else {
AFKeystoreWrapper(AFInAppEventParameterName(context, str, str2, map, String.format(valueOf, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName())).generateLink(), context, null);
}
}
}