Files
rr3-apk/decompiled-community/sources/com/fyber/inneractive/sdk/config/k.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

84 lines
2.6 KiB
Java

package com.fyber.inneractive.sdk.config;
import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class k {
public final HashMap a = new HashMap();
public final HashMap b = new HashMap();
public final String a(String str, String str2) {
return this.a.containsKey(str) ? (String) this.a.get(str) : str2;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || k.class != obj.getClass()) {
return false;
}
k kVar = (k) obj;
return this.a.equals(kVar.a) && this.b.equals(kVar.b);
}
public final int hashCode() {
return this.a.hashCode();
}
public static k a(JSONObject jSONObject) {
k kVar = new k();
JSONObject optJSONObject = jSONObject.optJSONObject("params");
JSONObject optJSONObject2 = jSONObject.optJSONObject("overrides");
JSONArray names = optJSONObject.names();
for (int i = 0; i < names.length(); i++) {
String optString = names.optString(i, null);
String optString2 = optJSONObject.optString(optString, null);
if (optString != null && optString2 != null) {
kVar.a.put(optString, optString2);
}
}
if (optJSONObject2 != null) {
JSONArray names2 = optJSONObject2.names();
for (int i2 = 0; i2 < names2.length(); i2++) {
String optString3 = names2.optString(i2, null);
JSONObject optJSONObject3 = optJSONObject2.optJSONObject(optString3);
if (optString3 != null && optJSONObject3 != null) {
kVar.b.put(optString3, new i(optJSONObject3));
}
}
}
return kVar;
}
public final int a(int i, int i2, String str) {
try {
i = Integer.parseInt(a(str, Integer.toString(i)));
} catch (Throwable unused) {
}
return Math.max(i, i2);
}
public final boolean a(boolean z, String str) {
try {
return Boolean.parseBoolean(a(str, Boolean.toString(z)));
} catch (Throwable unused) {
return z;
}
}
public final h a(String str) {
i iVar;
String str2 = IAConfigManager.L.d;
if (this.b.containsKey(str2)) {
iVar = (i) this.b.get(str2);
} else {
iVar = new i();
}
iVar.getClass();
return iVar.a.containsKey(str) ? (h) iVar.a.get(str) : new h();
}
}