花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e
以下内容为反编译后的 v.java 源代码,内容仅作参考
package com.kwad.sdk.api.loader;
import android.content.Context;
import android.text.TextUtils;
import com.kwad.sdk.api.core.IKsAdSDK;
import com.kwad.sdk.api.loader.n;
import com.umeng.analytics.pro.bi;
import java.util.concurrent.atomic.AtomicBoolean;
public final class v {
private static final AtomicBoolean Yt = new AtomicBoolean();
public static void a(final Context context, final IKsAdSDK iKsAdSDK) {
if (com.kwad.sdk.api.c.sV() || Yt.get() || context == null || iKsAdSDK == null) {
return;
}
Yt.set(true);
k.submit(new Runnable() {
@Override
public final void run() {
try {
if (Math.abs(System.currentTimeMillis() - u.w(context, "lastUpdateTime")) < u.w(context, bi.aX) * 1000) {
return;
}
n.tg().a(new w() {
@Override
public final Context getContext() {
return context;
}
@Override
public final String tj() {
return v.access$000();
}
@Override
public final IKsAdSDK tk() {
return iKsAdSDK;
}
}, new n.c<Boolean>() {
private static void a(Boolean bool) {
new StringBuilder("onNewResult: ").append(bool);
}
@Override
public final void b(Boolean bool) {
a(bool);
}
});
} catch (Throwable unused) {
}
}
});
}
public static void aO(Context context) {
g.k(context, "");
}
static String access$000() {
return ti();
}
private static String ti() {
String be = com.kwad.sdk.api.c.be("https://open.e.kuaishou.com/rest/e/v3/open/sdk2");
return !TextUtils.isEmpty(be) ? be : "https://open.e.kuaishou.com/rest/e/v3/open/sdk2";
}
}