- 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
76 lines
2.5 KiB
Java
76 lines
2.5 KiB
Java
package com.fyber.inneractive.sdk.web;
|
|
|
|
import android.text.TextUtils;
|
|
import android.webkit.ValueCallback;
|
|
import android.webkit.WebView;
|
|
import com.fyber.inneractive.sdk.util.m0;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class a {
|
|
public final com.fyber.inneractive.sdk.model.vast.b a;
|
|
public String b;
|
|
public com.fyber.inneractive.sdk.flow.vast.e c;
|
|
|
|
/* renamed from: com.fyber.inneractive.sdk.web.a$a, reason: collision with other inner class name */
|
|
public class C0110a implements ValueCallback<String> {
|
|
@Override // android.webkit.ValueCallback
|
|
public final /* bridge */ /* synthetic */ void onReceiveValue(String str) {
|
|
}
|
|
}
|
|
|
|
public static class b {
|
|
public final String a;
|
|
public final int b;
|
|
|
|
public b(String str, int i) {
|
|
this.a = str;
|
|
this.b = i;
|
|
}
|
|
}
|
|
|
|
public a(com.fyber.inneractive.sdk.model.vast.b bVar) {
|
|
this.a = bVar;
|
|
}
|
|
|
|
public final void a(com.fyber.inneractive.sdk.flow.vast.c cVar) {
|
|
this.c = cVar;
|
|
}
|
|
|
|
public final void a(WebView webView) {
|
|
JSONObject jSONObject;
|
|
com.fyber.inneractive.sdk.model.vast.n nVar = this.a.f;
|
|
if (nVar != null) {
|
|
try {
|
|
jSONObject = new JSONObject();
|
|
m0.a(jSONObject, "name", nVar.a);
|
|
m0.a(jSONObject, "description", nVar.b);
|
|
JSONArray jSONArray = new JSONArray();
|
|
String str = nVar.d;
|
|
if (!TextUtils.isEmpty(str)) {
|
|
jSONArray.put(str);
|
|
}
|
|
m0.a(jSONObject, "icons", jSONArray);
|
|
m0.a(jSONObject, CampaignEx.JSON_KEY_STAR, Float.valueOf(nVar.e));
|
|
JSONArray jSONArray2 = new JSONArray();
|
|
ArrayList arrayList = nVar.f;
|
|
if (arrayList != null) {
|
|
Iterator it = arrayList.iterator();
|
|
while (it.hasNext()) {
|
|
jSONArray2.put((String) it.next());
|
|
}
|
|
}
|
|
m0.a(jSONObject, "screenshots", jSONArray2);
|
|
} catch (Exception unused) {
|
|
}
|
|
webView.evaluateJavascript(String.format("loadAssets(%s);", jSONObject), new C0110a());
|
|
}
|
|
jSONObject = null;
|
|
webView.evaluateJavascript(String.format("loadAssets(%s);", jSONObject), new C0110a());
|
|
}
|
|
}
|