- 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
60 lines
1.5 KiB
Java
60 lines
1.5 KiB
Java
package com.mbridge.msdk.c;
|
|
|
|
import android.text.TextUtils;
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class e {
|
|
public int a;
|
|
private HashMap<String, f> b;
|
|
|
|
public static class a {
|
|
private static final e a = new e();
|
|
}
|
|
|
|
private e() {
|
|
this.a = 6;
|
|
this.b = new HashMap<>();
|
|
}
|
|
|
|
public static e a() {
|
|
return a.a;
|
|
}
|
|
|
|
public final int a(String str) {
|
|
HashMap<String, f> hashMap;
|
|
f fVar;
|
|
if (TextUtils.isEmpty(str) || (hashMap = this.b) == null || !hashMap.containsKey(str) || (fVar = this.b.get(str)) == null) {
|
|
return 0;
|
|
}
|
|
int i = fVar.b() ? 1 : fVar.a() >= this.a ? 2 : 0;
|
|
fVar.a(false);
|
|
return i;
|
|
}
|
|
|
|
public final void b(String str) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
try {
|
|
JSONObject jSONObject = new JSONObject(str);
|
|
if (this.b == null) {
|
|
this.b = new HashMap<>();
|
|
}
|
|
Iterator<String> keys = jSONObject.keys();
|
|
while (keys.hasNext()) {
|
|
String next = keys.next();
|
|
String string = jSONObject.getString(next);
|
|
f fVar = new f();
|
|
fVar.a(next);
|
|
fVar.b(string);
|
|
this.b.put(next, fVar);
|
|
}
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|