流利说-英语 v8.47.26版本的 MD5 值为:0079dce5ff96e6cdbc95c261b3f51387
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.liulishuo.thanossdk.api;
import android.content.Context;
import androidx.lifecycle.CoroutineLiveDataKt;
import com.liulishuo.thanos.user.behavior.e;
import com.liulishuo.thanossdk.api.a;
import com.liulishuo.thanossdk.b;
import com.liulishuo.thanossdk.f;
import com.liulishuo.thanossdk.j;
import com.liulishuo.thanossdk.m;
import com.liulishuo.thanossdk.model.PagePerformanceStrategy;
import com.liulishuo.thanossdk.network.report.NetworkReportError;
import com.liulishuo.thanossdk.utils.ThanosSelfLog;
import java.util.Map;
import kotlin.Pair;
import kotlin.i;
import kotlin.jvm.internal.t;
import kotlin.u;
import okhttp3.OkHttpClient;
import thanos.ClientMeta;
import thanos.CommonProperty;
import thanos.LiveStreamingMetricsCommonProperties;
import thanos.LiveStreamingPerformance;
import thanos.OSType;
@i
public final class d {
private static com.liulishuo.thanossdk.api.a iSS = new a();
private static c iST;
public static final void dkh() {
com.liulishuo.thanos.performance.b.iRx.register();
e.iRK.register();
}
public static final u dkf() {
return u.jXu;
}
public static final String u(final Long l) {
if (l == null) {
return "";
}
ThanosSelfLog.iUo.d("ThanosApi", new kotlin.jvm.a.a<String>() {
{
super(0);
}
@Override
public final String invoke() {
return "user_login = " + l;
}
});
return String.valueOf(l);
}
@i
public static final class a implements com.liulishuo.thanossdk.api.a {
a() {
}
@Override
public void a(Context context, Long l) {
t.f(context, "context");
a.C1160a.a(this, context, l);
}
@Override
public void a(com.liulishuo.thanossdk.a.a applicationStateListener) {
t.f(applicationStateListener, "applicationStateListener");
a.C1160a.a(this, applicationStateListener);
}
@Override
public void a(PagePerformanceStrategy strategy) {
t.f(strategy, "strategy");
a.C1160a.a(this, strategy);
}
@Override
public void a(LiveStreamingMetricsCommonProperties.CoronaProperties.ServiceProvider serviceProvider, String roomId, String exception_category, String exception_type, Map<String, String> extra_parameters) {
t.f(serviceProvider, "serviceProvider");
t.f(roomId, "roomId");
t.f(exception_category, "exception_category");
t.f(exception_type, "exception_type");
t.f(extra_parameters, "extra_parameters");
a.C1160a.a(this, serviceProvider, roomId, exception_category, exception_type, extra_parameters);
}
@Override
public void a(LiveStreamingMetricsCommonProperties.CoronaProperties.ServiceProvider serviceProvider, String roomId, LiveStreamingPerformance.MediaPerformance mediaPerformance, LiveStreamingPerformance.NetworkPerformance networkPerformance) {
t.f(serviceProvider, "serviceProvider");
t.f(roomId, "roomId");
t.f(mediaPerformance, "mediaPerformance");
t.f(networkPerformance, "networkPerformance");
a.C1160a.a(this, serviceProvider, roomId, mediaPerformance, networkPerformance);
}
@Override
public boolean a(kotlin.jvm.a.b<? super Integer, u> bVar, kotlin.jvm.a.b<? super NetworkReportError, u> bVar2, kotlin.jvm.a.a<u> aVar) {
return a.C1160a.a(this, bVar, bVar2, aVar);
}
@Override
public void ag(kotlin.jvm.a.b<? super CommonProperty, byte[]> callback) {
t.f(callback, "callback");
a.C1160a.a(this, callback);
}
@Override
public void b(String domain, String action, double d, Map<String, String> attributes) {
t.f(domain, "domain");
t.f(action, "action");
t.f(attributes, "attributes");
a.C1160a.a(this, domain, action, d, attributes);
}
@Override
public void b(LiveStreamingMetricsCommonProperties.CoronaProperties.ServiceProvider serviceProvider, String roomId, String event_category, String event_type, Map<String, String> extra_parameters) {
t.f(serviceProvider, "serviceProvider");
t.f(roomId, "roomId");
t.f(event_category, "event_category");
t.f(event_type, "event_type");
t.f(extra_parameters, "extra_parameters");
a.C1160a.b(this, serviceProvider, roomId, event_category, event_type, extra_parameters);
}
@Override
public void d(String str, String str2, int i, String str3, String str4) {
a.C1160a.b(this, str, str2, i, str3, str4);
}
@Override
public void djU() {
a.C1160a.a(this);
}
@Override
public void djV() {
a.C1160a.b(this);
}
@Override
public boolean djW() {
return a.C1160a.c(this);
}
@Override
public PagePerformanceStrategy djX() {
return a.C1160a.d(this);
}
@Override
public void e(String str, String str2, int i, String str3, String str4) {
a.C1160a.a(this, str, str2, i, str3, str4);
}
@Override
public void f(String str, String str2, int i, String str3, String str4) {
a.C1160a.c(this, str, str2, i, str3, str4);
}
@Override
public void g(String domain, int i, String originErrorDescription) {
t.f(domain, "domain");
t.f(originErrorDescription, "originErrorDescription");
a.C1160a.a(this, domain, i, originErrorDescription);
}
@Override
public void g(String str, String str2, int i, String str3, String str4) {
a.C1160a.d(this, str, str2, i, str3, str4);
}
@Override
public void h(String str, String str2, int i, String str3, String str4) {
a.C1160a.e(this, str, str2, i, str3, str4);
}
@Override
public void a(Context context, String appId, String deviceId, String appSecret, Long l, OkHttpClient.Builder okHttpBuilder, final boolean z) {
t.f(context, "context");
t.f(appId, "appId");
t.f(deviceId, "deviceId");
t.f(appSecret, "appSecret");
t.f(okHttpBuilder, "okHttpBuilder");
ThanosSelfLog.iUo.init(z);
ClientMeta.Builder metaBuilder = new ClientMeta.Builder().user_login(d.u(l)).app_id(appId).app_version(com.liulishuo.thanossdk.utils.a.iTY.getAppVersion(context)).device_id(deviceId).os_type(OSType.ANDROID).device_model(com.liulishuo.thanossdk.utils.a.iTY.getDeviceName()).os_version(com.liulishuo.thanossdk.utils.a.iTY.agn()).user_logged(Boolean.valueOf(l != null)).thanos_sdk_version("4.0.11");
com.liulishuo.thanossdk.i gI = com.liulishuo.thanossdk.i.iSj.gI(context);
com.liulishuo.thanossdk.network.e eVar = new com.liulishuo.thanossdk.network.e(appId, gI, appSecret, okHttpBuilder);
m mVar = new m(gI, eVar);
eVar.register();
b.a aVar = com.liulishuo.thanossdk.b.iSd;
Context applicationContext = context.getApplicationContext();
t.d(applicationContext, "context.applicationContext");
aVar.setApplicationContext(applicationContext);
if (z) {
ThanosSelfLog.iUo.d("ThanosApi", new kotlin.jvm.a.a<String>() {
{
super(0);
}
@Override
public final String invoke() {
return "isStaging" + z;
}
});
j.a((com.liulishuo.thanossdk.d<String>) j.a(new f("host", "https://dev-thanos.llsserver.com"), ThanosApiKt$ThanosApi$1$init$2.INSTANCE, ThanosApiKt$ThanosApi$1$init$3.INSTANCE));
}
t.d(metaBuilder, "metaBuilder");
b bVar = new b(gI, mVar, metaBuilder, eVar);
bVar.dkd();
bVar.a(context, l);
d.e(bVar);
d.a(bVar);
com.liulishuo.thanossdk.network.report.b.iTK.eA(kotlin.collections.t.C("llsapp.com", "llscdn.com"));
bVar.fh(CoroutineLiveDataKt.DEFAULT_TIMEOUT);
d.dkh();
com.liulishuo.thanossdk.network.d.iTp.dkn();
mVar.g(1000, new Pair(com.liulishuo.thanossdk.utils.f.iUh.gK(context), j.a(gI, j.djL())));
}
}
public static final com.liulishuo.thanossdk.api.a dkg() {
return iSS;
}
public static final void e(com.liulishuo.thanossdk.api.a aVar) {
t.f(aVar, "<set-?>");
iSS = aVar;
}
public static final void a(c cVar) {
iST = cVar;
}
public static final c dki() {
return iST;
}
}