- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
77 lines
2.6 KiB
Java
77 lines
2.6 KiB
Java
package com.iab.omid.library.ironsrc.publisher;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.os.Handler;
|
|
import android.webkit.WebView;
|
|
import com.iab.omid.library.ironsrc.adsession.AdSessionContext;
|
|
import com.iab.omid.library.ironsrc.adsession.VerificationScriptResource;
|
|
import com.iab.omid.library.ironsrc.internal.g;
|
|
import com.iab.omid.library.ironsrc.utils.c;
|
|
import com.iab.omid.library.ironsrc.utils.f;
|
|
import java.util.Map;
|
|
import java.util.concurrent.TimeUnit;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class b extends AdSessionStatePublisher {
|
|
private WebView f;
|
|
private Long g = null;
|
|
private final Map<String, VerificationScriptResource> h;
|
|
private final String i;
|
|
|
|
public class a implements Runnable {
|
|
private final WebView a;
|
|
|
|
public a() {
|
|
this.a = b.this.f;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
this.a.destroy();
|
|
}
|
|
}
|
|
|
|
public b(Map<String, VerificationScriptResource> map, String str) {
|
|
this.h = map;
|
|
this.i = str;
|
|
}
|
|
|
|
@Override // com.iab.omid.library.ironsrc.publisher.AdSessionStatePublisher
|
|
public void a(com.iab.omid.library.ironsrc.adsession.a aVar, AdSessionContext adSessionContext) {
|
|
JSONObject jSONObject = new JSONObject();
|
|
Map<String, VerificationScriptResource> injectedResourcesMap = adSessionContext.getInjectedResourcesMap();
|
|
for (String str : injectedResourcesMap.keySet()) {
|
|
c.a(jSONObject, str, injectedResourcesMap.get(str).toJsonObject());
|
|
}
|
|
a(aVar, adSessionContext, jSONObject);
|
|
}
|
|
|
|
@Override // com.iab.omid.library.ironsrc.publisher.AdSessionStatePublisher
|
|
public void b() {
|
|
super.b();
|
|
new Handler().postDelayed(new a(), Math.max(4000 - (this.g == null ? 4000L : TimeUnit.MILLISECONDS.convert(f.b() - this.g.longValue(), TimeUnit.NANOSECONDS)), 2000L));
|
|
this.f = null;
|
|
}
|
|
|
|
@Override // com.iab.omid.library.ironsrc.publisher.AdSessionStatePublisher
|
|
public void i() {
|
|
super.i();
|
|
j();
|
|
}
|
|
|
|
@SuppressLint({"SetJavaScriptEnabled"})
|
|
public void j() {
|
|
WebView webView = new WebView(com.iab.omid.library.ironsrc.internal.f.b().a());
|
|
this.f = webView;
|
|
webView.getSettings().setJavaScriptEnabled(true);
|
|
this.f.getSettings().setAllowContentAccess(false);
|
|
a(this.f);
|
|
g.a().c(this.f, this.i);
|
|
for (String str : this.h.keySet()) {
|
|
g.a().a(this.f, this.h.get(str).getResourceUrl().toExternalForm(), str);
|
|
}
|
|
this.g = Long.valueOf(f.b());
|
|
}
|
|
}
|