- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
81 lines
2.1 KiB
Java
81 lines
2.1 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.sdk.k;
|
|
import com.applovin.impl.sdk.utils.JsonUtils;
|
|
import com.applovin.impl.sdk.utils.StringUtils;
|
|
import com.applovin.sdk.AppLovinSdkUtils;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class wn {
|
|
private final com.applovin.impl.sdk.j a;
|
|
private boolean b;
|
|
private List c;
|
|
|
|
public List b() {
|
|
return this.c;
|
|
}
|
|
|
|
public boolean c() {
|
|
return this.b;
|
|
}
|
|
|
|
public wn(com.applovin.impl.sdk.j jVar) {
|
|
this.a = jVar;
|
|
uj ujVar = uj.I;
|
|
this.b = ((Boolean) jVar.a(ujVar, Boolean.FALSE)).booleanValue() || t0.a(com.applovin.impl.sdk.j.l()).a("applovin.sdk.is_test_environment") || AppLovinSdkUtils.isEmulator() || jVar.y().L();
|
|
jVar.c(ujVar);
|
|
}
|
|
|
|
public boolean d() {
|
|
List list = this.c;
|
|
return (list == null || list.isEmpty()) ? false : true;
|
|
}
|
|
|
|
public void a() {
|
|
this.a.b(uj.I, Boolean.TRUE);
|
|
}
|
|
|
|
private void e() {
|
|
com.applovin.impl.sdk.g p = this.a.p();
|
|
if (this.b) {
|
|
p.b(this.c);
|
|
} else {
|
|
p.a(this.c);
|
|
}
|
|
}
|
|
|
|
public void a(String str) {
|
|
if (StringUtils.isValidString(str)) {
|
|
a(Collections.singletonList(str));
|
|
} else {
|
|
a((List) null);
|
|
}
|
|
}
|
|
|
|
public void a(List list) {
|
|
if (list == null && this.c == null) {
|
|
return;
|
|
}
|
|
if (list == null || !list.equals(this.c)) {
|
|
this.c = list;
|
|
e();
|
|
}
|
|
}
|
|
|
|
public void a(JSONObject jSONObject) {
|
|
if (this.b) {
|
|
return;
|
|
}
|
|
JSONArray jSONArray = JsonUtils.getJSONArray(jSONObject, "test_mode_idfas", new JSONArray());
|
|
com.applovin.impl.sdk.k y = this.a.y();
|
|
boolean L = y.L();
|
|
String a = y.f().a();
|
|
k.b B = y.B();
|
|
this.b = L || JsonUtils.containsCaseInsensitiveString(a, jSONArray) || JsonUtils.containsCaseInsensitiveString(B != null ? B.a : null, jSONArray);
|
|
}
|
|
}
|