package hc; import android.app.Application; import bc.a; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.meituan.robust.PatchProxyResult; import com.shizhuang.duapp.libs.bpmlogclient.BpmLogInnerLog; import com.shizhuang.duapp.libs.widgetcollect.DuWidgetInnerLog; import com.shizhuang.duapp.libs.widgetcollect.SlsAllow; import com.shizhuang.duapp.libs.widgetcollect.sls.ClientConfiguration; import com.shizhuang.duapp.libs.widgetcollect.source.LogClient; import com.shizhuang.stone.SZStone; import ec.j; import fd.n; import fd.q; import lj.d; import org.jetbrains.annotations.NotNull; import qc.b; import qc.f; import tr.a; import tr.c; import tr.g; /* compiled from: DataCollectTask */ public class i extends a { public static ChangeQuickRedirect changeQuickRedirect; public final String n; public i(Application application, String str, boolean z) { super(application, "TASK_DATA_COLLECT", z); this.n = str; } @Override // dp.g public void i(@NotNull String str) { if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 1461, new Class[]{String.class}, Void.TYPE).isSupported) { String str2 = this.n; if (!PatchProxy.proxy(new Object[]{str2}, this, changeQuickRedirect, false, 1462, new Class[]{String.class}, Void.TYPE).isSupported) { g.m(j.n()); if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 1463, new Class[0], Void.TYPE).isSupported) { long e = n.e("widgetCollect", "interval", 30000); int d = n.d("widgetCollect", "cachelimit", 15); boolean a5 = n.a("widgetCollect", "platformAsync", false); int d12 = n.d("widgetCollect", "platformTimeout", 10); boolean z = ((double) vj.a.b().g()) < n.b("widgetCollect", "absls", 0.0d); String str3 = !b.f37325a ? "https://app-log.dewu.com/" : "https://t1-app-log.dewu.net/"; ClientConfiguration clientConfiguration = new ClientConfiguration(); clientConfiguration.h(15000); clientConfiguration.j(15000); clientConfiguration.i(1); clientConfiguration.g(ClientConfiguration.NetworkPolicy.WIFI_ONLY); lj.a aVar = new lj.a(g.f38656a, str3, null, clientConfiguration, q.h(), new f(this)); if (!PatchProxy.proxy(new Object[]{new Byte(a5 ? (byte) 1 : 0)}, null, d.changeQuickRedirect, true, 21188, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) { d.f35148a = a5; } Object[] objArr = {new Integer(d12)}; ChangeQuickRedirect changeQuickRedirect2 = d.changeQuickRedirect; Class cls = Integer.TYPE; if (!PatchProxy.proxy(objArr, null, changeQuickRedirect2, true, 21190, new Class[]{cls}, Void.TYPE).isSupported) { d.b = d12; } g gVar = new g(this); if (!PatchProxy.proxy(new Object[]{gVar}, null, d.changeQuickRedirect, true, 21185, new Class[]{BpmLogInnerLog.class}, Void.TYPE).isSupported) { d.f35149c = gVar; } e eVar = e.f32982a; if (!PatchProxy.proxy(new Object[]{eVar}, null, tr.b.changeQuickRedirect, true, 37717, new Class[]{DuWidgetInnerLog.class}, Void.TYPE).isSupported) { tr.b.e = eVar; } h hVar = new h(this, z); if (!PatchProxy.proxy(new Object[]{hVar}, null, tr.b.changeQuickRedirect, true, 37720, new Class[]{SlsAllow.class}, Void.TYPE).isSupported) { tr.b.f = hVar; } Application application = this.m; Object[] objArr2 = {application, new Long(e), new Integer(d), aVar}; ChangeQuickRedirect changeQuickRedirect3 = qf1.b.changeQuickRedirect; Class cls2 = Long.TYPE; if (!PatchProxy.proxy(objArr2, null, changeQuickRedirect3, true, 336334, new Class[]{Application.class, cls2, cls, LogClient.class}, Void.TYPE).isSupported) { qf1.b.f37400a = true; qf1.b.f37401c = Math.max(10000L, e); qf1.b.d = d; wr.d dVar = new wr.d(bs.a.a("TFRBSTRHRFB6WjhqdlJaQnJQR1FRZHlF"), bs.a.a("dlNkSUhmaU9mRjl0c1Axa2tzWE9LMlM5Y2FITG5I")); if (!PatchProxy.proxy(new Object[]{application, dVar, aVar}, null, qf1.b.changeQuickRedirect, true, 336335, new Class[]{Application.class, wr.a.class, LogClient.class}, Void.TYPE).isSupported && qf1.b.f37400a && !qf1.b.b) { qf1.b.b = true; a.C0671a aVar2 = new a.C0671a(); long j = qf1.b.f37401c; PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Long(j)}, aVar2, a.C0671a.changeQuickRedirect, false, 37705, new Class[]{cls2}, a.C0671a.class); if (proxy.isSupported) { aVar2 = (a.C0671a) proxy.result; } else { aVar2.b = j; } int i = qf1.b.d; PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{new Integer(i)}, aVar2, a.C0671a.changeQuickRedirect, false, 37694, new Class[]{cls}, a.C0671a.class); if (proxy2.isSupported) { aVar2 = (a.C0671a) proxy2.result; } else { aVar2.f38653c = i; } PatchProxyResult proxy3 = PatchProxy.proxy(new Object[]{dVar}, aVar2, a.C0671a.changeQuickRedirect, false, 37704, new Class[]{wr.a.class}, a.C0671a.class); if (proxy3.isSupported) { aVar2 = (a.C0671a) proxy3.result; } else { aVar2.f38652a = dVar; } PatchProxyResult proxy4 = PatchProxy.proxy(new Object[]{aVar}, aVar2, a.C0671a.changeQuickRedirect, false, 37706, new Class[]{LogClient.class}, a.C0671a.class); if (proxy4.isSupported) { aVar2 = (a.C0671a) proxy4.result; } else { aVar2.d = aVar; } c.h().i(application, aVar2.a()); } } } qf1.a.g().j(this.m, str2, !f.i(), true, SZStone.getStoneSync(this.m)); qf1.a.o(df.j.g().f()); qf1.a.p(df.j.g().h()); qf1.a.m(ka.c.a(this.m, "bid")); qf1.a.n(ka.c.a(this.m, "buildTime")); } } } }