我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.kwad.components.offline.c;
import android.content.Context;
import android.os.SystemClock;
import com.kwad.components.core.request.g;
import com.kwad.components.core.request.h;
import com.kwad.components.offline.api.InitCallBack;
import com.kwad.components.offline.api.core.api.ILoggerReporter;
import com.kwad.components.offline.api.tk.ITkOfflineCompo;
import com.kwad.components.offline.api.tk.TkLoggerReporter;
import com.kwad.components.offline.api.tk.model.report.TKDownloadMsg;
import com.kwad.sdk.core.response.model.SdkConfigData;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicBoolean;
public final class c extends com.kwad.components.core.n.b.a<ITkOfflineCompo> {
private static long acc;
private final List<com.kwad.components.core.n.a.c.a> acb;
private final AtomicBoolean acd;
@Override
public final String getTag() {
return "TkInitModule";
}
@Override
public final int on() {
return 1;
}
@Override
public final String oo() {
return ITkOfflineCompo.PACKAGE_NAME;
}
@Override
public final String op() {
return "3.3.52.1";
}
@Override
public final String oq() {
return "https://p1-lm.adkwai.com/udata/pkg/KS-Android-KSAdSDk/offline_components/tk/ks_so-tachikomaNoSoRelease-3.3.52.1-30812dad44-396.zip";
}
@Override
public final String or() {
return "020c2405b73daa44555cb3a019f7b003";
}
@Override
public final String os() {
return "ks_tk_33521";
}
@Override
public final String ot() {
return ITkOfflineCompo.IMPL;
}
c(byte b2) {
this();
}
public static final class a {
private static final c acn = new c((byte) 0);
}
public static c tk() {
return a.acn;
}
private c() {
this.acb = new CopyOnWriteArrayList();
this.acd = new AtomicBoolean(false);
}
public static void an(Context context) {
acc = SystemClock.elapsedRealtime();
tk().init(context);
}
@Override
public final boolean isEnabled() {
return ((Boolean) com.kwad.sdk.core.config.d.b(com.kwad.sdk.core.config.c.aoR)).booleanValue();
}
@Override
public void a(Context context, boolean z, ITkOfflineCompo iTkOfflineCompo) {
iTkOfflineCompo.init(context, new d(), new AnonymousClass1(iTkOfflineCompo, z, SystemClock.elapsedRealtime(), SystemClock.elapsedRealtime() - acc, context));
}
public final class AnonymousClass1 implements InitCallBack {
final ITkOfflineCompo ace;
final boolean acf;
final long acg;
final long ach;
final Context gq;
AnonymousClass1(ITkOfflineCompo iTkOfflineCompo, boolean z, long j, long j2, Context context) {
this.ace = iTkOfflineCompo;
this.acf = z;
this.acg = j;
this.ach = j2;
this.gq = context;
}
@Override
public final void onSuccess(boolean z) {
final b bVar = new b(this.ace);
com.kwad.sdk.components.c.a(com.kwad.components.core.n.a.c.c.class, bVar);
c.this.acd.set(true);
int i = z ? 2 : 1;
int i2 = this.acf ? 2 : 1;
c.this.b(i, i2, SystemClock.elapsedRealtime() - this.acg, this.ach);
TkLoggerReporter.get().reportTKSOLoad(ILoggerReporter.Category.APM_LOG, new TKDownloadMsg().setDownloadState(3).setOfflineLoadTime(this.ach).setSoLoadTime(SystemClock.elapsedRealtime() - this.acg).setOfflineSource(i2).setSoSource(i).toJson());
c.this.om();
g.b(new h() {
@Override
public final void a(final SdkConfigData sdkConfigData) {
super.a(sdkConfigData);
if (sdkConfigData != null) {
com.kwad.sdk.utils.g.execute(new Runnable() {
@Override
public final void run() {
bVar.onConfigRefresh(AnonymousClass1.this.gq, sdkConfigData.toJson());
}
});
}
}
});
}
}
public final void a(com.kwad.components.core.n.a.c.a aVar) {
if (aVar == null) {
return;
}
if (this.acd.get()) {
aVar.a(1, 1, 0L, 0L);
}
this.acb.add(aVar);
}
public final void b(com.kwad.components.core.n.a.c.a aVar) {
if (aVar == null) {
return;
}
this.acb.remove(aVar);
}
public void b(int i, int i2, long j, long j2) {
for (com.kwad.components.core.n.a.c.a aVar : this.acb) {
aVar.a(i, i2, j, j2);
}
}
}