- 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
63 lines
2.4 KiB
Java
63 lines
2.4 KiB
Java
package com.google.firebase.sessions.settings;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import com.google.firebase.sessions.settings.SettingsProvider;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.time.Duration;
|
|
import kotlin.time.DurationKt;
|
|
import kotlin.time.DurationUnit;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class LocalOverrideSettings implements SettingsProvider {
|
|
public static final Companion Companion = new Companion(null);
|
|
public final Bundle metadata;
|
|
|
|
public LocalOverrideSettings(Context context) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Bundle bundle = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData;
|
|
this.metadata = bundle == null ? Bundle.EMPTY : bundle;
|
|
}
|
|
|
|
@Override // com.google.firebase.sessions.settings.SettingsProvider
|
|
public Object updateSettings(Continuation continuation) {
|
|
return SettingsProvider.DefaultImpls.updateSettings(this, continuation);
|
|
}
|
|
|
|
@Override // com.google.firebase.sessions.settings.SettingsProvider
|
|
public Boolean getSessionEnabled() {
|
|
if (this.metadata.containsKey("firebase_sessions_enabled")) {
|
|
return Boolean.valueOf(this.metadata.getBoolean("firebase_sessions_enabled"));
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // com.google.firebase.sessions.settings.SettingsProvider
|
|
/* renamed from: getSessionRestartTimeout-FghU774, reason: not valid java name */
|
|
public Duration mo852getSessionRestartTimeoutFghU774() {
|
|
if (this.metadata.containsKey("firebase_sessions_sessions_restart_timeout")) {
|
|
return Duration.m4073boximpl(DurationKt.toDuration(this.metadata.getInt("firebase_sessions_sessions_restart_timeout"), DurationUnit.SECONDS));
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // com.google.firebase.sessions.settings.SettingsProvider
|
|
public Double getSamplingRate() {
|
|
if (this.metadata.containsKey("firebase_sessions_sampling_rate")) {
|
|
return Double.valueOf(this.metadata.getDouble("firebase_sessions_sampling_rate"));
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public Companion() {
|
|
}
|
|
}
|
|
}
|