Live Football Updates v1.0版本的 MD5 值为:95609b5a5bec0a5f5a0b6e8e4d8f1cba
以下内容为反编译后的 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 f21200a;
public WebView f21202c;
public String f21203d;
public final String f21204e = "y6";
public final String[] f21205f = {"handleGetViewVisibility"};
public zd f21201b = new zd();
public JSONObject a() {
JSONObject jSONObject = new JSONObject();
try {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(u6.f20951s, this.f21201b.a());
jSONObject.put(u6.f20948p, jSONObject2);
jSONObject.put("adViewId", c());
return jSONObject;
} catch (JSONException e10) {
e10.printStackTrace();
return new JSONObject();
}
}
public void a(WebView webView) {
this.f21202c = webView;
}
public void a(w6 w6Var) {
this.f21200a = w6Var;
}
public void a(String str, int i, boolean z10) {
zd.a aVar = this.f21201b.f21243a;
if (aVar.containsKey(str)) {
aVar.put(str, Boolean.valueOf(i == 0));
}
aVar.put(u6.f20945m, Boolean.valueOf(z10));
aVar.put(u6.f20946n, Boolean.valueOf((aVar.get(u6.f20944l).booleanValue() || aVar.get(u6.f20943k).booleanValue()) && aVar.get(u6.f20945m).booleanValue()));
if (!str.equalsIgnoreCase(u6.f20943k) || this.f21200a == null || this.f21201b == null) {
return;
}
a(u6.f20934a, a());
}
public void a(String str, String str2) {
w6 w6Var = this.f21200a;
if (w6Var != null) {
w6Var.a(str, str2, this.f21203d);
}
}
public void a(String str, JSONObject jSONObject) {
w6 w6Var = this.f21200a;
if (w6Var != null) {
w6Var.a(str, jSONObject);
}
}
public void b() {
this.f21200a = null;
this.f21201b = null;
}
public String c() {
return this.f21203d;
}
public void c(String str) {
try {
JSONObject jSONObject = new JSONObject(str);
String optString = jSONObject.optString("method");
if (!TextUtils.isEmpty(optString)) {
String[] strArr = this.f21205f;
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.f20953v, u6.f20936c), jSONObject);
} catch (JSONException e10) {
Log.e(this.f21204e, "ISNAdViewLogic | receiveMessageFromExternal | Error while trying handle message: " + str);
e10.printStackTrace();
}
}
public void e() {
if (this.f21200a == null || this.f21201b == null) {
return;
}
a(u6.f20935b, a());
}
public void e(String str) throws JSONException {
JSONObject a10 = this.f21201b.a();
a10.put("adViewId", this.f21203d);
a(str, a10);
}
public void f(String str) {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("adViewId", this.f21203d);
a(str, jSONObject);
} catch (JSONException e10) {
e10.printStackTrace();
}
}
public void g(String str) {
this.f21203d = str;
}
public void a(String str, String str2, String str3) throws JSONException {
if (this.f21202c == null) {
String n10 = b0.c.n("No external adUnit attached to ISNAdView while trying to send message: ", str);
Log.e(this.f21204e, n10);
this.f21200a.a(str3, n10, this.f21203d);
return;
}
try {
new JSONObject(str);
} catch (JSONException unused) {
str = be.h.e("\"", str, "\"");
}
String format = String.format(u6.f20952u, str);
l6.f18834a.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.f21203d);
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.f21201b.a());
} catch (Exception e10) {
Log.e(this.f21204e, "Error while trying execute method buildVisibilityMessageForAdUnit | params: " + jSONObject);
e10.printStackTrace();
}
a(jSONObject2.toString(), str, str2);
}
}