- 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
65 lines
2.0 KiB
Java
65 lines
2.0 KiB
Java
package com.ironsource;
|
|
|
|
import android.content.Context;
|
|
import com.ironsource.ad;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import java.util.Map;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ed {
|
|
private static final String a = "adunit_data";
|
|
|
|
public void a(Context context) {
|
|
bd.a().c(context);
|
|
}
|
|
|
|
public void a(String str, ad.a aVar) {
|
|
JSONObject optJSONObject;
|
|
try {
|
|
String name = aVar.name();
|
|
bd a2 = bd.a();
|
|
JSONObject optJSONObject2 = a2.b(ContextProvider.getInstance().getApplicationContext()).optJSONObject(a);
|
|
if (optJSONObject2 == null || (optJSONObject = optJSONObject2.optJSONObject(name)) == null || optJSONObject.remove(str) == null) {
|
|
return;
|
|
}
|
|
a2.b(a, optJSONObject2.put(name, optJSONObject));
|
|
} catch (JSONException e) {
|
|
i9.d().a(e);
|
|
}
|
|
}
|
|
|
|
public void a(String str, Object obj) {
|
|
bd.a().b(str, obj);
|
|
}
|
|
|
|
public void a(String str, Object obj, ad.a aVar) {
|
|
try {
|
|
String name = aVar.name();
|
|
bd a2 = bd.a();
|
|
JSONObject optJSONObject = a2.b(ContextProvider.getInstance().getApplicationContext()).optJSONObject(a);
|
|
if (optJSONObject == null) {
|
|
a2.b(a, new JSONObject().put(name, new JSONObject().put(str, obj)));
|
|
return;
|
|
}
|
|
JSONObject optJSONObject2 = optJSONObject.optJSONObject(name);
|
|
if (optJSONObject2 == null) {
|
|
a2.b(a, optJSONObject.put(name, new JSONObject().put(str, obj)));
|
|
} else {
|
|
a2.b(a, optJSONObject.put(name, optJSONObject2.put(str, obj)));
|
|
}
|
|
} catch (JSONException e) {
|
|
i9.d().a(e);
|
|
}
|
|
}
|
|
|
|
public void a(String str, JSONObject jSONObject) {
|
|
bd.a().a(str, jSONObject);
|
|
}
|
|
|
|
public void a(Map<String, Object> map) {
|
|
bd.a().a(map);
|
|
}
|
|
}
|