Files
rr3-apk/decompiled-community/sources/com/ironsource/dd.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

79 lines
2.5 KiB
Java

package com.ironsource;
import android.text.TextUtils;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class dd {
private static dd a = new dd();
public static dd a() {
return a;
}
public static HashMap<String, Object> a(ConcurrentHashMap<String, Object> concurrentHashMap) throws JSONException {
Object a2;
HashMap<String, Object> hashMap = new HashMap<>();
for (Map.Entry<String, Object> entry : concurrentHashMap.entrySet()) {
if (entry.getValue() instanceof JSONObject) {
a2 = a((JSONObject) entry.getValue());
} else if (entry.getValue() instanceof JSONArray) {
a2 = a((JSONArray) entry.getValue());
} else if (entry.getValue() instanceof Map) {
a2 = a((Map<String, Object>) entry.getValue());
} else {
hashMap.put(entry.getKey(), entry.getValue());
}
hashMap.put(entry.getKey(), a2);
}
return hashMap;
}
public static Map<String, Object> a(Map<String, Object> map) {
HashMap hashMap = new HashMap();
for (String str : map.keySet()) {
hashMap.put(str, map.get(str));
}
return hashMap;
}
public static JSONArray a(JSONArray jSONArray) {
JSONArray jSONArray2 = new JSONArray();
for (int i = 0; i < jSONArray.length(); i++) {
jSONArray2.put(jSONArray.opt(i));
}
return jSONArray2;
}
public static JSONObject a(JSONObject jSONObject) throws JSONException {
JSONObject jSONObject2 = new JSONObject();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
jSONObject2.put(next, jSONObject.opt(next));
}
return jSONObject2;
}
public static JSONObject b(JSONObject jSONObject) throws JSONException {
if (jSONObject != null) {
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
Object opt = jSONObject.opt(next);
if (opt instanceof List) {
jSONObject.put(next, TextUtils.join(",", (List) opt));
}
}
}
return jSONObject;
}
}