package androidx.datastore; import android.content.Context; import androidx.datastore.core.Serializer; import androidx.datastore.core.handlers.ReplaceFileCorruptionHandler; import java.util.List; import kotlin.collections.CollectionsKt__CollectionsKt; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Intrinsics; import kotlin.properties.ReadOnlyProperty; import kotlinx.coroutines.CoroutineScope; import kotlinx.coroutines.CoroutineScopeKt; import kotlinx.coroutines.Dispatchers; import kotlinx.coroutines.SupervisorKt; /* loaded from: classes.dex */ public final class DataStoreDelegateKt { public static /* synthetic */ ReadOnlyProperty dataStore$default(String str, Serializer serializer, ReplaceFileCorruptionHandler replaceFileCorruptionHandler, Function1 function1, CoroutineScope coroutineScope, int i, Object obj) { if ((i & 4) != 0) { replaceFileCorruptionHandler = null; } if ((i & 8) != 0) { function1 = new Function1() { // from class: androidx.datastore.DataStoreDelegateKt$dataStore$1 @Override // kotlin.jvm.functions.Function1 public final List invoke(Context it) { Intrinsics.checkNotNullParameter(it, "it"); return CollectionsKt__CollectionsKt.emptyList(); } }; } if ((i & 16) != 0) { coroutineScope = CoroutineScopeKt.CoroutineScope(Dispatchers.getIO().plus(SupervisorKt.SupervisorJob$default(null, 1, null))); } return dataStore(str, serializer, replaceFileCorruptionHandler, function1, coroutineScope); } public static final ReadOnlyProperty dataStore(String fileName, Serializer serializer, ReplaceFileCorruptionHandler replaceFileCorruptionHandler, Function1 produceMigrations, CoroutineScope scope) { Intrinsics.checkNotNullParameter(fileName, "fileName"); Intrinsics.checkNotNullParameter(serializer, "serializer"); Intrinsics.checkNotNullParameter(produceMigrations, "produceMigrations"); Intrinsics.checkNotNullParameter(scope, "scope"); return new DataStoreSingletonDelegate(fileName, serializer, replaceFileCorruptionHandler, produceMigrations, scope); } }