- 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
204 lines
7.0 KiB
Java
204 lines
7.0 KiB
Java
package com.fyber.inneractive.sdk.config;
|
|
|
|
import android.content.Context;
|
|
import android.content.SharedPreferences;
|
|
import android.webkit.WebView;
|
|
import com.fyber.inneractive.sdk.external.InneractiveMediationName;
|
|
import com.fyber.inneractive.sdk.external.InneractiveUserConfig;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import com.fyber.inneractive.sdk.util.z0;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.concurrent.CopyOnWriteArrayList;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class IAConfigManager {
|
|
public static long M;
|
|
public com.fyber.inneractive.sdk.network.g0 A;
|
|
public com.fyber.inneractive.sdk.network.g0 B;
|
|
public com.fyber.inneractive.sdk.config.d C;
|
|
public final com.fyber.inneractive.sdk.ignite.c D;
|
|
public final com.fyber.inneractive.sdk.dv.handler.a E;
|
|
public final com.fyber.inneractive.sdk.cache.i F;
|
|
public final com.fyber.inneractive.sdk.network.d G;
|
|
public final HashMap H;
|
|
public com.fyber.inneractive.sdk.measurement.a I;
|
|
public WebView J;
|
|
public final com.fyber.inneractive.sdk.config.global.s K;
|
|
public HashMap a = new HashMap();
|
|
public HashMap b = new HashMap();
|
|
public String c;
|
|
public String d;
|
|
public String e;
|
|
public Context f;
|
|
public final CopyOnWriteArrayList g;
|
|
public boolean h;
|
|
public final w i;
|
|
public InneractiveUserConfig j;
|
|
public boolean k;
|
|
public String l;
|
|
public InneractiveMediationName m;
|
|
public String n;
|
|
public String o;
|
|
public ArrayList p;
|
|
public boolean q;
|
|
public final com.fyber.inneractive.sdk.network.y r;
|
|
public String s;
|
|
public m t;
|
|
public e u;
|
|
public n v;
|
|
public final i0 w;
|
|
public z0 x;
|
|
public com.fyber.inneractive.sdk.config.global.a y;
|
|
public final com.fyber.inneractive.sdk.util.j0 z;
|
|
public static final IAConfigManager L = new IAConfigManager();
|
|
public static final a N = new a();
|
|
|
|
public interface OnConfigurationReadyAndValidListener {
|
|
void onConfigurationReadyAndValid(IAConfigManager iAConfigManager, boolean z, Exception exc);
|
|
}
|
|
|
|
public class a implements Runnable {
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebView webView;
|
|
IAConfigManager iAConfigManager = IAConfigManager.L;
|
|
WebView webView2 = iAConfigManager.J;
|
|
if (webView2 == null || iAConfigManager.f == null) {
|
|
return;
|
|
}
|
|
webView2.destroy();
|
|
try {
|
|
webView = new WebView(iAConfigManager.f);
|
|
webView.setWebViewClient(new q());
|
|
} catch (Throwable unused) {
|
|
IAlog.a("failed to create a new webview", new Object[0]);
|
|
webView = null;
|
|
}
|
|
iAConfigManager.J = webView;
|
|
}
|
|
}
|
|
|
|
public static class b {
|
|
public String a;
|
|
public String b;
|
|
public String c;
|
|
public final HashMap d = new HashMap();
|
|
public final HashMap e = new HashMap();
|
|
public final d f = new d();
|
|
}
|
|
|
|
public static class c extends Exception {
|
|
}
|
|
|
|
public static class d {
|
|
public final HashSet a = new HashSet();
|
|
}
|
|
|
|
public IAConfigManager() {
|
|
new HashSet();
|
|
this.h = false;
|
|
this.i = new w();
|
|
this.k = false;
|
|
this.q = false;
|
|
this.r = new com.fyber.inneractive.sdk.network.y();
|
|
this.s = "";
|
|
this.w = new i0();
|
|
this.z = new com.fyber.inneractive.sdk.util.j0();
|
|
this.D = new com.fyber.inneractive.sdk.ignite.c();
|
|
this.E = com.fyber.inneractive.sdk.util.o.a("com.google.android.gms.ads.MobileAds", "com.google.android.gms.ads.query.QueryInfoGenerationCallback") ? new com.fyber.inneractive.sdk.dv.handler.c() : new com.fyber.inneractive.sdk.dv.handler.d();
|
|
this.F = new com.fyber.inneractive.sdk.cache.i();
|
|
this.G = new com.fyber.inneractive.sdk.network.d();
|
|
this.H = new HashMap();
|
|
this.K = com.fyber.inneractive.sdk.config.global.s.b();
|
|
this.g = new CopyOnWriteArrayList();
|
|
}
|
|
|
|
public static void addListener(OnConfigurationReadyAndValidListener onConfigurationReadyAndValidListener) {
|
|
L.g.add(onConfigurationReadyAndValidListener);
|
|
}
|
|
|
|
public static e b() {
|
|
return L.u;
|
|
}
|
|
|
|
public static m c() {
|
|
return L.t;
|
|
}
|
|
|
|
public static com.fyber.inneractive.sdk.ignite.c d() {
|
|
return L.D;
|
|
}
|
|
|
|
public static i0 e() {
|
|
return L.w;
|
|
}
|
|
|
|
public static z0 f() {
|
|
return L.x;
|
|
}
|
|
|
|
public static boolean g() {
|
|
com.fyber.inneractive.sdk.config.d dVar = L.C;
|
|
return dVar != null && dVar.d();
|
|
}
|
|
|
|
public static boolean h() {
|
|
IAConfigManager iAConfigManager = L;
|
|
boolean z = iAConfigManager.e != null;
|
|
int i = g.a;
|
|
boolean booleanValue = Boolean.valueOf(System.getProperty("ia.testEnvironmentConfiguration.forceConfigRefresh", Boolean.toString(false))).booleanValue();
|
|
if ((z && System.currentTimeMillis() - M > 3600000) || booleanValue) {
|
|
if (booleanValue) {
|
|
m mVar = iAConfigManager.t;
|
|
mVar.d = false;
|
|
com.fyber.inneractive.sdk.util.p.a.execute(new com.fyber.inneractive.sdk.util.n(mVar.e));
|
|
}
|
|
a();
|
|
iAConfigManager.F.a();
|
|
com.fyber.inneractive.sdk.web.d0 d0Var = com.fyber.inneractive.sdk.web.d0.c;
|
|
d0Var.getClass();
|
|
com.fyber.inneractive.sdk.util.p.a.execute(new com.fyber.inneractive.sdk.web.c0(d0Var));
|
|
}
|
|
return z;
|
|
}
|
|
|
|
public static void removeListener(OnConfigurationReadyAndValidListener onConfigurationReadyAndValidListener) {
|
|
L.g.remove(onConfigurationReadyAndValidListener);
|
|
}
|
|
|
|
public final void a(Exception exc) {
|
|
Iterator it = this.g.iterator();
|
|
while (it.hasNext()) {
|
|
OnConfigurationReadyAndValidListener onConfigurationReadyAndValidListener = (OnConfigurationReadyAndValidListener) it.next();
|
|
if (onConfigurationReadyAndValidListener != null) {
|
|
boolean z = L.e != null;
|
|
IAlog.e("notifying listener configuration state has been resolved", new Object[0]);
|
|
onConfigurationReadyAndValidListener.onConfigurationReadyAndValid(this, z, !z ? exc : null);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void i() {
|
|
SharedPreferences sharedPreferences = com.fyber.inneractive.sdk.util.o.a.getSharedPreferences("IAConfigurationPreferences", 0);
|
|
if (sharedPreferences != null) {
|
|
sharedPreferences.edit().putBoolean("IAConfigFQE", true).apply();
|
|
}
|
|
}
|
|
|
|
public static void a() {
|
|
IAConfigManager iAConfigManager = L;
|
|
com.fyber.inneractive.sdk.network.g0 g0Var = iAConfigManager.A;
|
|
if (g0Var != null) {
|
|
iAConfigManager.r.a(g0Var);
|
|
}
|
|
m mVar = iAConfigManager.t;
|
|
if (mVar.d) {
|
|
return;
|
|
}
|
|
iAConfigManager.r.a(new com.fyber.inneractive.sdk.network.g0(new l(mVar), mVar.a, mVar.e));
|
|
}
|
|
}
|