Live Football Updates v1.0.1版本的 MD5 值为:636649089335ebb37514551724606ad0
以下内容为反编译后的 y6.java 源代码,内容仅作参考
package com.ironsource;
import android.text.TextUtils;
import android.util.Log;
import android.webkit.WebView;
import com.ironsource.zd;
import org.json.JSONException;
import org.json.JSONObject;
public class y6 {
public w6 f21205a;
public WebView f21207c;
public String f21208d;
public final String f21209e = "y6";
public final String[] f21210f = {"handleGetViewVisibility"};
public zd f21206b = new zd();
public JSONObject a() {
JSONObject jSONObject = new JSONObject();
try {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(u6.f20956s, this.f21206b.a());
jSONObject.put(u6.f20953p, jSONObject2);
jSONObject.put("adViewId", c());
return jSONObject;
} catch (JSONException e10) {
e10.printStackTrace();
return new JSONObject();
}
}
public void a(WebView webView) {
this.f21207c = webView;
}
public void a(w6 w6Var) {
this.f21205a = w6Var;
}
public void a(String str, int i, boolean z10) {
zd.a aVar = this.f21206b.f21248a;
if (aVar.containsKey(str)) {
aVar.put(str, Boolean.valueOf(i == 0));
}
aVar.put(u6.f20950m, Boolean.valueOf(z10));
aVar.put(u6.f20951n, Boolean.valueOf((aVar.get(u6.f20949l).booleanValue() || aVar.get(u6.f20948k).booleanValue()) && aVar.get(u6.f20950m).booleanValue()));
if (!str.equalsIgnoreCase(u6.f20948k) || this.f21205a == null || this.f21206b == null) {
return;
}
a(u6.f20939a, a());
}
public void a(String str, String str2) {
w6 w6Var = this.f21205a;
if (w6Var != null) {
w6Var.a(str, str2, this.f21208d);
}
}
public void a(String str, JSONObject jSONObject) {
w6 w6Var = this.f21205a;
if (w6Var != null) {
w6Var.a(str, jSONObject);
}
}
public void b() {
this.f21205a = null;
this.f21206b = null;
}
public String c() {
return this.f21208d;
}
public void c(String str) {
try {
JSONObject jSONObject = new JSONObject(str);
String optString = jSONObject.optString("method");
if (!TextUtils.isEmpty(optString)) {
String[] strArr = this.f21210f;
int length = strArr.length;
boolean z10 = false;
int i = 0;
while (true) {
if (i >= length) {
break;
} else if (strArr[i].equalsIgnoreCase(optString)) {
z10 = true;
break;
} else {
i++;
}
}
if (z10) {
if (optString.equalsIgnoreCase("handleGetViewVisibility")) {
a(jSONObject, (String) null, (String) null);
return;
}
return;
}
}
a(jSONObject.optString(u6.f20958v, u6.f20941c), jSONObject);
} catch (JSONException e10) {
Log.e(this.f21209e, "ISNAdViewLogic | receiveMessageFromExternal | Error while trying handle message: " + str);
e10.printStackTrace();
}
}
public void e() {
if (this.f21205a == null || this.f21206b == null) {
return;
}
a(u6.f20940b, a());
}
public void e(String str) throws JSONException {
JSONObject a10 = this.f21206b.a();
a10.put("adViewId", this.f21208d);
a(str, a10);
}
public void f(String str) {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("adViewId", this.f21208d);
a(str, jSONObject);
} catch (JSONException e10) {
e10.printStackTrace();
}
}
public void g(String str) {
this.f21208d = str;
}
public void a(String str, String str2, String str3) throws JSONException {
if (this.f21207c == null) {
String n10 = b0.c.n("No external adUnit attached to ISNAdView while trying to send message: ", str);
Log.e(this.f21209e, n10);
this.f21205a.a(str3, n10, this.f21208d);
return;
}
try {
new JSONObject(str);
} catch (JSONException unused) {
str = be.h.e("\"", str, "\"");
}
String format = String.format(u6.f20957u, str);
l6.f18839a.c(new te.a0(this, be.h.e("javascript:try{", format, "}catch(e){console.log(\"JS exception: \" + JSON.stringify(e));}"), format));
JSONObject jSONObject = new JSONObject();
jSONObject.put("adViewId", this.f21208d);
a(str2, jSONObject);
}
public void a(JSONObject jSONObject, String str, String str2) throws JSONException {
JSONObject jSONObject2 = new JSONObject();
try {
jSONObject2.put("id", jSONObject.getString("id"));
jSONObject2.put("data", this.f21206b.a());
} catch (Exception e10) {
Log.e(this.f21209e, "Error while trying execute method buildVisibilityMessageForAdUnit | params: " + jSONObject);
e10.printStackTrace();
}
a(jSONObject2.toString(), str, str2);
}
}