- 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
129 lines
5.3 KiB
Java
129 lines
5.3 KiB
Java
package com.facebook.internal.gatekeeper;
|
|
|
|
import com.facebook.FacebookSdk;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class GateKeeperRuntimeCache {
|
|
private final ConcurrentHashMap<String, ConcurrentHashMap<String, GateKeeper>> gateKeepers = new ConcurrentHashMap<>();
|
|
|
|
public static /* synthetic */ void setGateKeepers$default(GateKeeperRuntimeCache gateKeeperRuntimeCache, String str, List list, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = FacebookSdk.getApplicationId();
|
|
}
|
|
gateKeeperRuntimeCache.setGateKeepers(str, list);
|
|
}
|
|
|
|
public final void setGateKeepers(String appId, List<GateKeeper> gateKeeperList) {
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
Intrinsics.checkNotNullParameter(gateKeeperList, "gateKeeperList");
|
|
ConcurrentHashMap<String, GateKeeper> concurrentHashMap = new ConcurrentHashMap<>();
|
|
for (GateKeeper gateKeeper : gateKeeperList) {
|
|
concurrentHashMap.put(gateKeeper.getName(), gateKeeper);
|
|
}
|
|
this.gateKeepers.put(appId, concurrentHashMap);
|
|
}
|
|
|
|
public static /* synthetic */ List dumpGateKeepers$default(GateKeeperRuntimeCache gateKeeperRuntimeCache, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = FacebookSdk.getApplicationId();
|
|
}
|
|
return gateKeeperRuntimeCache.dumpGateKeepers(str);
|
|
}
|
|
|
|
public final List<GateKeeper> dumpGateKeepers(String appId) {
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
ConcurrentHashMap<String, GateKeeper> concurrentHashMap = this.gateKeepers.get(appId);
|
|
if (concurrentHashMap == null) {
|
|
return null;
|
|
}
|
|
ArrayList arrayList = new ArrayList(concurrentHashMap.size());
|
|
Iterator<Map.Entry<String, GateKeeper>> it = concurrentHashMap.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
arrayList.add(it.next().getValue());
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
public static /* synthetic */ boolean getGateKeeperValue$default(GateKeeperRuntimeCache gateKeeperRuntimeCache, String str, String str2, boolean z, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = FacebookSdk.getApplicationId();
|
|
}
|
|
return gateKeeperRuntimeCache.getGateKeeperValue(str, str2, z);
|
|
}
|
|
|
|
public final boolean getGateKeeperValue(String appId, String name, boolean z) {
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
Intrinsics.checkNotNullParameter(name, "name");
|
|
GateKeeper gateKeeper = getGateKeeper(appId, name);
|
|
return gateKeeper == null ? z : gateKeeper.getValue();
|
|
}
|
|
|
|
public static /* synthetic */ void setGateKeeperValue$default(GateKeeperRuntimeCache gateKeeperRuntimeCache, String str, String str2, boolean z, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = FacebookSdk.getApplicationId();
|
|
}
|
|
gateKeeperRuntimeCache.setGateKeeperValue(str, str2, z);
|
|
}
|
|
|
|
public final void setGateKeeperValue(String appId, String name, boolean z) {
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
Intrinsics.checkNotNullParameter(name, "name");
|
|
setGateKeeper(appId, new GateKeeper(name, z));
|
|
}
|
|
|
|
public static /* synthetic */ GateKeeper getGateKeeper$default(GateKeeperRuntimeCache gateKeeperRuntimeCache, String str, String str2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = FacebookSdk.getApplicationId();
|
|
}
|
|
return gateKeeperRuntimeCache.getGateKeeper(str, str2);
|
|
}
|
|
|
|
public final GateKeeper getGateKeeper(String appId, String name) {
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
Intrinsics.checkNotNullParameter(name, "name");
|
|
ConcurrentHashMap<String, GateKeeper> concurrentHashMap = this.gateKeepers.get(appId);
|
|
if (concurrentHashMap == null) {
|
|
return null;
|
|
}
|
|
return concurrentHashMap.get(name);
|
|
}
|
|
|
|
public static /* synthetic */ void setGateKeeper$default(GateKeeperRuntimeCache gateKeeperRuntimeCache, String str, GateKeeper gateKeeper, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = FacebookSdk.getApplicationId();
|
|
}
|
|
gateKeeperRuntimeCache.setGateKeeper(str, gateKeeper);
|
|
}
|
|
|
|
public final void setGateKeeper(String appId, GateKeeper gateKeeper) {
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
Intrinsics.checkNotNullParameter(gateKeeper, "gateKeeper");
|
|
if (!this.gateKeepers.containsKey(appId)) {
|
|
this.gateKeepers.put(appId, new ConcurrentHashMap<>());
|
|
}
|
|
ConcurrentHashMap<String, GateKeeper> concurrentHashMap = this.gateKeepers.get(appId);
|
|
if (concurrentHashMap == null) {
|
|
return;
|
|
}
|
|
concurrentHashMap.put(gateKeeper.getName(), gateKeeper);
|
|
}
|
|
|
|
public static /* synthetic */ void resetCache$default(GateKeeperRuntimeCache gateKeeperRuntimeCache, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = FacebookSdk.getApplicationId();
|
|
}
|
|
gateKeeperRuntimeCache.resetCache(str);
|
|
}
|
|
|
|
public final void resetCache(String appId) {
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
this.gateKeepers.remove(appId);
|
|
}
|
|
}
|