- 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
159 lines
8.2 KiB
Java
159 lines
8.2 KiB
Java
package com.google.firebase.sessions;
|
|
|
|
import android.app.Application;
|
|
import android.content.Context;
|
|
import android.util.Log;
|
|
import com.google.firebase.FirebaseApp;
|
|
import com.google.firebase.sessions.settings.SessionsSettings;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.CoroutineContext;
|
|
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
import kotlinx.coroutines.CoroutineScopeKt;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class FirebaseSessions {
|
|
public static final Companion Companion = new Companion(null);
|
|
public final FirebaseApp firebaseApp;
|
|
public final SessionsSettings settings;
|
|
|
|
public FirebaseSessions(FirebaseApp firebaseApp, SessionsSettings settings, CoroutineContext backgroundDispatcher, SessionLifecycleServiceBinder lifecycleServiceBinder) {
|
|
Intrinsics.checkNotNullParameter(firebaseApp, "firebaseApp");
|
|
Intrinsics.checkNotNullParameter(settings, "settings");
|
|
Intrinsics.checkNotNullParameter(backgroundDispatcher, "backgroundDispatcher");
|
|
Intrinsics.checkNotNullParameter(lifecycleServiceBinder, "lifecycleServiceBinder");
|
|
this.firebaseApp = firebaseApp;
|
|
this.settings = settings;
|
|
Context applicationContext = firebaseApp.getApplicationContext().getApplicationContext();
|
|
if (applicationContext instanceof Application) {
|
|
((Application) applicationContext).registerActivityLifecycleCallbacks(SessionsActivityLifecycleCallbacks.INSTANCE);
|
|
BuildersKt__Builders_commonKt.launch$default(CoroutineScopeKt.CoroutineScope(backgroundDispatcher), null, null, new AnonymousClass1(backgroundDispatcher, lifecycleServiceBinder, null), 3, null);
|
|
return;
|
|
}
|
|
Log.e("FirebaseSessions", "Failed to register lifecycle callbacks, unexpected context " + applicationContext.getClass() + '.');
|
|
}
|
|
|
|
/* renamed from: com.google.firebase.sessions.FirebaseSessions$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends SuspendLambda implements Function2 {
|
|
public final /* synthetic */ CoroutineContext $backgroundDispatcher;
|
|
public final /* synthetic */ SessionLifecycleServiceBinder $lifecycleServiceBinder;
|
|
public int label;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(CoroutineContext coroutineContext, SessionLifecycleServiceBinder sessionLifecycleServiceBinder, Continuation continuation) {
|
|
super(2, continuation);
|
|
this.$backgroundDispatcher = coroutineContext;
|
|
this.$lifecycleServiceBinder = sessionLifecycleServiceBinder;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Continuation create(Object obj, Continuation continuation) {
|
|
return FirebaseSessions.this.new AnonymousClass1(this.$backgroundDispatcher, this.$lifecycleServiceBinder, continuation);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) {
|
|
return ((AnonymousClass1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0074 */
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object invokeSuspend(java.lang.Object r5) {
|
|
/*
|
|
r4 = this;
|
|
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r1 = r4.label
|
|
r2 = 2
|
|
r3 = 1
|
|
if (r1 == 0) goto L1e
|
|
if (r1 == r3) goto L1a
|
|
if (r1 != r2) goto L12
|
|
kotlin.ResultKt.throwOnFailure(r5)
|
|
goto L67
|
|
L12:
|
|
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
|
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
|
r5.<init>(r0)
|
|
throw r5
|
|
L1a:
|
|
kotlin.ResultKt.throwOnFailure(r5)
|
|
goto L2c
|
|
L1e:
|
|
kotlin.ResultKt.throwOnFailure(r5)
|
|
com.google.firebase.sessions.api.FirebaseSessionsDependencies r5 = com.google.firebase.sessions.api.FirebaseSessionsDependencies.INSTANCE
|
|
r4.label = r3
|
|
java.lang.Object r5 = r5.getRegisteredSubscribers$com_google_firebase_firebase_sessions(r4)
|
|
if (r5 != r0) goto L2c
|
|
return r0
|
|
L2c:
|
|
java.util.Map r5 = (java.util.Map) r5
|
|
java.util.Collection r5 = r5.values()
|
|
java.lang.Iterable r5 = (java.lang.Iterable) r5
|
|
boolean r1 = r5 instanceof java.util.Collection
|
|
if (r1 == 0) goto L42
|
|
r1 = r5
|
|
java.util.Collection r1 = (java.util.Collection) r1
|
|
boolean r1 = r1.isEmpty()
|
|
if (r1 == 0) goto L42
|
|
goto L93
|
|
L42:
|
|
java.util.Iterator r5 = r5.iterator()
|
|
L46:
|
|
boolean r1 = r5.hasNext()
|
|
if (r1 == 0) goto L93
|
|
java.lang.Object r1 = r5.next()
|
|
com.google.firebase.sessions.api.SessionSubscriber r1 = (com.google.firebase.sessions.api.SessionSubscriber) r1
|
|
boolean r1 = r1.isDataCollectionEnabled()
|
|
if (r1 == 0) goto L46
|
|
com.google.firebase.sessions.FirebaseSessions r5 = com.google.firebase.sessions.FirebaseSessions.this
|
|
com.google.firebase.sessions.settings.SessionsSettings r5 = com.google.firebase.sessions.FirebaseSessions.access$getSettings$p(r5)
|
|
r4.label = r2
|
|
java.lang.Object r5 = r5.updateSettings(r4)
|
|
if (r5 != r0) goto L67
|
|
return r0
|
|
L67:
|
|
com.google.firebase.sessions.FirebaseSessions r5 = com.google.firebase.sessions.FirebaseSessions.this
|
|
com.google.firebase.sessions.settings.SessionsSettings r5 = com.google.firebase.sessions.FirebaseSessions.access$getSettings$p(r5)
|
|
boolean r5 = r5.getSessionsEnabled()
|
|
if (r5 != 0) goto L74
|
|
goto L93
|
|
L74:
|
|
com.google.firebase.sessions.SessionLifecycleClient r5 = new com.google.firebase.sessions.SessionLifecycleClient
|
|
kotlin.coroutines.CoroutineContext r0 = r4.$backgroundDispatcher
|
|
r5.<init>(r0)
|
|
com.google.firebase.sessions.SessionLifecycleServiceBinder r0 = r4.$lifecycleServiceBinder
|
|
r5.bindToService(r0)
|
|
com.google.firebase.sessions.SessionsActivityLifecycleCallbacks r0 = com.google.firebase.sessions.SessionsActivityLifecycleCallbacks.INSTANCE
|
|
r0.setLifecycleClient(r5)
|
|
com.google.firebase.sessions.FirebaseSessions r5 = com.google.firebase.sessions.FirebaseSessions.this
|
|
com.google.firebase.FirebaseApp r5 = com.google.firebase.sessions.FirebaseSessions.access$getFirebaseApp$p(r5)
|
|
com.google.firebase.sessions.FirebaseSessions$1$$ExternalSyntheticLambda0 r0 = new com.google.firebase.sessions.FirebaseSessions$1$$ExternalSyntheticLambda0
|
|
r0.<init>()
|
|
r5.addLifecycleEventListener(r0)
|
|
L93:
|
|
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
|
return r5
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.sessions.FirebaseSessions.AnonymousClass1.invokeSuspend(java.lang.Object):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public Companion() {
|
|
}
|
|
}
|
|
}
|