Files
rr3-apk/decompiled/sources/com/ironsource/cd.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

66 lines
2.2 KiB
Java

package com.ironsource;
import android.content.Context;
import com.ironsource.ad;
import com.ironsource.environment.ContextProvider;
import java.util.Iterator;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class cd {
private static final String a = "adunit_data";
private JSONObject a(Context context, ad.a aVar) throws JSONException {
String name = aVar.name();
JSONObject b = bd.a().b(context);
JSONObject optJSONObject = b.optJSONObject(a);
JSONObject a2 = a(b);
if (optJSONObject != null && optJSONObject.optJSONObject(name) != null) {
JSONObject jSONObject = optJSONObject.getJSONObject(name);
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
a2.putOpt(next, jSONObject.opt(next));
}
}
return a2;
}
private JSONObject a(Context context, List<String> list) throws JSONException {
return a(a(bd.a().b(context)), (String[]) list.toArray(new String[list.size()]));
}
private JSONObject a(JSONObject jSONObject) {
jSONObject.remove(a);
return jSONObject;
}
private JSONObject a(JSONObject jSONObject, String[] strArr) throws JSONException {
JSONObject jSONObject2 = new JSONObject();
for (String str : strArr) {
if (jSONObject.has(str)) {
jSONObject2.put(str, jSONObject.opt(str));
}
}
return jSONObject2;
}
public JSONObject a(Context context, String[] strArr) throws JSONException {
return a(a(bd.a().b(context)), strArr);
}
public JSONObject a(List<String> list) throws JSONException {
return a(ContextProvider.getInstance().getApplicationContext(), list);
}
public JSONObject a(List<String> list, ad.a aVar) throws JSONException {
return a(a(ContextProvider.getInstance().getApplicationContext(), aVar), (String[]) list.toArray(new String[list.size()]));
}
public JSONObject a(String[] strArr) throws JSONException {
return a(a(bd.a().b(ContextProvider.getInstance().getApplicationContext())), strArr);
}
}