Files
rr3-apk/decompiled/sources/com/facebook/appevents/AppEventStore.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -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);
}
}
}
}