SG6 GAME v1.2版本的 MD5 值为:e05d9d2dd2bb5cc643956d31ab441e99
以下内容为反编译后的 CrossPromotionHelper.java 源代码,内容仅作参考
package com.appsflyer.share;
import android.content.Context;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.internal.AFa1dSDK;
import com.appsflyer.internal.AFc1zSDK;
import com.appsflyer.internal.AFd1oSDK;
import com.appsflyer.internal.AFd1tSDK;
import com.appsflyer.internal.AFg1xSDK;
import com.appsflyer.internal.AFg1ySDK;
import java.util.HashMap;
import java.util.Map;
public class CrossPromotionHelper {
private static String valueOf = "https://%simpression.%s";
public static void logAndOpenStore(Context context, String str, String str2) {
logAndOpenStore(context, str, str2, null);
}
public static void logAndOpenStore(Context context, String str, String str2, Map<String, String> map) {
LinkGenerator valueOf2 = valueOf(context, str, str2, map, String.format(AFg1xSDK.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);
} else if (AppsFlyerLib.getInstance().isStopped()) {
AFLogger.afInfoLog("SDK is stopped, track And Open Store is disabled", true);
} else {
if (map == null) {
map = new HashMap<>();
}
map.put("af_campaign", str2);
AppsFlyerLib.getInstance().logEvent(context, "af_cross_promotion", map);
AFInAppEventParameterName(valueOf2.generateLink(), context, new AFg1ySDK(context));
}
}
public static void logCrossPromoteImpression(Context context, String str, String str2) {
logCrossPromoteImpression(context, str, str2, null);
}
public static void logCrossPromoteImpression(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 {
AFInAppEventParameterName(valueOf(context, str, str2, map, String.format(valueOf, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName())).generateLink(), context, null);
}
}
private static void AFInAppEventParameterName(String str, Context context, AFg1ySDK aFg1ySDK) {
AFa1dSDK valueOf2 = AFa1dSDK.valueOf();
valueOf2.AFInAppEventType(context);
AFc1zSDK AFInAppEventParameterName = valueOf2.AFInAppEventParameterName();
AFd1oSDK aFd1oSDK = new AFd1oSDK(AFInAppEventParameterName, str, aFg1ySDK);
AFd1tSDK level = AFInAppEventParameterName.getLevel();
level.AFKeystoreWrapper.execute(new AFd1tSDK.AnonymousClass5(aFd1oSDK));
}
private static LinkGenerator valueOf(Context context, String str, String str2, Map<String, String> map, String str3) {
LinkGenerator linkGenerator = new LinkGenerator("af_cross_promotion");
linkGenerator.values = 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("advertising_id", string);
}
return linkGenerator;
}
public static void setUrl(Map<String, String> map) {
for (Map.Entry<String, String> entry : map.entrySet()) {
String value = entry.getValue();
String key = entry.getKey();
char c = 65535;
int hashCode = key.hashCode();
if (hashCode != 96801) {
if (hashCode == 120623625 && key.equals("impression")) {
c = 1;
}
} else if (key.equals("app")) {
c = 0;
}
if (c == 0) {
AFg1xSDK.AFInAppEventType = value;
} else if (c == 1) {
valueOf = value;
}
}
}
}