导航菜单

页面标题

页面副标题

Brevistay v5.8.2 - ar.java 源代码

正在查看: Brevistay v5.8.2 应用的 ar.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.content.Context;
import com.appsflyer.AFLogger;
import com.appsflyer.internal.dd;
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;

public final class ar extends cm {
    public static long onInstallConversionDataLoadedNative = 0;
    private static String onResponseErrorNative = "https://%sdlsdk.%s/v1.0/android/";
    private final List<dd> onAppOpenAttribution;
    public final cl onAppOpenAttributionNative;
    private boolean onAttributionFailure;
    public int onAttributionFailureNative;
    private int onConversionDataFail;
    private int onDeepLinking;
    private final CountDownLatch onResponseNative;

    public ar(Context context, cl clVar) {
        super(null, onResponseErrorNative, Boolean.FALSE, Boolean.TRUE, null, context);
        this.onAppOpenAttribution = new ArrayList();
        this.onResponseNative = new CountDownLatch(1);
        this.onAppOpenAttributionNative = clVar;
    }

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

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

    static class AnonymousClass2 {
        static final int[] AFInAppEventParameterName;

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

    public void values(dd ddVar) {
        if (AFInAppEventType(ddVar)) {
            this.onAppOpenAttribution.add(ddVar);
            this.onResponseNative.countDown();
            StringBuilder sb = new StringBuilder("[DDL] Added non-organic ");
            sb.append(ddVar.getClass().getSimpleName());
            AFLogger.AFInAppEventParameterName(sb.toString());
            return;
        }
        int i = this.onConversionDataFail + 1;
        this.onConversionDataFail = i;
        if (i == this.onDeepLinking) {
            this.onResponseNative.countDown();
        }
    }

    private static boolean AFInAppEventType(dd ddVar) {
        Long l = (Long) ddVar.AFInAppEventType.get("click_ts");
        return l != null && System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(l.longValue()) < TimeUnit.DAYS.toMillis(1L);
    }

    private Map<String, Object> valueOf(final g gVar) {
        if (gVar == null || gVar.values == null) {
            return null;
        }
        Boolean bool = gVar.AFKeystoreWrapper;
        if (bool == null || !bool.booleanValue()) {
            return new HashMap<String, Object>() {
                {
                    put("type", "unhashed");
                    put("value", g.this.values);
                }
            };
        }
        return null;
    }

    static void valueOf(ar arVar) {
        ArrayList<dd> arrayList = new ArrayList();
        for (dd ddVar : ac.AFInAppEventParameterName().valueOf()) {
            if (ddVar != null && ddVar.AFInAppEventParameterName != dd.d.NOT_STARTED) {
                arrayList.add(ddVar);
            }
        }
        arVar.onDeepLinking = arrayList.size();
        for (final dd ddVar2 : arrayList) {
            int i = AnonymousClass2.AFInAppEventParameterName[ddVar2.AFInAppEventParameterName.ordinal()];
            if (i == 1) {
                StringBuilder sb = new StringBuilder("[DDL] ");
                sb.append(ddVar2.AFInAppEventType.get("source"));
                sb.append(" referrer collected earlier");
                AFLogger.AFInAppEventParameterName(sb.toString());
                arVar.values(ddVar2);
            } else if (i == 2) {
                ddVar2.addObserver(new Observer() {
                    @Override
                    public final void update(Observable observable, Object obj) {
                        StringBuilder sb2 = new StringBuilder("[DDL] ");
                        sb2.append(ddVar2.AFInAppEventType.get("source"));
                        sb2.append(" referrer collected via observer");
                        AFLogger.AFInAppEventParameterName(sb2.toString());
                        ar.this.values((dd) observable);
                    }
                });
            }
        }
    }

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