package com.applovin.impl.mediation.debugger.b.b; import com.applovin.impl.sdk.n; import com.applovin.impl.sdk.utils.JsonUtils; import com.applovin.impl.sdk.utils.d; import com.applovin.impl.sdk.utils.h; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.json.JSONObject; public class c { /* renamed from: a reason: collision with root package name */ private final boolean f2808a; /* renamed from: b reason: collision with root package name */ private final boolean f2809b; /* renamed from: c reason: collision with root package name */ private final boolean f2810c; /* renamed from: d reason: collision with root package name */ private final String f2811d; public c(JSONObject jSONObject, n nVar) { this.f2808a = d.a(nVar.L()).a(); JSONObject jSONObject2 = JsonUtils.getJSONObject(jSONObject, "cleartext_traffic", (JSONObject) null); boolean z10 = false; if (jSONObject2 != null) { this.f2809b = true; this.f2811d = JsonUtils.getString(jSONObject2, "description", ""); if (h.a()) { this.f2810c = true; return; } List list = JsonUtils.getList(jSONObject2, "domains", new ArrayList()); if (list.size() > 0) { Iterator it = list.iterator(); while (true) { if (it.hasNext()) { if (!h.a((String) it.next())) { break; } } else { z10 = true; break; } } } this.f2810c = z10; return; } this.f2809b = false; this.f2811d = ""; this.f2810c = h.a(); } public boolean a() { return this.f2809b; } public boolean b() { boolean z10 = this.f2810c; return z10 && (this.f2808a || z10); } public String c() { return this.f2808a ? this.f2811d : "You must include an entry in your AndroidManifest.xml to point to your network_security_config.xml.\n\nFor more information, visit: https://developer.android.com/training/articles/security-config"; } }