导航菜单

页面标题

页面副标题

Mint v5.7.3 - aq.java 源代码

正在查看: Mint v5.7.3 应用的 aq.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.content.Context;
import androidx.annotation.Nullable;
import androidx.core.app.NotificationCompat;
import com.appsflyer.AFLogger;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.bt;
import com.appsflyer.internal.d;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Observable;
import java.util.Observer;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.json.JSONException;
import org.json.JSONObject;

public final class aq extends bf {
    private static String onAttributionFailure = "https://%sdlsdk.%s/v1.0/android/";
    public static long onInstallConversionDataLoadedNative;
    private boolean AppsFlyerConversionListener;
    private int AppsFlyerInAppPurchaseValidatorListener;
    private int AppsFlyerLib;
    private final List<bt> onAppOpenAttribution;
    private final CountDownLatch onConversionDataSuccess;
    private final au onDeepLinking;
    public int onDeepLinkingNative;
    private final JSONObject onValidateInAppFailure;

    static class AnonymousClass1 {
        static final int[] valueOf;

        static {
            int[] iArr = new int[bt.e.values().length];
            valueOf = iArr;
            try {
                iArr[bt.e.FINISHED.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                valueOf[bt.e.STARTED.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
        }
    }

    public aq(Context context, au auVar) {
        super(null, onAttributionFailure, Boolean.FALSE, Boolean.TRUE, null, context);
        this.onAppOpenAttribution = new ArrayList();
        this.onConversionDataSuccess = new CountDownLatch(1);
        this.onValidateInAppFailure = new JSONObject();
        this.onDeepLinking = auVar;
    }

    @Nullable
    private Map<String, Object> AFInAppEventParameterName(final d.e.C0036d c0036d) {
        Boolean bool;
        boolean z2 = false;
        if (c0036d != null && c0036d.values != null && ((bool = c0036d.valueOf) == null || !bool.booleanValue())) {
            z2 = true;
        }
        if (z2) {
            return new HashMap<String, Object>() {
                {
                    put("type", "unhashed");
                    put("value", d.e.C0036d.this.values);
                }
            };
        }
        return null;
    }

    static void AFInAppEventParameterName(aq aqVar) {
        ArrayList<bt> arrayList = new ArrayList();
        for (bt btVar : ae.values().onAppOpenAttributionNative) {
            if (btVar != null && btVar.AFInAppEventParameterName != bt.e.NOT_STARTED) {
                arrayList.add(btVar);
            }
        }
        aqVar.AppsFlyerLib = arrayList.size();
        for (final bt btVar2 : arrayList) {
            int i2 = AnonymousClass1.valueOf[btVar2.AFInAppEventParameterName.ordinal()];
            if (i2 == 1) {
                StringBuilder sb = new StringBuilder("[DDL] ");
                sb.append(btVar2.AFKeystoreWrapper.get("source"));
                sb.append(" referrer collected earlier");
                AFLogger.values(sb.toString());
                aqVar.valueOf(btVar2);
            } else if (i2 == 2) {
                btVar2.addObserver(new Observer() {
                    @Override
                    public final void update(Observable observable, Object obj) {
                        StringBuilder sb2 = new StringBuilder("[DDL] ");
                        sb2.append(btVar2.AFKeystoreWrapper.get("source"));
                        sb2.append(" referrer collected via observer");
                        AFLogger.values(sb2.toString());
                        aq.this.valueOf((bt) observable);
                    }
                });
            }
        }
    }

    public void AFKeystoreWrapper(android.content.Context r9) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.aq.AFKeystoreWrapper(android.content.Context):void");
    }

    private static boolean AFKeystoreWrapper(bt btVar) {
        Long l2 = (Long) btVar.AFKeystoreWrapper.get("click_ts");
        return l2 != null && System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(l2.longValue()) < TimeUnit.DAYS.toMillis(1L);
    }

    static com.appsflyer.deeplink.DeepLinkResult valueOf(com.appsflyer.internal.aq r9, android.content.Context r10) throws java.io.IOException, org.json.JSONException, java.lang.InterruptedException {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.aq.valueOf(com.appsflyer.internal.aq, android.content.Context):com.appsflyer.deeplink.DeepLinkResult");
    }

    public void valueOf(bt btVar) {
        if (AFKeystoreWrapper(btVar)) {
            this.onAppOpenAttribution.add(btVar);
            this.onConversionDataSuccess.countDown();
            StringBuilder sb = new StringBuilder("[DDL] Added non-organic ");
            sb.append(btVar.getClass().getSimpleName());
            AFLogger.values(sb.toString());
            return;
        }
        int i2 = this.AppsFlyerInAppPurchaseValidatorListener + 1;
        this.AppsFlyerInAppPurchaseValidatorListener = i2;
        if (i2 == this.AppsFlyerLib) {
            this.onConversionDataSuccess.countDown();
        }
    }

    private boolean valueOf() {
        List list = (List) this.AFInAppEventType.get("referrers");
        return (list != null ? list.size() : 0) < this.AppsFlyerLib && !this.AFInAppEventType.containsKey("referrers");
    }

    public final void values(DeepLinkResult deepLinkResult) {
        try {
            this.onValidateInAppFailure.put(NotificationCompat.CATEGORY_STATUS, deepLinkResult.getStatus().toString());
            this.onValidateInAppFailure.put("timeout_value", onInstallConversionDataLoadedNative);
        } catch (JSONException unused) {
        }
        au auVar = this.onDeepLinking;
        auVar.valueOf.edit().putString("ddl", this.onValidateInAppFailure.toString()).apply();
        ap.AFInAppEventParameterName(deepLinkResult);
    }
}