Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5
以下内容为反编译后的 c.java 源代码,内容仅作参考
package sg.bigo.ads.core.b;
import ad.h;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.webkit.WebView;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import n8.e;
import n8.f;
import n8.i;
import n8.j;
import n8.k;
import n8.l;
import sg.bigo.ads.common.f.d;
import sg.bigo.ads.common.m;
public final class c extends d {
protected String f33954e;
public static class a {
private static final c f33956a = new c((byte) 0);
public static c a() {
return f33956a;
}
}
private c() {
this.f33954e = "";
}
public c(byte b6) {
this();
}
@Override
public final String a() {
return "OMSDK";
}
public final b a(WebView webView, View... viewArr) {
l lVar;
if (this.f32836b) {
try {
n8.c a8 = n8.c.a(f.HTML_DISPLAY, i.NONE);
h.p("Bigosg", "Name is null or empty");
h.p("4.5.1", "Version is null or empty");
j jVar = new j(0);
h.o(webView, "WebView is null");
lVar = n8.b.a(a8, new n8.d(jVar, webView, null, null, null, e.HTML));
} catch (Exception e10) {
e = e10;
lVar = null;
}
try {
lVar.d(webView);
for (View view : viewArr) {
if (view != null) {
lVar.e(view);
}
}
lVar.c();
sg.bigo.ads.common.n.a.a(0, 3, "OMSDK", "createHtmlOmsdkEvent success, AdSession Id: " + lVar.f28699h);
return new b(lVar, null);
} catch (Exception e11) {
e = e11;
sg.bigo.ads.common.n.a.b("OMSDK", "createHtmlOmsdkEvent error: " + e.getMessage());
if (lVar != null) {
lVar.b();
}
return null;
}
}
return null;
}
public final b a(List<sg.bigo.ads.core.b.a> list, boolean z6, View view, View... viewArr) {
l lVar;
o8.b bVar;
String str;
if (!this.f32836b) {
str = "Fail to create native OM AdSession: OMSDK is not ready";
} else if (list == null) {
str = "Fail to create native OM AdSession: OM configs is null";
} else {
try {
h.p("Bigosg", "Name is null or empty");
h.p("4.5.1", "Version is null or empty");
j jVar = new j(0);
ArrayList arrayList = new ArrayList();
for (sg.bigo.ads.core.b.a aVar : list) {
if (!TextUtils.isEmpty(aVar.f33934a)) {
String str2 = aVar.f33935b;
URL url = new URL(aVar.f33934a);
String str3 = aVar.f33936c;
h.p(str2, "VendorKey is null or empty");
h.p(str3, "VerificationParameters is null or empty");
arrayList.add(new k(str2, url, str3));
sg.bigo.ads.common.n.a.a(0, 3, "OMSDK", "Create verificationScriptResource: " + aVar.f33935b + " " + aVar.f33934a + " " + aVar.f33936c);
}
}
if (arrayList.size() == 0) {
sg.bigo.ads.common.n.a.b("OMSDK", "Fail to create native OM AdSession: no verification script resources");
return null;
}
String str4 = this.f32835a;
h.o(str4, "OM SDK JS script content is null");
n8.d dVar = new n8.d(jVar, null, str4, arrayList, "", e.NATIVE);
f fVar = z6 ? f.VIDEO : f.NATIVE_DISPLAY;
i iVar = i.NATIVE;
lVar = n8.b.a(n8.c.a(fVar, z6 ? iVar : i.NONE), dVar);
try {
lVar.d(view);
if (viewArr != null) {
for (View view2 : viewArr) {
if (view2 != null) {
lVar.e(view2);
}
}
}
if (z6) {
if (!(iVar == lVar.f28693b.f28658b)) {
throw new IllegalStateException("Cannot create MediaEvents for JavaScript AdSession");
}
if (lVar.f28697f) {
throw new IllegalStateException("AdSession is started");
}
h.q(lVar);
t8.a aVar2 = lVar.f28696e;
if (aVar2.f34882c != null) {
throw new IllegalStateException("MediaEvents already exists for AdSession");
}
bVar = new o8.b(lVar);
aVar2.f34882c = bVar;
} else {
bVar = null;
}
lVar.c();
sg.bigo.ads.common.n.a.a(0, 3, "OMSDK", "Create native OM AdSession success, AdSession Id: " + lVar.f28699h);
return new b(lVar, bVar);
} catch (Exception e10) {
e = e10;
sg.bigo.ads.common.n.a.b("OMSDK", "Fail to create native OM Session: : " + e.getMessage());
if (lVar != null) {
lVar.b();
}
return null;
}
} catch (Exception e11) {
e = e11;
lVar = null;
}
}
sg.bigo.ads.common.n.a.b("OMSDK", str);
return null;
}
public final void a(Context context, String str) {
try {
h.n(context);
sg.bigo.ads.common.n.a.a("OMSDK", "OM SDK initialized successfully.");
this.f33954e = str;
sg.bigo.ads.common.i.c.a(1, new Runnable() {
{
c.this = this;
}
@Override
public final void run() {
c cVar = c.this;
if (!cVar.j()) {
cVar.c("https://gdl.news-cdn.site/as/bigo-ad-creatives/7h5/M09/FD/6B/qvsbAF5g1KaIOSQ7AACyEETvrcoABLLjgDvdTQAALIo1432.js");
return;
}
String i10 = cVar.i();
cVar.f32835a = i10;
if (TextUtils.isEmpty(i10)) {
cVar.c("https://gdl.news-cdn.site/as/bigo-ad-creatives/7h5/M09/FD/6B/qvsbAF5g1KaIOSQ7AACyEETvrcoABLLjgDvdTQAALIo1432.js");
return;
}
sg.bigo.ads.common.n.a.a("OMSDK", "Fetch omsdk-v1.js from file successfully.");
cVar.f32836b = true;
cVar.g();
}
});
} catch (Throwable th) {
sg.bigo.ads.common.n.a.a(1, 5, "OMSDK", "Failed to initialize OM SDK initialize: " + th.getMessage());
}
}
@Override
public final void a(String str) {
sg.bigo.ads.common.r.a.b(str);
}
@Override
public final boolean a(String str, String str2) {
return (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2) || str.equals(str2)) ? false : true;
}
@Override
public final String b() {
return m.e();
}
@Override
public final boolean b(String str) {
return str.contains("omidGlobal");
}
@Override
public final String c() {
return "omsdk-v1.js";
}
@Override
public final String d() {
return "https://gdl.news-cdn.site/as/bigo-ad-creatives/7h5/M09/FD/6B/qvsbAF5g1KaIOSQ7AACyEETvrcoABLLjgDvdTQAALIo1432.js";
}
public final String d(String str) {
try {
return l8.b.a(this.f32835a, str);
} catch (Exception unused) {
return str;
}
}
@Override
public final String e() {
return this.f33954e;
}
@Override
public final String f() {
return sg.bigo.ads.common.r.a.g();
}
}