Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 c.java 源代码,内容仅作参考
package sg.bigo.ads.core.c;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.webkit.WebView;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.iab.omid.library.bigosg.Omid;
import com.iab.omid.library.bigosg.b.e;
import com.iab.omid.library.bigosg.b.f;
import com.iab.omid.library.bigosg.b.h;
import com.iab.omid.library.bigosg.b.i;
import com.iab.omid.library.bigosg.b.j;
import com.iab.omid.library.bigosg.b.k;
import com.iab.omid.library.bigosg.b.l;
import com.iab.omid.library.bigosg.e.d;
import com.tradplus.ads.bigo.BuildConfig;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
public final class c extends sg.bigo.ads.common.d.c {
protected String e;
public static class a {
private static final c a = new c((byte) 0);
}
private c() {
this.e = "";
}
c(byte b2) {
this();
}
@Override
public final String a() {
return "OMSDK";
}
@Nullable
@MainThread
public final b a(@NonNull WebView webView, @Nullable View... viewArr) {
com.iab.omid.library.bigosg.b.b bVar;
if (this.f7656b) {
try {
com.iab.omid.library.bigosg.b.c a2 = com.iab.omid.library.bigosg.b.c.a(f.HTML_DISPLAY, h.BEGIN_TO_RENDER, i.NATIVE, i.NONE);
j a3 = j.a("Bigosg", BuildConfig.NETWORK_VERSION);
d.a(a3, "Partner is null");
d.a(webView, "WebView is null");
bVar = com.iab.omid.library.bigosg.b.b.a(a2, new com.iab.omid.library.bigosg.b.d(a3, webView, null, null, null, e.HTML));
} catch (Exception e) {
e = e;
bVar = null;
}
try {
bVar.a(webView);
for (View view : viewArr) {
if (view != null) {
bVar.b(view);
}
}
bVar.a();
sg.bigo.ads.common.k.a.a(0, 3, "OMSDK", "createHtmlOmsdkEvent success, AdSession Id: " + bVar.c());
return new b(bVar, null);
} catch (Exception e2) {
e = e2;
e.printStackTrace();
sg.bigo.ads.common.k.a.b("OMSDK", "createHtmlOmsdkEvent error: " + e.getMessage());
if (bVar != null) {
bVar.b();
}
return null;
}
}
return null;
}
@Nullable
@MainThread
public final b a(List<sg.bigo.ads.core.c.a> list, boolean z, @NonNull View view, @Nullable View... viewArr) {
com.iab.omid.library.bigosg.b.b bVar;
com.iab.omid.library.bigosg.b.a.b bVar2;
String str;
if (!this.f7656b) {
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 {
j a2 = j.a("Bigosg", BuildConfig.NETWORK_VERSION);
ArrayList arrayList = new ArrayList();
for (sg.bigo.ads.core.c.a aVar : list) {
if (!TextUtils.isEmpty(aVar.a)) {
String str2 = aVar.f7836b;
URL url = new URL(aVar.a);
String str3 = aVar.c;
d.a(str2, "VendorKey is null or empty");
d.a(url, "ResourceURL is null");
d.a(str3, "VerificationParameters is null or empty");
arrayList.add(new k(str2, url, str3));
sg.bigo.ads.common.k.a.a(0, 3, "OMSDK", "Create verificationScriptResource: " + aVar.f7836b + " " + aVar.a + " " + aVar.c);
}
}
if (arrayList.size() == 0) {
sg.bigo.ads.common.k.a.b("OMSDK", "Fail to create native OM AdSession: no verification script resources");
return null;
}
String str4 = this.a;
d.a(a2, "Partner is null");
d.a((Object) str4, "OM SDK JS script content is null");
d.a(arrayList, "VerificationScriptResources is null");
com.iab.omid.library.bigosg.b.d dVar = new com.iab.omid.library.bigosg.b.d(a2, null, str4, arrayList, "", e.NATIVE);
f fVar = z ? f.VIDEO : f.NATIVE_DISPLAY;
h hVar = h.BEGIN_TO_RENDER;
i iVar = i.NATIVE;
bVar = com.iab.omid.library.bigosg.b.b.a(com.iab.omid.library.bigosg.b.c.a(fVar, hVar, iVar, z ? iVar : i.NONE), dVar);
try {
bVar.a(view);
if (viewArr != null) {
for (View view2 : viewArr) {
if (view2 != null) {
bVar.b(view2);
}
}
}
if (z) {
l lVar = (l) bVar;
d.a(bVar, "AdSession is null");
if (!(i.NATIVE == lVar.a.f3026b)) {
throw new IllegalStateException("Cannot create MediaEvents for JavaScript AdSession");
}
if (lVar.d) {
throw new IllegalStateException("AdSession is started");
}
d.a(lVar);
if (lVar.c.c != null) {
throw new IllegalStateException("MediaEvents already exists for AdSession");
}
bVar2 = new com.iab.omid.library.bigosg.b.a.b(lVar);
lVar.c.c = bVar2;
} else {
bVar2 = null;
}
bVar.a();
sg.bigo.ads.common.k.a.a(0, 3, "OMSDK", "Create native OM AdSession success, AdSession Id: " + bVar.c());
return new b(bVar, bVar2);
} catch (Exception e) {
e = e;
e.printStackTrace();
sg.bigo.ads.common.k.a.b("OMSDK", "Fail to create native OM Session: : " + e.getMessage());
if (bVar != null) {
bVar.b();
}
return null;
}
} catch (Exception e2) {
e = e2;
bVar = null;
}
}
sg.bigo.ads.common.k.a.b("OMSDK", str);
return null;
}
@MainThread
public final void a(@NonNull Context context, String str) {
try {
Omid.a(context);
sg.bigo.ads.common.k.a.a("OMSDK", "OM SDK initialized successfully.");
this.e = str;
sg.bigo.ads.common.f.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 i = cVar.i();
cVar.a = i;
if (TextUtils.isEmpty(i)) {
cVar.c("https://gdl.news-cdn.site/as/bigo-ad-creatives/7h5/M09/FD/6B/qvsbAF5g1KaIOSQ7AACyEETvrcoABLLjgDvdTQAALIo1432.js");
return;
}
sg.bigo.ads.common.k.a.a("OMSDK", "Fetch omsdk-v1.js from file successfully.");
cVar.f7656b = true;
cVar.g();
}
});
} catch (Throwable th) {
sg.bigo.ads.common.k.a.a(1, 5, "OMSDK", "Failed to initialize OM SDK initialize: " + th.getMessage());
th.printStackTrace();
}
}
@Override
public final void a(String str) {
sg.bigo.ads.common.o.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 sg.bigo.ads.common.j.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 com.iab.omid.library.bigosg.c.a(this.a, str);
} catch (Exception e) {
e.printStackTrace();
return str;
}
}
@Override
public final String e() {
return this.e;
}
@Override
public final String f() {
return sg.bigo.ads.common.o.a.g();
}
}