导航菜单

页面标题

页面副标题

TodoCrédito v1.4 - CrossPromotionHelper.java 源代码

正在查看: TodoCrédito v1.4 应用的 CrossPromotionHelper.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.appsflyer.share;

import android.content.Context;
import androidx.annotation.NonNull;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.internal.AFb1tSDK;
import com.appsflyer.internal.AFd1fSDK;
import com.appsflyer.internal.AFe1aSDK;
import com.appsflyer.internal.AFe1aSDK.AnonymousClass5;
import com.appsflyer.internal.AFf1nSDK;
import com.appsflyer.internal.AFg1cSDK;
import com.appsflyer.internal.AFj1gSDK;
import com.appsflyer.internal.AFj1jSDK;
import java.util.HashMap;
import java.util.Map;

public class CrossPromotionHelper {
    private static String getRevenue = "https://%simpression.%s";

    private static void getCurrencyIso4217Code(@NonNull String str, @NonNull Context context, AFj1jSDK aFj1jSDK) {
        AFb1tSDK monetizationNetwork = AFb1tSDK.getMonetizationNetwork();
        monetizationNetwork.getCurrencyIso4217Code(context);
        AFd1fSDK currencyIso4217Code = monetizationNetwork.getCurrencyIso4217Code();
        AFf1nSDK aFf1nSDK = new AFf1nSDK(currencyIso4217Code, str, aFj1jSDK);
        AFe1aSDK copy = currencyIso4217Code.copy();
        copy.AFAdRevenueData.execute(copy.new AnonymousClass5(aFf1nSDK));
    }

    @NonNull
    private static LinkGenerator getMonetizationNetwork(@NonNull Context context, String str, String str2, Map<String, String> map, String str3) {
        LinkGenerator linkGenerator = new LinkGenerator("af_cross_promotion");
        linkGenerator.getMediationNetwork = str3;
        linkGenerator.getMonetizationNetwork = str;
        linkGenerator.addParameter("af_siteid", context.getPackageName());
        if (str2 != null) {
            linkGenerator.setCampaign(str2);
        }
        if (map != null) {
            linkGenerator.addParameters(map);
        }
        return linkGenerator;
    }

    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 c9;
        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")) {
                    c9 = 1;
                }
                c9 = 65535;
            } else {
                if (key.equals("app")) {
                    c9 = 0;
                }
                c9 = 65535;
            }
            if (c9 == 0) {
                AFj1gSDK.AFAdRevenueData = value;
            } else if (c9 == 1) {
                getRevenue = value;
            }
        }
    }

    public static void logAndOpenStore(@NonNull Context context, String str, String str2, Map<String, String> map) {
        LinkGenerator monetizationNetwork = getMonetizationNetwork(context, str, str2, map, String.format(AFj1gSDK.AFAdRevenueData, AppsFlyerLib.getInstance().getHostPrefix(), AFb1tSDK.getMonetizationNetwork().getHostName()));
        if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false)) {
            AFLogger.INSTANCE.i(AFg1cSDK.CROSS_PROMOTION, "CustomerUserId not set, track And Open Store is disabled", true);
            return;
        }
        if (AppsFlyerLib.getInstance().isStopped()) {
            AFLogger.INSTANCE.i(AFg1cSDK.CROSS_PROMOTION, "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);
        getCurrencyIso4217Code(monetizationNetwork.generateLink(), context, new AFj1jSDK(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.INSTANCE.i(AFg1cSDK.CROSS_PROMOTION, "CustomerUserId not set, Promote Impression is disabled", true);
        } else if (AppsFlyerLib.getInstance().isStopped()) {
            AFLogger.INSTANCE.i(AFg1cSDK.CROSS_PROMOTION, "SDK is stopped, Promote Impression is disabled", true);
        } else {
            getCurrencyIso4217Code(getMonetizationNetwork(context, str, str2, map, String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1tSDK.getMonetizationNetwork().getHostName())).generateLink(), context, null);
        }
    }
}