- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
380 lines
17 KiB
Java
380 lines
17 KiB
Java
package com.fyber.inneractive.sdk.model.vast;
|
|
|
|
import android.text.TextUtils;
|
|
import androidx.core.app.NotificationCompat;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import com.fyber.inneractive.sdk.util.d1;
|
|
import com.ironsource.gi;
|
|
import com.ironsource.sdk.controller.f;
|
|
import java.net.MalformedURLException;
|
|
import java.net.URL;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import org.w3c.dom.Node;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class f {
|
|
public String a;
|
|
public n e;
|
|
public final ArrayList d = new ArrayList();
|
|
public int f = 0;
|
|
public final ArrayList g = new ArrayList(1);
|
|
public final ArrayList b = new ArrayList();
|
|
public final ArrayList c = new ArrayList();
|
|
|
|
public final void a(Node node) {
|
|
u uVar;
|
|
Node d = d1.d(node, "AdVerifications");
|
|
if (d != null) {
|
|
Iterator it = d1.c(d, "Verification").iterator();
|
|
while (it.hasNext()) {
|
|
Node node2 = (Node) it.next();
|
|
com.fyber.inneractive.sdk.measurement.f fVar = null;
|
|
if (node2 != null) {
|
|
com.fyber.inneractive.sdk.measurement.f fVar2 = new com.fyber.inneractive.sdk.measurement.f();
|
|
fVar2.e = d1.b(node2, "vendor");
|
|
Node d2 = d1.d(node2, "JavaScriptResource");
|
|
if (d2 != null) {
|
|
fVar2.g = true;
|
|
try {
|
|
fVar2.f = d1.a(d2);
|
|
fVar2.b = d1.b(d2, "apiFramework");
|
|
fVar2.a = new URL(fVar2.f);
|
|
} catch (MalformedURLException unused) {
|
|
}
|
|
}
|
|
Node d3 = d1.d(node2, "TrackingEvents");
|
|
if (d3 != null) {
|
|
Iterator it2 = d1.c(d3, "Tracking").iterator();
|
|
while (it2.hasNext()) {
|
|
Node node3 = (Node) it2.next();
|
|
if (node3 == null) {
|
|
uVar = null;
|
|
} else {
|
|
uVar = new u();
|
|
uVar.a = d1.b(node3, NotificationCompat.CATEGORY_EVENT);
|
|
uVar.b = d1.a(node3);
|
|
uVar.c = d1.b(node3, "offset");
|
|
}
|
|
if (node3 != null && uVar.a.equalsIgnoreCase("verificationNotExecuted")) {
|
|
fVar2.a(v.EVENT_VERIFICATION_NOT_EXECUTED, uVar.b);
|
|
}
|
|
}
|
|
}
|
|
Node d4 = d1.d(node2, "VerificationParameters");
|
|
if (d4 != null) {
|
|
fVar2.d = d1.a(d4);
|
|
}
|
|
fVar = fVar2;
|
|
}
|
|
if (fVar != null) {
|
|
IAlog.a("Verification Found - %s", fVar.toString());
|
|
this.d.add(fVar);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public void b(Node node) {
|
|
Iterator it;
|
|
l lVar;
|
|
g gVar;
|
|
Iterator it2;
|
|
u uVar;
|
|
u uVar2;
|
|
Iterator it3;
|
|
Iterator it4;
|
|
q qVar;
|
|
f fVar = this;
|
|
Node d = d1.d(node, "AdSystem");
|
|
if (d != null) {
|
|
d1.b(d, "version");
|
|
d1.a(d);
|
|
}
|
|
Node d2 = d1.d(node, "Error");
|
|
if (d2 != null) {
|
|
String a = d1.a(d2);
|
|
if (!TextUtils.isEmpty(a)) {
|
|
fVar.a = a;
|
|
}
|
|
}
|
|
Iterator it5 = d1.c(node, "Impression").iterator();
|
|
while (it5.hasNext()) {
|
|
String a2 = d1.a((Node) it5.next());
|
|
if (!TextUtils.isEmpty(a2)) {
|
|
fVar.b.add(a2);
|
|
}
|
|
}
|
|
Node d3 = d1.d(node, "Creatives");
|
|
if (d3 != null) {
|
|
Iterator it6 = d1.c(d3, "Creative").iterator();
|
|
while (it6.hasNext()) {
|
|
Node node2 = (Node) it6.next();
|
|
if (node2 == null) {
|
|
it = it6;
|
|
lVar = null;
|
|
} else {
|
|
l lVar2 = new l();
|
|
if (TextUtils.isEmpty(d1.b(node2, "AdID"))) {
|
|
d1.b(node2, f.b.c);
|
|
}
|
|
d1.b(node2, "id");
|
|
d1.a(node2, "sequence");
|
|
Node d4 = d1.d(node2, "Linear");
|
|
if (d4 != null) {
|
|
p pVar = new p();
|
|
it = it6;
|
|
Node d5 = d1.d(d4, "MediaFiles");
|
|
if (d5 != null) {
|
|
ArrayList c = d1.c(d5, "MediaFile");
|
|
if (!c.isEmpty()) {
|
|
pVar.a = new ArrayList();
|
|
Iterator it7 = c.iterator();
|
|
while (it7.hasNext()) {
|
|
Node node3 = (Node) it7.next();
|
|
if (node3 == null) {
|
|
it4 = it7;
|
|
qVar = null;
|
|
} else {
|
|
it4 = it7;
|
|
qVar = new q();
|
|
qVar.a = d1.b(node3, gi.h);
|
|
qVar.b = d1.a(node3, "width");
|
|
qVar.c = d1.a(node3, "height");
|
|
qVar.d = d1.b(node3, "type");
|
|
d1.b(node3, "id");
|
|
qVar.f = d1.b(node3, "apiFramework");
|
|
qVar.e = d1.a(node3, "bitrate");
|
|
String b = d1.b(node3, "maintainAspectRatio");
|
|
if (!TextUtils.isEmpty(b)) {
|
|
try {
|
|
Boolean.valueOf(b);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
String b2 = d1.b(node3, "scalable");
|
|
if (!TextUtils.isEmpty(b2)) {
|
|
try {
|
|
Boolean.valueOf(b2);
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
qVar.g = d1.a(node3);
|
|
}
|
|
if (qVar != null) {
|
|
pVar.a.add(qVar);
|
|
}
|
|
it7 = it4;
|
|
}
|
|
}
|
|
}
|
|
Node d6 = d1.d(d4, "VideoClicks");
|
|
if (d6 != null) {
|
|
pVar.c = d1.a(d1.d(d6, "ClickThrough"));
|
|
ArrayList c2 = d1.c(d6, "ClickTracking");
|
|
if (!c2.isEmpty()) {
|
|
pVar.d = new ArrayList();
|
|
Iterator it8 = c2.iterator();
|
|
while (it8.hasNext()) {
|
|
String a3 = d1.a((Node) it8.next());
|
|
if (!TextUtils.isEmpty(a3)) {
|
|
pVar.d.add(a3);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Node d7 = d1.d(d4, "TrackingEvents");
|
|
if (d7 != null) {
|
|
ArrayList c3 = d1.c(d7, "Tracking");
|
|
if (!c3.isEmpty()) {
|
|
pVar.b = new ArrayList();
|
|
Iterator it9 = c3.iterator();
|
|
while (it9.hasNext()) {
|
|
Node node4 = (Node) it9.next();
|
|
if (node4 == null) {
|
|
it3 = it9;
|
|
uVar2 = null;
|
|
} else {
|
|
uVar2 = new u();
|
|
it3 = it9;
|
|
uVar2.a = d1.b(node4, NotificationCompat.CATEGORY_EVENT);
|
|
uVar2.b = d1.a(node4);
|
|
uVar2.c = d1.b(node4, "offset");
|
|
}
|
|
if (uVar2 != null) {
|
|
pVar.b.add(uVar2);
|
|
}
|
|
it9 = it3;
|
|
}
|
|
}
|
|
}
|
|
Node d8 = d1.d(d4, "Duration");
|
|
if (d8 != null) {
|
|
pVar.e = d1.a(d8);
|
|
}
|
|
lVar2.a = pVar;
|
|
} else {
|
|
it = it6;
|
|
}
|
|
Node d9 = d1.d(node2, "CompanionAds");
|
|
if (d9 != null) {
|
|
i iVar = new i();
|
|
d1.b(d9, "required");
|
|
ArrayList c4 = d1.c(d9, "Companion");
|
|
iVar.a.clear();
|
|
Iterator it10 = c4.iterator();
|
|
while (it10.hasNext()) {
|
|
Node node5 = (Node) it10.next();
|
|
if (node5 == null) {
|
|
it2 = it10;
|
|
gVar = null;
|
|
} else {
|
|
gVar = new g();
|
|
gVar.a = d1.a(node5, "width");
|
|
gVar.b = d1.a(node5, "height");
|
|
gVar.c = d1.b(node5, "id");
|
|
d1.b(node5, "apiFramework");
|
|
d1.a(node5, "expandedWidth");
|
|
d1.a(node5, "expandedHeight");
|
|
Node d10 = d1.d(node5, "StaticResource");
|
|
if (d10 != null) {
|
|
k kVar = new k();
|
|
it2 = it10;
|
|
kVar.a = d1.b(d10, "creativeType");
|
|
kVar.b = d1.a(d10);
|
|
gVar.d = kVar;
|
|
} else {
|
|
it2 = it10;
|
|
}
|
|
Node d11 = d1.d(node5, "HTMLResource");
|
|
if (d11 != null) {
|
|
gVar.f = d1.a(d11);
|
|
}
|
|
Node d12 = d1.d(node5, "IFrameResource");
|
|
if (d12 != null) {
|
|
gVar.e = d1.a(d12);
|
|
}
|
|
Node d13 = d1.d(node5, "CompanionClickThrough");
|
|
if (d13 != null) {
|
|
gVar.g = d1.a(d13);
|
|
}
|
|
gVar.h.clear();
|
|
ArrayList c5 = d1.c(node5, "CompanionClickTracking");
|
|
if (c5.size() > 0) {
|
|
Iterator it11 = c5.iterator();
|
|
while (it11.hasNext()) {
|
|
String a4 = d1.a((Node) it11.next());
|
|
if (!TextUtils.isEmpty(a4)) {
|
|
gVar.h.add(a4);
|
|
}
|
|
}
|
|
}
|
|
gVar.j.clear();
|
|
Node d14 = d1.d(node5, "TrackingEvents");
|
|
if (d14 != null) {
|
|
ArrayList c6 = d1.c(d14, "Tracking");
|
|
if (!c6.isEmpty()) {
|
|
Iterator it12 = c6.iterator();
|
|
while (it12.hasNext()) {
|
|
Node node6 = (Node) it12.next();
|
|
if (node6 == null) {
|
|
uVar = null;
|
|
} else {
|
|
uVar = new u();
|
|
uVar.a = d1.b(node6, NotificationCompat.CATEGORY_EVENT);
|
|
uVar.b = d1.a(node6);
|
|
uVar.c = d1.b(node6, "offset");
|
|
}
|
|
if (uVar != null) {
|
|
gVar.j.add(uVar);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (gVar != null) {
|
|
iVar.a.add(gVar);
|
|
}
|
|
it10 = it2;
|
|
}
|
|
lVar2.b = iVar;
|
|
}
|
|
lVar = lVar2;
|
|
}
|
|
fVar = this;
|
|
if (lVar != null) {
|
|
fVar.c.add(lVar);
|
|
}
|
|
it6 = it;
|
|
}
|
|
}
|
|
Node d15 = d1.d(node, "Extensions");
|
|
if (d15 != null) {
|
|
Iterator it13 = d1.c(d15, "Extension").iterator();
|
|
while (it13.hasNext()) {
|
|
Node node7 = (Node) it13.next();
|
|
if ("AdVerifications".equalsIgnoreCase(d1.b(node7, "type"))) {
|
|
fVar.a(node7);
|
|
}
|
|
if ("FMPCompanionAssets".equalsIgnoreCase(d1.b(node7, "type"))) {
|
|
IAlog.a("parseFMPCompanionAssetsTag", new Object[0]);
|
|
Node d16 = d1.d(node7, "FMPCompanionAssets");
|
|
if (d16 != null) {
|
|
n nVar = new n();
|
|
String b3 = d1.b(d16, "enableMultipleCompanions");
|
|
if ("false".equalsIgnoreCase(b3) || "0".equals(b3)) {
|
|
nVar.g = false;
|
|
}
|
|
Node d17 = d1.d(d16, "Name");
|
|
if (d17 != null) {
|
|
nVar.a = d1.a(d17);
|
|
}
|
|
Node d18 = d1.d(d16, "Description");
|
|
if (d18 != null) {
|
|
nVar.b = d1.a(d18);
|
|
}
|
|
Node d19 = d1.d(d16, "Icons");
|
|
if (d19 != null) {
|
|
nVar.c = new ArrayList();
|
|
Iterator it14 = d1.c(d19, "Icon").iterator();
|
|
while (it14.hasNext()) {
|
|
nVar.c.add(d1.a((Node) it14.next()));
|
|
}
|
|
}
|
|
Node d20 = d1.d(d16, "Rating");
|
|
if (d20 != null) {
|
|
try {
|
|
nVar.e = Float.parseFloat(d1.a(d20));
|
|
} catch (Exception unused3) {
|
|
}
|
|
}
|
|
Node d21 = d1.d(d16, "Screenshots");
|
|
if (d21 != null) {
|
|
nVar.f = new ArrayList();
|
|
Iterator it15 = d1.c(d21, "Screenshot").iterator();
|
|
while (it15.hasNext()) {
|
|
String a5 = d1.a((Node) it15.next());
|
|
if (!TextUtils.isEmpty(a5)) {
|
|
nVar.f.add(a5);
|
|
}
|
|
}
|
|
}
|
|
fVar.e = nVar;
|
|
}
|
|
}
|
|
if ("DynamicVideoControlsURL".equalsIgnoreCase(d1.b(node7, "type"))) {
|
|
Node d22 = d1.d(node7, "DynamicVideoControlsURL");
|
|
m mVar = new m();
|
|
if (d22 != null) {
|
|
mVar.a = d1.a(d22);
|
|
}
|
|
if (!TextUtils.isEmpty(mVar.a)) {
|
|
fVar.g.add(mVar);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
a(node);
|
|
}
|
|
}
|