Files
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

50 lines
1.6 KiB
Java

package com.ironsource;
import java.util.LinkedHashMap;
import java.util.Map;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class jo {
public static final a b = new a(null);
public static final String c = "placements";
public static final String d = "placementName";
private final JSONArray a;
public static final class a {
private a() {
}
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
public jo(JSONObject configuration) {
Intrinsics.checkNotNullParameter(configuration, "configuration");
this.a = configuration.optJSONArray(c);
}
public final <T> Map<String, T> a(Function1 valueExtractor) {
Intrinsics.checkNotNullParameter(valueExtractor, "valueExtractor");
LinkedHashMap linkedHashMap = new LinkedHashMap();
JSONArray jSONArray = this.a;
if (jSONArray != null) {
int length = jSONArray.length();
for (int i = 0; i < length; i++) {
JSONObject jsonObject = jSONArray.getJSONObject(i);
String key = jsonObject.optString(d);
Intrinsics.checkNotNullExpressionValue(jsonObject, "jsonObject");
Object invoke = valueExtractor.invoke(jsonObject);
Intrinsics.checkNotNullExpressionValue(key, "key");
linkedHashMap.put(key, invoke);
}
}
return linkedHashMap;
}
}