Files
rr3-apk/decompiled-community/sources/com/google/firebase/sessions/settings/RemoteSettings.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

111 lines
5.1 KiB
Java

package com.google.firebase.sessions.settings;
import androidx.datastore.core.DataStore;
import com.google.firebase.installations.FirebaseInstallationsApi;
import com.google.firebase.sessions.ApplicationInfo;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import kotlin.time.Duration;
import kotlin.time.DurationKt;
import kotlin.time.DurationUnit;
import kotlinx.coroutines.sync.Mutex;
import kotlinx.coroutines.sync.MutexKt;
/* loaded from: classes3.dex */
public final class RemoteSettings implements SettingsProvider {
public static final Companion Companion = new Companion(null);
public final ApplicationInfo appInfo;
public final CoroutineContext backgroundDispatcher;
public final CrashlyticsSettingsFetcher configsFetcher;
public final Mutex fetchInProgress;
public final FirebaseInstallationsApi firebaseInstallationsApi;
public final Lazy settingsCache$delegate;
public RemoteSettings(CoroutineContext backgroundDispatcher, FirebaseInstallationsApi firebaseInstallationsApi, ApplicationInfo appInfo, CrashlyticsSettingsFetcher configsFetcher, final DataStore dataStore) {
Lazy lazy;
Intrinsics.checkNotNullParameter(backgroundDispatcher, "backgroundDispatcher");
Intrinsics.checkNotNullParameter(firebaseInstallationsApi, "firebaseInstallationsApi");
Intrinsics.checkNotNullParameter(appInfo, "appInfo");
Intrinsics.checkNotNullParameter(configsFetcher, "configsFetcher");
Intrinsics.checkNotNullParameter(dataStore, "dataStore");
this.backgroundDispatcher = backgroundDispatcher;
this.firebaseInstallationsApi = firebaseInstallationsApi;
this.appInfo = appInfo;
this.configsFetcher = configsFetcher;
lazy = LazyKt__LazyJVMKt.lazy(new Function0() { // from class: com.google.firebase.sessions.settings.RemoteSettings$settingsCache$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final SettingsCache invoke() {
return new SettingsCache(DataStore.this);
}
});
this.settingsCache$delegate = lazy;
this.fetchInProgress = MutexKt.Mutex$default(false, 1, null);
}
public final SettingsCache getSettingsCache() {
return (SettingsCache) this.settingsCache$delegate.getValue();
}
@Override // com.google.firebase.sessions.settings.SettingsProvider
public Boolean getSessionEnabled() {
return getSettingsCache().sessionsEnabled();
}
@Override // com.google.firebase.sessions.settings.SettingsProvider
/* renamed from: getSessionRestartTimeout-FghU774 */
public Duration mo852getSessionRestartTimeoutFghU774() {
Integer sessionRestartTimeout = getSettingsCache().sessionRestartTimeout();
if (sessionRestartTimeout == null) {
return null;
}
Duration.Companion companion = Duration.Companion;
return Duration.m4073boximpl(DurationKt.toDuration(sessionRestartTimeout.intValue(), DurationUnit.SECONDS));
}
@Override // com.google.firebase.sessions.settings.SettingsProvider
public Double getSamplingRate() {
return getSettingsCache().sessionSamplingRate();
}
/* JADX WARN: Removed duplicated region for block: B:29:0x00be A[Catch: all -> 0x004d, TRY_LEAVE, TryCatch #2 {all -> 0x004d, blocks: (B:26:0x0048, B:27:0x00b0, B:29:0x00be, B:33:0x00cc), top: B:25:0x0048 }] */
/* JADX WARN: Removed duplicated region for block: B:32:0x00cb */
/* JADX WARN: Removed duplicated region for block: B:43:0x0090 A[Catch: all -> 0x0096, TRY_LEAVE, TryCatch #1 {all -> 0x0096, blocks: (B:41:0x0086, B:43:0x0090, B:46:0x009c), top: B:40:0x0086 }] */
/* JADX WARN: Removed duplicated region for block: B:46:0x009c A[Catch: all -> 0x0096, TRY_ENTER, TRY_LEAVE, TryCatch #1 {all -> 0x0096, blocks: (B:41:0x0086, B:43:0x0090, B:46:0x009c), top: B:40:0x0086 }] */
/* JADX WARN: Removed duplicated region for block: B:52:0x005e */
/* JADX WARN: Removed duplicated region for block: B:8:0x0026 */
@Override // com.google.firebase.sessions.settings.SettingsProvider
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.Object updateSettings(kotlin.coroutines.Continuation r15) {
/*
Method dump skipped, instructions count: 349
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.sessions.settings.RemoteSettings.updateSettings(kotlin.coroutines.Continuation):java.lang.Object");
}
public final String removeForwardSlashesIn(String str) {
return new Regex("/").replace(str, "");
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public Companion() {
}
}
}