Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.web;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import android.webkit.WebView;
import com.facebook.login.LoginLogger;
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
import com.fyber.inneractive.sdk.external.InneractiveInfrastructureError;
import com.fyber.inneractive.sdk.measurement.a;
import com.fyber.inneractive.sdk.util.h0;
import com.fyber.inneractive.sdk.util.o0;
import com.fyber.inneractive.sdk.util.r0;
import com.fyber.inneractive.sdk.web.b;
import com.fyber.inneractive.sdk.web.c0;
import com.fyber.inneractive.sdk.web.d;
import com.fyber.inneractive.sdk.web.h;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
public class c<T extends c0> extends b0<T> {
public final b Q;
public c(Context context, b bVar, boolean z, boolean z2) {
super(context, z, z2, h.g.INTERSTITIAL);
this.Q = bVar;
}
@Override
public void a() {
}
@Override
public boolean a(String str, r0 r0Var) {
com.fyber.inneractive.sdk.flow.vast.e eVar;
char c = 0;
if (str == null || !str.toLowerCase().startsWith("fmpendcard://".toLowerCase())) {
return false;
}
b bVar = this.Q;
if (bVar != null) {
d.e eVar2 = this.f;
L l = this.g;
bVar.getClass();
Uri parse = Uri.parse(str);
String authority = parse != null ? parse.getAuthority() : null;
if (TextUtils.isEmpty(authority)) {
bVar.a(eVar2, this, "empty type");
} else {
authority.getClass();
authority.hashCode();
switch (authority.hashCode()) {
case -1867169789:
break;
case -1086574198:
if (authority.equals(LoginLogger.EVENT_EXTRAS_FAILURE)) {
c = 1;
break;
}
c = 65535;
break;
case 94750088:
if (authority.equals("click")) {
c = 2;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
switch (c) {
case 0:
String queryParameter = parse.getQueryParameter("version");
if (!TextUtils.isEmpty(queryParameter)) {
bVar.b = queryParameter;
}
g();
break;
case 1:
String queryParameter2 = parse.getQueryParameter("version");
if (!TextUtils.isEmpty(queryParameter2)) {
bVar.b = queryParameter2;
}
bVar.a(eVar2, this, parse.getQueryParameter("error"));
break;
case 2:
if (l != 0 && (eVar = bVar.c) != null) {
b.a aVar = new b.a(bVar.b, eVar.d);
com.fyber.inneractive.sdk.model.vast.b bVar2 = bVar.a;
com.fyber.inneractive.sdk.model.vast.c cVar = bVar2.h;
String str2 = cVar != null ? cVar.g : null;
if (str2 == null) {
str2 = bVar2.b;
}
l.a(str2, r0Var, aVar);
break;
}
break;
}
}
}
return true;
}
@Override
public void b() {
}
@Override
public a.InterfaceC0169a d() {
return null;
}
@Override
public void a(WebView webView) {
JSONObject jSONObject;
if (webView == null || this.Q == null) {
return;
}
webView.setLongClickable(false);
webView.setOnLongClickListener(new h0());
b bVar = this.Q;
com.fyber.inneractive.sdk.model.vast.k kVar = bVar.a.f;
if (kVar != null) {
try {
jSONObject = new JSONObject();
o0.a(jSONObject, "name", kVar.a);
o0.a(jSONObject, "description", kVar.b);
JSONArray jSONArray = new JSONArray();
List<String> list = kVar.c;
if (list != null) {
for (String str : list) {
jSONArray.put(str);
}
}
o0.a(jSONObject, "icons", jSONArray);
o0.a(jSONObject, CampaignEx.JSON_KEY_STAR, Float.valueOf(kVar.d));
JSONArray jSONArray2 = new JSONArray();
List<String> list2 = kVar.e;
if (list2 != null) {
for (String str2 : list2) {
jSONArray2.put(str2);
}
}
o0.a(jSONObject, "screenshots", jSONArray2);
} catch (Exception unused) {
}
if (Build.VERSION.SDK_INT < 19) {
webView.evaluateJavascript(String.format("loadAssets(%s);", jSONObject), new a(bVar));
return;
} else {
webView.loadUrl(String.format("javascript:loadAssets('%s');", jSONObject));
return;
}
}
jSONObject = null;
if (Build.VERSION.SDK_INT < 19) {
}
}
@Override
public void a(int i) {
d.e eVar;
if (this.Q == null || (eVar = this.f) == null) {
return;
}
eVar.a(this, new InneractiveInfrastructureError(InneractiveErrorCode.SDK_INTERNAL_ERROR, com.fyber.inneractive.sdk.flow.f.WEBVIEW_FMP_ENDCARD_ERROR));
}
}