Files
rr3-apk/decompiled-community/sources/com/facebook/appevents/AppEventStore.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

56 lines
2.6 KiB
Java

package com.facebook.appevents;
import com.facebook.appevents.internal.AppEventUtility;
import com.facebook.internal.instrument.crashshield.CrashShieldHandler;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes2.dex */
public final class AppEventStore {
public static final AppEventStore INSTANCE = new AppEventStore();
private static final String TAG = AppEventStore.class.getName();
private AppEventStore() {
}
public static final synchronized void persistEvents(AccessTokenAppIdPair accessTokenAppIdPair, SessionEventsState appEvents) {
synchronized (AppEventStore.class) {
if (CrashShieldHandler.isObjectCrashing(AppEventStore.class)) {
return;
}
try {
Intrinsics.checkNotNullParameter(accessTokenAppIdPair, "accessTokenAppIdPair");
Intrinsics.checkNotNullParameter(appEvents, "appEvents");
AppEventUtility.assertIsNotMainThread();
PersistedEvents readAndClearStore = AppEventDiskStore.readAndClearStore();
readAndClearStore.addEvents(accessTokenAppIdPair, appEvents.getEventsToPersist());
AppEventDiskStore.saveEventsToDisk$facebook_core_release(readAndClearStore);
} catch (Throwable th) {
CrashShieldHandler.handleThrowable(th, AppEventStore.class);
}
}
}
public static final synchronized void persistEvents(AppEventCollection eventsToPersist) {
synchronized (AppEventStore.class) {
if (CrashShieldHandler.isObjectCrashing(AppEventStore.class)) {
return;
}
try {
Intrinsics.checkNotNullParameter(eventsToPersist, "eventsToPersist");
AppEventUtility.assertIsNotMainThread();
PersistedEvents readAndClearStore = AppEventDiskStore.readAndClearStore();
for (AccessTokenAppIdPair accessTokenAppIdPair : eventsToPersist.keySet()) {
SessionEventsState sessionEventsState = eventsToPersist.get(accessTokenAppIdPair);
if (sessionEventsState == null) {
throw new IllegalStateException("Required value was null.".toString());
}
readAndClearStore.addEvents(accessTokenAppIdPair, sessionEventsState.getEventsToPersist());
}
AppEventDiskStore.saveEventsToDisk$facebook_core_release(readAndClearStore);
} catch (Throwable th) {
CrashShieldHandler.handleThrowable(th, AppEventStore.class);
}
}
}
}