- 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
152 lines
5.3 KiB
Java
152 lines
5.3 KiB
Java
package com.facebook.appevents;
|
|
|
|
import com.facebook.internal.instrument.crashshield.CrashShieldHandler;
|
|
import java.io.ObjectStreamException;
|
|
import java.io.Serializable;
|
|
import java.util.Collection;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import kotlin.collections.CollectionsKt___CollectionsKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class PersistedEvents implements Serializable {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final long serialVersionUID = 20160629001L;
|
|
private final HashMap<AccessTokenAppIdPair, List<AppEvent>> events;
|
|
|
|
public PersistedEvents() {
|
|
this.events = new HashMap<>();
|
|
}
|
|
|
|
public PersistedEvents(HashMap<AccessTokenAppIdPair, List<AppEvent>> appEventMap) {
|
|
Intrinsics.checkNotNullParameter(appEventMap, "appEventMap");
|
|
HashMap<AccessTokenAppIdPair, List<AppEvent>> hashMap = new HashMap<>();
|
|
this.events = hashMap;
|
|
hashMap.putAll(appEventMap);
|
|
}
|
|
|
|
public final Set<AccessTokenAppIdPair> keySet() {
|
|
if (CrashShieldHandler.isObjectCrashing(this)) {
|
|
return null;
|
|
}
|
|
try {
|
|
Set<AccessTokenAppIdPair> keySet = this.events.keySet();
|
|
Intrinsics.checkNotNullExpressionValue(keySet, "events.keys");
|
|
return keySet;
|
|
} catch (Throwable th) {
|
|
CrashShieldHandler.handleThrowable(th, this);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public final Set<Map.Entry<AccessTokenAppIdPair, List<AppEvent>>> entrySet() {
|
|
if (CrashShieldHandler.isObjectCrashing(this)) {
|
|
return null;
|
|
}
|
|
try {
|
|
Set<Map.Entry<AccessTokenAppIdPair, List<AppEvent>>> entrySet = this.events.entrySet();
|
|
Intrinsics.checkNotNullExpressionValue(entrySet, "events.entries");
|
|
return entrySet;
|
|
} catch (Throwable th) {
|
|
CrashShieldHandler.handleThrowable(th, this);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public final List<AppEvent> get(AccessTokenAppIdPair accessTokenAppIdPair) {
|
|
if (CrashShieldHandler.isObjectCrashing(this)) {
|
|
return null;
|
|
}
|
|
try {
|
|
Intrinsics.checkNotNullParameter(accessTokenAppIdPair, "accessTokenAppIdPair");
|
|
return this.events.get(accessTokenAppIdPair);
|
|
} catch (Throwable th) {
|
|
CrashShieldHandler.handleThrowable(th, this);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public final boolean containsKey(AccessTokenAppIdPair accessTokenAppIdPair) {
|
|
if (CrashShieldHandler.isObjectCrashing(this)) {
|
|
return false;
|
|
}
|
|
try {
|
|
Intrinsics.checkNotNullParameter(accessTokenAppIdPair, "accessTokenAppIdPair");
|
|
return this.events.containsKey(accessTokenAppIdPair);
|
|
} catch (Throwable th) {
|
|
CrashShieldHandler.handleThrowable(th, this);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public final void addEvents(AccessTokenAppIdPair accessTokenAppIdPair, List<AppEvent> appEvents) {
|
|
if (CrashShieldHandler.isObjectCrashing(this)) {
|
|
return;
|
|
}
|
|
try {
|
|
Intrinsics.checkNotNullParameter(accessTokenAppIdPair, "accessTokenAppIdPair");
|
|
Intrinsics.checkNotNullParameter(appEvents, "appEvents");
|
|
if (!this.events.containsKey(accessTokenAppIdPair)) {
|
|
this.events.put(accessTokenAppIdPair, CollectionsKt___CollectionsKt.toMutableList((Collection) appEvents));
|
|
return;
|
|
}
|
|
List<AppEvent> list = this.events.get(accessTokenAppIdPair);
|
|
if (list == null) {
|
|
return;
|
|
}
|
|
list.addAll(appEvents);
|
|
} catch (Throwable th) {
|
|
CrashShieldHandler.handleThrowable(th, this);
|
|
}
|
|
}
|
|
|
|
public static final class SerializationProxyV1 implements Serializable {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final long serialVersionUID = 20160629001L;
|
|
private final HashMap<AccessTokenAppIdPair, List<AppEvent>> proxyEvents;
|
|
|
|
public SerializationProxyV1(HashMap<AccessTokenAppIdPair, List<AppEvent>> proxyEvents) {
|
|
Intrinsics.checkNotNullParameter(proxyEvents, "proxyEvents");
|
|
this.proxyEvents = proxyEvents;
|
|
}
|
|
|
|
private final Object readResolve() throws ObjectStreamException {
|
|
return new PersistedEvents(this.proxyEvents);
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|
|
|
|
private final Object writeReplace() throws ObjectStreamException {
|
|
if (CrashShieldHandler.isObjectCrashing(this)) {
|
|
return null;
|
|
}
|
|
try {
|
|
return new SerializationProxyV1(this.events);
|
|
} catch (Throwable th) {
|
|
CrashShieldHandler.handleThrowable(th, this);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|