Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
package com.sistemasolton.itranvias.data.preferences;
|
||||
|
||||
import androidx.datastore.core.DataStore;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import org.koin.core.definition.BeanDefinition;
|
||||
import org.koin.core.definition.Kind;
|
||||
import org.koin.core.definition.KoinDefinition;
|
||||
import org.koin.core.instance.SingleInstanceFactory;
|
||||
import org.koin.core.module.Module;
|
||||
import org.koin.core.parameter.ParametersHolder;
|
||||
import org.koin.core.registry.ScopeRegistry;
|
||||
import org.koin.core.scope.Scope;
|
||||
import org.koin.dsl.ModuleDSLKt;
|
||||
|
||||
/* JADX INFO: compiled from: DataStoreModule.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0011\u0010\u0000\u001a\u00020\u0001¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"dataStoreModule", "Lorg/koin/core/module/Module;", "getDataStoreModule", "()Lorg/koin/core/module/Module;", "composeApp_release"}, k = 2, mv = {2, 1, 0}, xi = 48)
|
||||
public final class DataStoreModuleKt {
|
||||
private static final Module dataStoreModule = ModuleDSLKt.module$default(false, new Function1() { // from class: com.sistemasolton.itranvias.data.preferences.DataStoreModuleKt$$ExternalSyntheticLambda0
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
return DataStoreModuleKt.dataStoreModule$lambda$2((Module) obj);
|
||||
}
|
||||
}, 1, null);
|
||||
|
||||
public static final Module getDataStoreModule() {
|
||||
return dataStoreModule;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final DataStore dataStoreModule$lambda$2$lambda$0(Scope single, ParametersHolder it) {
|
||||
Intrinsics.checkNotNullParameter(single, "$this$single");
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return CreateDataStore_androidKt.createDataStore();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final SettingsRepository dataStoreModule$lambda$2$lambda$1(Scope single, ParametersHolder it) {
|
||||
Intrinsics.checkNotNullParameter(single, "$this$single");
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return new SettingsRepository((DataStore) single.get(Reflection.getOrCreateKotlinClass(DataStore.class), null, null));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit dataStoreModule$lambda$2(Module module) {
|
||||
Intrinsics.checkNotNullParameter(module, "$this$module");
|
||||
Function2 function2 = new Function2() { // from class: com.sistemasolton.itranvias.data.preferences.DataStoreModuleKt$$ExternalSyntheticLambda1
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return DataStoreModuleKt.dataStoreModule$lambda$2$lambda$0((Scope) obj, (ParametersHolder) obj2);
|
||||
}
|
||||
};
|
||||
SingleInstanceFactory<?> singleInstanceFactory = new SingleInstanceFactory<>(new BeanDefinition(ScopeRegistry.INSTANCE.getRootScopeQualifier(), Reflection.getOrCreateKotlinClass(DataStore.class), null, function2, Kind.Singleton, CollectionsKt.emptyList()));
|
||||
SingleInstanceFactory<?> singleInstanceFactory2 = singleInstanceFactory;
|
||||
module.indexPrimaryType(singleInstanceFactory2);
|
||||
if (module.get_createdAtStart()) {
|
||||
module.prepareForCreationAtStart(singleInstanceFactory);
|
||||
}
|
||||
new KoinDefinition(module, singleInstanceFactory2);
|
||||
Function2 function22 = new Function2() { // from class: com.sistemasolton.itranvias.data.preferences.DataStoreModuleKt$$ExternalSyntheticLambda2
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return DataStoreModuleKt.dataStoreModule$lambda$2$lambda$1((Scope) obj, (ParametersHolder) obj2);
|
||||
}
|
||||
};
|
||||
SingleInstanceFactory<?> singleInstanceFactory3 = new SingleInstanceFactory<>(new BeanDefinition(ScopeRegistry.INSTANCE.getRootScopeQualifier(), Reflection.getOrCreateKotlinClass(SettingsRepository.class), null, function22, Kind.Singleton, CollectionsKt.emptyList()));
|
||||
SingleInstanceFactory<?> singleInstanceFactory4 = singleInstanceFactory3;
|
||||
module.indexPrimaryType(singleInstanceFactory4);
|
||||
if (module.get_createdAtStart()) {
|
||||
module.prepareForCreationAtStart(singleInstanceFactory3);
|
||||
}
|
||||
new KoinDefinition(module, singleInstanceFactory4);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user