Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class BuildConfig {
|
||||
public static final String BUILD_TYPE = "release";
|
||||
public static final boolean DEBUG = false;
|
||||
public static final String FLAVOR = "proNon_corporate";
|
||||
public static final String FLAVOR_is_corporate = "non_corporate";
|
||||
public static final String FLAVOR_version = "pro";
|
||||
public static final String LIBRARY_PACKAGE_NAME = "com.adif.elcanomovil.repositories";
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.Boxing;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0003\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u008a@"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "it", ""}, k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$1", f = "NetworkBoundResource.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$1\n*L\n1#1,40:1\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NetworkBoundResourceKt$networkBoundResource$1 extends SuspendLambda implements Function2<Throwable, Continuation<? super Boolean>, Object> {
|
||||
int label;
|
||||
|
||||
public NetworkBoundResourceKt$networkBoundResource$1(Continuation<? super NetworkBoundResourceKt$networkBoundResource$1> continuation) {
|
||||
super(2, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new NetworkBoundResourceKt$networkBoundResource$1(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
if (this.label != 0) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return Boxing.boxBoolean(false);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Throwable th, Continuation<? super Boolean> continuation) {
|
||||
return ((NetworkBoundResourceKt$networkBoundResource$1) create(th, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [ResultType] */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\t"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1"}, k = 1, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1<ResultType> implements Flow<AsyncResult<? extends ResultType>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0007\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\b"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2"}, k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n26#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1$2", f = "NetworkBoundResource.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1$2$1 r0 = (com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1$2$1 r0 = new com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object emit$$forInline(Object obj, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new AnonymousClass1(continuation);
|
||||
InlineMarker.mark(5);
|
||||
FlowCollector flowCollector = this.$this_unsafeFlow;
|
||||
AsyncResult<T> success = AsyncResult.INSTANCE.success(obj);
|
||||
InlineMarker.mark(0);
|
||||
flowCollector.emit(success, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
public NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public Object collect$$forInline(FlowCollector flowCollector, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new ContinuationImpl(continuation) { // from class: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1.1
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1.this.collect(null, this);
|
||||
}
|
||||
};
|
||||
InlineMarker.mark(5);
|
||||
Flow flow = this.$this_unsafeTransform$inlined;
|
||||
AnonymousClass2 anonymousClass2 = new AnonymousClass2(flowCollector);
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(anonymousClass2, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [ResultType] */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\t"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1"}, k = 1, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2<ResultType> implements Flow<AsyncResult<? extends ResultType>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0007\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\b"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2"}, k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2", f = "NetworkBoundResource.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2$1 r0 = (com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2$1 r0 = new com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object emit$$forInline(Object obj, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new AnonymousClass1(continuation);
|
||||
InlineMarker.mark(5);
|
||||
FlowCollector flowCollector = this.$this_unsafeFlow;
|
||||
AsyncResult<T> success = AsyncResult.INSTANCE.success(obj);
|
||||
InlineMarker.mark(0);
|
||||
flowCollector.emit(success, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
public NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public Object collect$$forInline(FlowCollector flowCollector, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new ContinuationImpl(continuation) { // from class: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2.1
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2.this.collect(null, this);
|
||||
}
|
||||
};
|
||||
InlineMarker.mark(5);
|
||||
Flow flow = this.$this_unsafeTransform$inlined;
|
||||
AnonymousClass2 anonymousClass2 = new AnonymousClass2(flowCollector);
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(anonymousClass2, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [ResultType] */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\t"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1"}, k = 1, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3<ResultType> implements Flow<AsyncResult<? extends ResultType>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
final /* synthetic */ Throwable $throwable$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0007\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\b"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2"}, k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n31#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
final /* synthetic */ Throwable $throwable$inlined;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3$2", f = "NetworkBoundResource.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector, Throwable th) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
this.$throwable$inlined = th;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3$2$1 r0 = (com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3$2$1 r0 = new com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L47
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r2 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
java.lang.Throwable r4 = r4.$throwable$inlined
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r4 = r2.error(r4, r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r6.emit(r4, r0)
|
||||
if (r4 != r1) goto L47
|
||||
return r1
|
||||
L47:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object emit$$forInline(Object obj, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new AnonymousClass1(continuation);
|
||||
InlineMarker.mark(5);
|
||||
FlowCollector flowCollector = this.$this_unsafeFlow;
|
||||
AsyncResult<T> error = AsyncResult.INSTANCE.error(this.$throwable$inlined, obj);
|
||||
InlineMarker.mark(0);
|
||||
flowCollector.emit(error, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
public NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3(Flow flow, Throwable th) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
this.$throwable$inlined = th;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector, this.$throwable$inlined), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public Object collect$$forInline(FlowCollector flowCollector, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new ContinuationImpl(continuation) { // from class: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3.1
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3.this.collect(null, this);
|
||||
}
|
||||
};
|
||||
InlineMarker.mark(5);
|
||||
Flow flow = this.$this_unsafeTransform$inlined;
|
||||
AnonymousClass2 anonymousClass2 = new AnonymousClass2(flowCollector, this.$throwable$inlined);
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(anonymousClass2, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [ResultType] */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\t"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1"}, k = 1, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4<ResultType> implements Flow<AsyncResult<? extends ResultType>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0007\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\b"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2"}, k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n35#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2", f = "NetworkBoundResource.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2$1 r0 = (com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2$1 r0 = new com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object emit$$forInline(Object obj, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new AnonymousClass1(continuation);
|
||||
InlineMarker.mark(5);
|
||||
FlowCollector flowCollector = this.$this_unsafeFlow;
|
||||
AsyncResult<T> success = AsyncResult.INSTANCE.success(obj);
|
||||
InlineMarker.mark(0);
|
||||
flowCollector.emit(success, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
public NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public Object collect$$forInline(FlowCollector flowCollector, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new ContinuationImpl(continuation) { // from class: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4.1
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4.this.collect(null, this);
|
||||
}
|
||||
};
|
||||
InlineMarker.mark(5);
|
||||
Flow flow = this.$this_unsafeTransform$inlined;
|
||||
AnonymousClass2 anonymousClass2 = new AnonymousClass2(flowCollector);
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(anonymousClass2, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [ResultType] */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;"}, k = 3, mv = {1, 9, 0}, xi = 176)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3", f = "NetworkBoundResource.kt", i = {0, 1, 2, 3, 4, 5, 5}, l = {18, 19, 22, 25, 25, 28, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "throwable"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$0", "L$1"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 4 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n53#2:41\n55#2:45\n53#2:46\n55#2:50\n53#2:51\n55#2:55\n53#2:56\n55#2:60\n55#2:62\n53#2:63\n55#2:67\n53#2:68\n55#2:72\n53#2:73\n55#2:77\n50#3:42\n55#3:44\n50#3:47\n55#3:49\n50#3:52\n55#3:54\n50#3:57\n55#3:59\n55#3:61\n50#3:64\n55#3:66\n50#3:69\n55#3:71\n50#3:74\n55#3:76\n109#4:43\n109#4:48\n109#4:53\n109#4:58\n109#4:65\n109#4:70\n109#4:75\n*S KotlinDebug\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n26#1:41\n26#1:45\n29#1:46\n29#1:50\n31#1:51\n31#1:55\n35#1:56\n35#1:60\n26#1:62\n29#1:63\n29#1:67\n31#1:68\n31#1:72\n35#1:73\n35#1:77\n26#1:42\n26#1:44\n29#1:47\n29#1:49\n31#1:52\n31#1:54\n35#1:57\n35#1:59\n26#1:61\n29#1:64\n29#1:66\n31#1:69\n31#1:71\n35#1:74\n35#1:76\n26#1:43\n29#1:48\n31#1:53\n35#1:58\n29#1:65\n31#1:70\n35#1:75\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NetworkBoundResourceKt$networkBoundResource$3<ResultType> extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends ResultType>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Function1<Continuation<? super RequestType>, Object> $fetch;
|
||||
final /* synthetic */ Function2<Throwable, Continuation<? super Boolean>, Object> $onFetchFailed;
|
||||
final /* synthetic */ Function0<Flow<ResultType>> $query;
|
||||
final /* synthetic */ Function2<RequestType, Continuation<? super Unit>, Object> $saveFetchResult;
|
||||
final /* synthetic */ Function1<ResultType, Boolean> $shouldFetch;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public NetworkBoundResourceKt$networkBoundResource$3(Function0<? extends Flow<? extends ResultType>> function0, Function1<? super ResultType, Boolean> function1, Function2<? super RequestType, ? super Continuation<? super Unit>, ? extends Object> function2, Function1<? super Continuation<? super RequestType>, ? extends Object> function12, Function2<? super Throwable, ? super Continuation<? super Boolean>, ? extends Object> function22, Continuation<? super NetworkBoundResourceKt$networkBoundResource$3> continuation) {
|
||||
super(2, continuation);
|
||||
this.$query = function0;
|
||||
this.$shouldFetch = function1;
|
||||
this.$saveFetchResult = function2;
|
||||
this.$fetch = function12;
|
||||
this.$onFetchFailed = function22;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
NetworkBoundResourceKt$networkBoundResource$3 networkBoundResourceKt$networkBoundResource$3 = new NetworkBoundResourceKt$networkBoundResource$3(this.$query, this.$shouldFetch, this.$saveFetchResult, this.$fetch, this.$onFetchFailed, continuation);
|
||||
networkBoundResourceKt$networkBoundResource$3.L$0 = obj;
|
||||
return networkBoundResourceKt$networkBoundResource$3;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x012e, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r1, r3, r6) != r0) goto L55;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:33:0x00eb, code lost:
|
||||
|
||||
if (r7 != r0) goto L46;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:42:0x00a6, code lost:
|
||||
|
||||
if (r7 == r0) goto L54;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:46:0x0085, code lost:
|
||||
|
||||
if (r7 == r0) goto L54;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:48:0x0070, code lost:
|
||||
|
||||
if (r7 == r0) goto L54;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0007. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x00cf */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v22 */
|
||||
/* JADX WARN: Type inference failed for: r1v25 */
|
||||
/* JADX WARN: Type inference failed for: r1v32 */
|
||||
@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 r7) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 328
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$3.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object invokeSuspend$$forInline(Object obj) {
|
||||
Flow networkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4;
|
||||
FlowCollector flowCollector = (FlowCollector) this.L$0;
|
||||
AsyncResult.Companion companion = AsyncResult.INSTANCE;
|
||||
AsyncResult loading = companion.loading(null);
|
||||
InlineMarker.mark(0);
|
||||
flowCollector.emit(loading, this);
|
||||
InlineMarker.mark(1);
|
||||
Flow<ResultType> invoke = this.$query.invoke();
|
||||
InlineMarker.mark(0);
|
||||
Object first = FlowKt.first(invoke, this);
|
||||
InlineMarker.mark(1);
|
||||
if (((Boolean) this.$shouldFetch.invoke(first)).booleanValue()) {
|
||||
AsyncResult loading2 = companion.loading(first);
|
||||
InlineMarker.mark(0);
|
||||
flowCollector.emit(loading2, this);
|
||||
InlineMarker.mark(1);
|
||||
try {
|
||||
this.$saveFetchResult.invoke(this.$fetch.invoke(this), this);
|
||||
networkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4 = new NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$1(this.$query.invoke());
|
||||
} catch (Throwable th) {
|
||||
networkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4 = ((Boolean) this.$onFetchFailed.invoke(th, this)).booleanValue() ? new NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2(this.$query.invoke()) : new NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$3(this.$query.invoke(), th);
|
||||
}
|
||||
} else {
|
||||
networkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4 = new NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4(this.$query.invoke());
|
||||
}
|
||||
InlineMarker.mark(0);
|
||||
FlowKt.emitAll(flowCollector, networkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4, this);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends ResultType>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((NetworkBoundResourceKt$networkBoundResource$3) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.adif.elcanomovil.repositories;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.google.android.gms.actions.SearchIntents;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigComponent;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
@Metadata(d1 = {"\u00008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\u001aÁ\u0001\u0010\u0000\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u00020\u0001\"\u0004\b\u0000\u0010\u0003\"\u0004\b\u0001\u0010\u00042\u0014\b\u0004\u0010\u0005\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u00010\u00062\u001e\b\u0004\u0010\u0007\u001a\u0018\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00040\t\u0012\u0006\u0012\u0004\u0018\u00010\n0\b2$\b\u0004\u0010\u000b\u001a\u001e\b\u0001\u0012\u0004\u0012\u0002H\u0004\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\t\u0012\u0006\u0012\u0004\u0018\u00010\n0\f2$\b\u0006\u0010\u000e\u001a\u001e\b\u0001\u0012\u0004\u0012\u00020\u000f\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00100\t\u0012\u0006\u0012\u0004\u0018\u00010\n0\f2\u0014\b\u0006\u0010\u0011\u001a\u000e\u0012\u0004\u0012\u0002H\u0003\u0012\u0004\u0012\u00020\u00100\bH\u0086\bø\u0001\u0000¢\u0006\u0002\u0010\u0012\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0013"}, d2 = {"networkBoundResource", "Lkotlinx/coroutines/flow/Flow;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "ResultType", "RequestType", SearchIntents.EXTRA_QUERY, "Lkotlin/Function0;", RemoteConfigComponent.FETCH_FILE_NAME, "Lkotlin/Function1;", "Lkotlin/coroutines/Continuation;", "", "saveFetchResult", "Lkotlin/Function2;", "", "onFetchFailed", "", "", "shouldFetch", "(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/flow/Flow;", "repositories_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class NetworkBoundResourceKt {
|
||||
public static final <ResultType, RequestType> Flow<AsyncResult<ResultType>> networkBoundResource(Function0<? extends Flow<? extends ResultType>> query, Function1<? super Continuation<? super RequestType>, ? extends Object> fetch, Function2<? super RequestType, ? super Continuation<? super Unit>, ? extends Object> saveFetchResult, Function2<? super Throwable, ? super Continuation<? super Boolean>, ? extends Object> onFetchFailed, Function1<? super ResultType, Boolean> shouldFetch) {
|
||||
Intrinsics.checkNotNullParameter(query, "query");
|
||||
Intrinsics.checkNotNullParameter(fetch, "fetch");
|
||||
Intrinsics.checkNotNullParameter(saveFetchResult, "saveFetchResult");
|
||||
Intrinsics.checkNotNullParameter(onFetchFailed, "onFetchFailed");
|
||||
Intrinsics.checkNotNullParameter(shouldFetch, "shouldFetch");
|
||||
return FlowKt.flow(new NetworkBoundResourceKt$networkBoundResource$3(query, shouldFetch, saveFetchResult, fetch, onFetchFailed, null));
|
||||
}
|
||||
|
||||
public static /* synthetic */ Flow networkBoundResource$default(Function0 query, Function1 fetch, Function2 saveFetchResult, Function2 function2, Function1 function1, int i, Object obj) {
|
||||
if ((i & 8) != 0) {
|
||||
function2 = new NetworkBoundResourceKt$networkBoundResource$1(null);
|
||||
}
|
||||
Function2 onFetchFailed = function2;
|
||||
if ((i & 16) != 0) {
|
||||
function1 = new Function1() { // from class: com.adif.elcanomovil.repositories.NetworkBoundResourceKt$networkBoundResource$2
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Boolean invoke(Object obj2) {
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
};
|
||||
}
|
||||
Function1 shouldFetch = function1;
|
||||
Intrinsics.checkNotNullParameter(query, "query");
|
||||
Intrinsics.checkNotNullParameter(fetch, "fetch");
|
||||
Intrinsics.checkNotNullParameter(saveFetchResult, "saveFetchResult");
|
||||
Intrinsics.checkNotNullParameter(onFetchFailed, "onFetchFailed");
|
||||
Intrinsics.checkNotNullParameter(shouldFetch, "shouldFetch");
|
||||
return FlowKt.flow(new NetworkBoundResourceKt$networkBoundResource$3(query, shouldFetch, saveFetchResult, fetch, onFetchFailed, null));
|
||||
}
|
||||
}
|
||||
7718
apk_decompiled/sources/com/adif/elcanomovil/repositories/R.java
Normal file
7718
apk_decompiled/sources/com/adif/elcanomovil/repositories/R.java
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,26 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaStationCategoryResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationCategoryEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\bJ\u000e\u0010\t\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\b¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStationCategory;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaStationCategoryEntity;", "responseToDomain", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaStationCategoryResponse;", "responseToEntity", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaStationCategoryMapper {
|
||||
public final AvisaStationCategory entityToDomain(AvisaStationCategoryEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategory(source.getCatId(), source.getTitle());
|
||||
}
|
||||
|
||||
public final AvisaStationCategory responseToDomain(AvisaStationCategoryResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategory(source.getCatId(), source.getTitle());
|
||||
}
|
||||
|
||||
public final AvisaStationCategoryEntity responseToEntity(AvisaStationCategoryResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategoryEntity(source.getCatId(), source.getTitle());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaStationResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationCategoryEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\tJ\u000e\u0010\n\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u000b¨\u0006\f"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStation;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaStationEntity;", "responseToCategoryEntity", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStationCategory;", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaStationCategoryEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaStationResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaStationMapper {
|
||||
public final AvisaStation entityToDomain(AvisaStationEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStation(source.getStId(), source.getName(), source.getCode(), source.getLatitude(), source.getLongitude());
|
||||
}
|
||||
|
||||
public final AvisaStationCategory responseToCategoryEntity(AvisaStationCategoryEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategory(source.getCatId(), source.getTitle());
|
||||
}
|
||||
|
||||
public final AvisaStationEntity responseToEntity(AvisaStationResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationEntity(source.getStId(), source.getName(), source.getCode(), source.getLatitude(), source.getLongitude());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository;
|
||||
import com.adif.elcanomovil.serviceNetworking.ServicePaths;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u000b\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bJ\u0010\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0002J\u001a\u0010\u0010\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\u00120\u0011H\u0096@¢\u0006\u0002\u0010\u0013J\u001a\u0010\u0014\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\u00120\u0011H\u0096@¢\u0006\u0002\u0010\u0013JR\u0010\u0015\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\u00120\u00112\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0019\u001a\u00020\u00172\u0006\u0010\u001a\u001a\u00020\u00172\u0006\u0010\u001b\u001a\u00020\u00172\u0006\u0010\u001c\u001a\u00020\u00172\u0006\u0010\u001d\u001a\u00020\u0017H\u0096@¢\u0006\u0002\u0010\u001eJ\u001a\u0010\u001f\u001a\u00020\r2\u0006\u0010\u0018\u001a\u00020\u00172\b\u0010\u001b\u001a\u0004\u0018\u00010\u0017H\u0002J\u0010\u0010 \u001a\u00020\r2\u0006\u0010!\u001a\u00020\u0017H\u0002R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\u00020\n8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\u000bR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\""}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/DefaultAvisaLoginRepository;", "Lcom/adif/elcanomovil/domain/repositories/avisa/AvisaLoginRepository;", "avisaLoginService", "Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaLoginService;", "preferences", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "tokenMapper", "Lcom/adif/elcanomovil/repositories/avisa/TokenMapper;", "(Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaLoginService;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;Lcom/adif/elcanomovil/repositories/avisa/TokenMapper;)V", "isRegistered", "", "()Z", "handleAvisaLoginResponse", "", "avisaLoginResponse", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaLoginResponse;", FirebaseAnalytics.Event.LOGIN, "Lkotlinx/coroutines/flow/Flow;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "refreshToken", "register", "registrationToken", "", "userId", "subscriptionUserId", "deviceId", ServicePaths.AvisaLoginService.queryPassword, "osType", "osVersion", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "storeAvisaUser", "storeSubscriptionUserId", "subscriptionsUserId", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaLoginRepository implements AvisaLoginRepository {
|
||||
private final AvisaLoginService avisaLoginService;
|
||||
private final PreferenceStorage preferences;
|
||||
private final TokenMapper tokenMapper;
|
||||
|
||||
public DefaultAvisaLoginRepository(AvisaLoginService avisaLoginService, PreferenceStorage preferences, TokenMapper tokenMapper) {
|
||||
Intrinsics.checkNotNullParameter(avisaLoginService, "avisaLoginService");
|
||||
Intrinsics.checkNotNullParameter(preferences, "preferences");
|
||||
Intrinsics.checkNotNullParameter(tokenMapper, "tokenMapper");
|
||||
this.avisaLoginService = avisaLoginService;
|
||||
this.preferences = preferences;
|
||||
this.tokenMapper = tokenMapper;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void handleAvisaLoginResponse(AvisaLoginResponse avisaLoginResponse) {
|
||||
this.preferences.setAvisaToken(this.tokenMapper.map(avisaLoginResponse));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void storeAvisaUser(String userId, String password) {
|
||||
this.preferences.setAvisaUserId(userId);
|
||||
if (password != null) {
|
||||
this.preferences.setAvisaPassword(password);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void storeSubscriptionUserId(String subscriptionsUserId) {
|
||||
this.preferences.setSubscriptionsUserId(subscriptionsUserId);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public boolean isRegistered() {
|
||||
return this.preferences.isRegistered();
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public Object login(Continuation<? super Flow<AsyncResult<Unit>>> continuation) {
|
||||
return FlowKt.flow(new a(this, null));
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public Object refreshToken(Continuation<? super Flow<AsyncResult<Unit>>> continuation) {
|
||||
return FlowKt.flow(new b(this, null));
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public Object register(String str, String str2, String str3, String str4, String str5, String str6, String str7, Continuation<? super Flow<AsyncResult<Unit>>> continuation) {
|
||||
return FlowKt.flow(new c(this, str3, str, str2, str4, str5, str6, str7, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1", f = "DefaultAvisaStationsRepository.kt", i = {0, 1, 2, 3, 4, 4, 5}, l = {18, 19, 22, 47, 54, 55, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "stationResponse", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$1", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetch$2\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 5 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 6 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n39#2,2:41\n65#2:43\n48#2:44\n47#2,11:45\n58#2,2:59\n62#2,2:62\n52#2,2:69\n1549#3:56\n1620#3,2:57\n1622#3:61\n53#4:64\n55#4:68\n53#4:71\n55#4:75\n53#4:76\n55#4:80\n53#4:81\n55#4:85\n50#5:65\n55#5:67\n50#5:72\n55#5:74\n50#5:77\n55#5:79\n50#5:82\n55#5:84\n109#6:66\n109#6:73\n109#6:78\n109#6:83\n*S KotlinDebug\n*F\n+ 1 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetch$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n57#1:56\n57#1:57,2\n57#1:61\n26#2:64\n26#2:68\n29#2:71\n29#2:75\n31#2:76\n31#2:80\n35#2:81\n35#2:85\n26#2:65\n26#2:67\n29#2:72\n29#2:74\n31#2:77\n31#2:79\n35#2:82\n35#2:84\n26#2:66\n29#2:73\n31#2:78\n35#2:83\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends AvisaStation>>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ boolean $shouldFetch$inlined;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultAvisaStationsRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends AvisaStation>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00012<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2", f = "DefaultAvisaStationsRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00012.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00012(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00012.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00012.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00012.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStation>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00012(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(Continuation continuation, DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, DefaultAvisaStationsRepository defaultAvisaStationsRepository2, DefaultAvisaStationsRepository defaultAvisaStationsRepository3) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultAvisaStationsRepository;
|
||||
this.$shouldFetch$inlined = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.this$0;
|
||||
DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 defaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 = new DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(continuation, defaultAvisaStationsRepository, this.$shouldFetch$inlined, defaultAvisaStationsRepository, defaultAvisaStationsRepository);
|
||||
defaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.L$0 = obj;
|
||||
return defaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x01ae, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r1, r5, r9) == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:49:0x00a9, code lost:
|
||||
|
||||
if (r10 == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:53:0x008f, code lost:
|
||||
|
||||
if (r10 != r0) goto L30;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0009. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x011b A[Catch: all -> 0x0032, LOOP:0: B:21:0x0115->B:23:0x011b, LOOP_END, TryCatch #0 {all -> 0x0032, blocks: (B:19:0x002d, B:20:0x0100, B:21:0x0115, B:23:0x011b, B:25:0x012f), top: B:18:0x002d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x013d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:36:0x00fe */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v2 */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v29 */
|
||||
/* JADX WARN: Type inference failed for: r1v32 */
|
||||
@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 r10) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 456
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStation>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1", f = "DefaultAvisaStationsRepository.kt", i = {0, 1, 2, 3, 4, 4, 5}, l = {18, 19, 22, 47, 54, 55, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "stationCategoriesResponse", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$1", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$2\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 5 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 6 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n74#2,2:41\n99#2:43\n83#2:44\n82#2,11:45\n93#2,2:59\n97#2:62\n87#2,2:68\n1549#3:56\n1620#3,2:57\n1622#3:61\n53#4:63\n55#4:67\n53#4:70\n55#4:74\n53#4:75\n55#4:79\n53#4:80\n55#4:84\n50#5:64\n55#5:66\n50#5:71\n55#5:73\n50#5:76\n55#5:78\n50#5:81\n55#5:83\n109#6:65\n109#6:72\n109#6:77\n109#6:82\n*S KotlinDebug\n*F\n+ 1 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n92#1:56\n92#1:57,2\n92#1:61\n26#2:63\n26#2:67\n29#2:70\n29#2:74\n31#2:75\n31#2:79\n35#2:80\n35#2:84\n26#2:64\n26#2:66\n29#2:71\n29#2:73\n31#2:76\n31#2:78\n35#2:81\n35#2:83\n26#2:65\n29#2:72\n31#2:77\n35#2:82\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ boolean $shouldFetch$inlined;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultAvisaStationsRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends AvisaStationCategory>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00032<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2", f = "DefaultAvisaStationsRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00032.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00032(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00032.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00032.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00032.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00032(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1(Continuation continuation, DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, DefaultAvisaStationsRepository defaultAvisaStationsRepository2, DefaultAvisaStationsRepository defaultAvisaStationsRepository3) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultAvisaStationsRepository;
|
||||
this.$shouldFetch$inlined = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.this$0;
|
||||
DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1 defaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1 = new DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1(continuation, defaultAvisaStationsRepository, this.$shouldFetch$inlined, defaultAvisaStationsRepository, defaultAvisaStationsRepository);
|
||||
defaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.L$0 = obj;
|
||||
return defaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x019c, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r1, r5, r9) == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:49:0x00a9, code lost:
|
||||
|
||||
if (r10 == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:53:0x008f, code lost:
|
||||
|
||||
if (r10 != r0) goto L30;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0009. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x011b A[Catch: all -> 0x0032, LOOP:0: B:21:0x0115->B:23:0x011b, LOOP_END, TryCatch #0 {all -> 0x0032, blocks: (B:19:0x002d, B:20:0x0100, B:21:0x0115, B:23:0x011b, B:25:0x012f), top: B:18:0x002d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x013d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:36:0x00fe */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v2 */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v29 */
|
||||
/* JADX WARN: Type inference failed for: r1v32 */
|
||||
@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 r10) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 438
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1", f = "DefaultAvisaStationsRepository.kt", i = {0, 1, 2, 3}, l = {18, 19, 22, 57, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$4\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 5 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 6 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n109#2,4:41\n108#2,8:45\n139#2:53\n123#2:54\n122#2,15:55\n137#2:74\n108#2,8:75\n127#2,2:88\n108#2,8:90\n1549#3:70\n1620#3,3:71\n53#4:83\n55#4:87\n53#4:98\n55#4:102\n53#4:103\n55#4:107\n53#4:108\n55#4:112\n50#5:84\n55#5:86\n50#5:99\n55#5:101\n50#5:104\n55#5:106\n50#5:109\n55#5:111\n109#6:85\n109#6:100\n109#6:105\n109#6:110\n*S KotlinDebug\n*F\n+ 1 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$4\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n136#1:70\n136#1:71,3\n26#2:83\n26#2:87\n29#2:98\n29#2:102\n31#2:103\n31#2:107\n35#2:108\n35#2:112\n26#2:84\n26#2:86\n29#2:99\n29#2:101\n31#2:104\n31#2:106\n35#2:109\n35#2:111\n26#2:85\n29#2:100\n31#2:105\n35#2:110\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ String $stationId$inlined;
|
||||
final /* synthetic */ String $stationId$inlined$1;
|
||||
final /* synthetic */ String $stationId$inlined$2;
|
||||
final /* synthetic */ String $stationId$inlined$3;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultAvisaStationsRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends AvisaStationCategory>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00052<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2", f = "DefaultAvisaStationsRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00052.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00052(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00052.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00052.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00052.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00052(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1(Continuation continuation, DefaultAvisaStationsRepository defaultAvisaStationsRepository, String str, DefaultAvisaStationsRepository defaultAvisaStationsRepository2, String str2, DefaultAvisaStationsRepository defaultAvisaStationsRepository3, String str3, DefaultAvisaStationsRepository defaultAvisaStationsRepository4, String str4) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultAvisaStationsRepository;
|
||||
this.$stationId$inlined = str;
|
||||
this.$stationId$inlined$1 = str2;
|
||||
this.$stationId$inlined$2 = str3;
|
||||
this.$stationId$inlined$3 = str4;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.this$0;
|
||||
DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1 defaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1 = new DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1(continuation, defaultAvisaStationsRepository, this.$stationId$inlined, defaultAvisaStationsRepository, this.$stationId$inlined$1, defaultAvisaStationsRepository, this.$stationId$inlined$2, defaultAvisaStationsRepository, this.$stationId$inlined$3);
|
||||
defaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.L$0 = obj;
|
||||
return defaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:30:0x020f, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll((kotlinx.coroutines.flow.FlowCollector) r1, r3, r11) == r0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:46:0x00c1, code lost:
|
||||
|
||||
if (r12 == r0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:57:0x009e, code lost:
|
||||
|
||||
if (r12 == r0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0114 A[Catch: all -> 0x002f, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x0146 A[Catch: all -> 0x002f, LOOP:0: B:21:0x0140->B:23:0x0146, LOOP_END, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x016d A[Catch: all -> 0x002f, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:33:0x017f A[Catch: all -> 0x002f, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Type inference failed for: r1v18, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v2, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v22 */
|
||||
/* JADX WARN: Type inference failed for: r1v23 */
|
||||
/* JADX WARN: Type inference failed for: r1v24 */
|
||||
/* JADX WARN: Type inference failed for: r1v25 */
|
||||
/* JADX WARN: Type inference failed for: r1v9, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r3v15, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
/* JADX WARN: Type inference failed for: r3v24, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
/* JADX WARN: Type inference failed for: r4v2, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
/* JADX WARN: Type inference failed for: r9v1, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
@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 r12) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 533
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.AvisaStationsService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.AvisaStationDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigComponent;
|
||||
import d1.InterfaceC0307a;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
@Singleton
|
||||
@Metadata(d1 = {"\u0000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0010%\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B9\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000e\u0010\u000fJ*\u0010\u0016\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00150\u00140\u00130\u00122\u0006\u0010\u0011\u001a\u00020\u0010H\u0096@¢\u0006\u0004\b\u0016\u0010\u0017J*\u0010\u0019\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00180\u00140\u00130\u00122\u0006\u0010\u0011\u001a\u00020\u0010H\u0096@¢\u0006\u0004\b\u0019\u0010\u0017J*\u0010\u0019\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00180\u00140\u00130\u00122\u0006\u0010\u001b\u001a\u00020\u001aH\u0096@¢\u0006\u0004\b\u0019\u0010\u001cR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u001dR\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u001eR\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\u001fR\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010 R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010!R\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010\"R&\u0010$\u001a\u0014\u0012\u0004\u0012\u00020\u001a\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00180\u00140#8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b$\u0010%R\u0014\u0010'\u001a\u00020&8\u0002X\u0082D¢\u0006\u0006\n\u0004\b'\u0010(¨\u0006)"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository;", "Lcom/adif/elcanomovil/domain/repositories/avisa/AvisaStationsRepository;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaStationsService;", "stationsService", "Lcom/adif/elcanomovil/serviceStorage/database/AvisaStationDao;", "stationsDao", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "avisaStationMapper", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "avisaStationCategoryMapper", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "preferenceStorage", "Ld1/a;", "appDispatcher", "<init>", "(Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaStationsService;Lcom/adif/elcanomovil/serviceStorage/database/AvisaStationDao;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;Ld1/a;)V", "", "shouldFetch", "Lkotlinx/coroutines/flow/Flow;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStation;", RemoteConfigComponent.FETCH_FILE_NAME, "(ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStationCategory;", "fetchStationCategories", "", "stationId", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaStationsService;", "Lcom/adif/elcanomovil/serviceStorage/database/AvisaStationDao;", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "Ld1/a;", "", "categoriesCache", "Ljava/util/Map;", "", "CACHE_SIZE", "I", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository implements AvisaStationsRepository {
|
||||
private final int CACHE_SIZE;
|
||||
private final InterfaceC0307a appDispatcher;
|
||||
private final AvisaStationCategoryMapper avisaStationCategoryMapper;
|
||||
private final AvisaStationMapper avisaStationMapper;
|
||||
private final Map<String, List<AvisaStationCategory>> categoriesCache;
|
||||
private final PreferenceStorage preferenceStorage;
|
||||
private final AvisaStationDao stationsDao;
|
||||
private final AvisaStationsService stationsService;
|
||||
|
||||
@Inject
|
||||
public DefaultAvisaStationsRepository(AvisaStationsService stationsService, AvisaStationDao stationsDao, AvisaStationMapper avisaStationMapper, AvisaStationCategoryMapper avisaStationCategoryMapper, PreferenceStorage preferenceStorage, InterfaceC0307a appDispatcher) {
|
||||
Intrinsics.checkNotNullParameter(stationsService, "stationsService");
|
||||
Intrinsics.checkNotNullParameter(stationsDao, "stationsDao");
|
||||
Intrinsics.checkNotNullParameter(avisaStationMapper, "avisaStationMapper");
|
||||
Intrinsics.checkNotNullParameter(avisaStationCategoryMapper, "avisaStationCategoryMapper");
|
||||
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
|
||||
Intrinsics.checkNotNullParameter(appDispatcher, "appDispatcher");
|
||||
this.stationsService = stationsService;
|
||||
this.stationsDao = stationsDao;
|
||||
this.avisaStationMapper = avisaStationMapper;
|
||||
this.avisaStationCategoryMapper = avisaStationCategoryMapper;
|
||||
this.preferenceStorage = preferenceStorage;
|
||||
this.appDispatcher = appDispatcher;
|
||||
this.CACHE_SIZE = 5;
|
||||
this.categoriesCache = new HashMap();
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository
|
||||
public Object fetch(boolean z3, Continuation<? super Flow<? extends AsyncResult<? extends List<AvisaStation>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new f(this, z3, null), continuation);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository
|
||||
public Object fetchStationCategories(boolean z3, Continuation<? super Flow<? extends AsyncResult<? extends List<AvisaStationCategory>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new i(this, z3, null), continuation);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository
|
||||
public Object fetchStationCategories(String str, Continuation<? super Flow<? extends AsyncResult<? extends List<AvisaStationCategory>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new l(this, str, null), continuation);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.AvisaStationsService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.AvisaStationDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import d1.InterfaceC0307a;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository_Factory implements Factory<DefaultAvisaStationsRepository> {
|
||||
private final Provider<InterfaceC0307a> appDispatcherProvider;
|
||||
private final Provider<AvisaStationCategoryMapper> avisaStationCategoryMapperProvider;
|
||||
private final Provider<AvisaStationMapper> avisaStationMapperProvider;
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
private final Provider<AvisaStationDao> stationsDaoProvider;
|
||||
private final Provider<AvisaStationsService> stationsServiceProvider;
|
||||
|
||||
public DefaultAvisaStationsRepository_Factory(Provider<AvisaStationsService> provider, Provider<AvisaStationDao> provider2, Provider<AvisaStationMapper> provider3, Provider<AvisaStationCategoryMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
this.stationsServiceProvider = provider;
|
||||
this.stationsDaoProvider = provider2;
|
||||
this.avisaStationMapperProvider = provider3;
|
||||
this.avisaStationCategoryMapperProvider = provider4;
|
||||
this.preferenceStorageProvider = provider5;
|
||||
this.appDispatcherProvider = provider6;
|
||||
}
|
||||
|
||||
public static DefaultAvisaStationsRepository_Factory create(Provider<AvisaStationsService> provider, Provider<AvisaStationDao> provider2, Provider<AvisaStationMapper> provider3, Provider<AvisaStationCategoryMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
return new DefaultAvisaStationsRepository_Factory(provider, provider2, provider3, provider4, provider5, provider6);
|
||||
}
|
||||
|
||||
public static DefaultAvisaStationsRepository newInstance(AvisaStationsService avisaStationsService, AvisaStationDao avisaStationDao, AvisaStationMapper avisaStationMapper, AvisaStationCategoryMapper avisaStationCategoryMapper, PreferenceStorage preferenceStorage, InterfaceC0307a interfaceC0307a) {
|
||||
return new DefaultAvisaStationsRepository(avisaStationsService, avisaStationDao, avisaStationMapper, avisaStationCategoryMapper, preferenceStorage, interfaceC0307a);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public DefaultAvisaStationsRepository get() {
|
||||
return newInstance(this.stationsServiceProvider.get(), this.stationsDaoProvider.get(), this.avisaStationMapperProvider.get(), this.avisaStationCategoryMapperProvider.get(), this.preferenceStorageProvider.get(), this.appDispatcherProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1", f = "DefaultIncidenceRepository.kt", i = {0, 1, 2, 3, 4}, l = {18, 19, 22, 49, 59, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidenceDetails$2\n+ 3 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 4 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 5 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n+ 6 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$2\n*L\n1#1,40:1\n98#2,2:41\n102#2,16:49\n53#3:43\n55#3:47\n53#3:65\n55#3:69\n55#3:71\n53#3:72\n55#3:76\n55#3:78\n53#3:79\n55#3:83\n55#3:85\n53#3:86\n55#3:90\n50#4:44\n55#4:46\n50#4:66\n55#4:68\n55#4:70\n50#4:73\n55#4:75\n55#4:77\n50#4:80\n55#4:82\n55#4:84\n50#4:87\n55#4:89\n109#5:45\n109#5:67\n109#5:74\n109#5:81\n109#5:88\n16#6:48\n*S KotlinDebug\n*F\n+ 1 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidenceDetails$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n99#1:43\n99#1:47\n99#1:71\n99#1:78\n99#1:85\n99#1:44\n99#1:46\n99#1:70\n99#1:77\n99#1:84\n99#1:45\n26#2:65\n26#2:69\n29#2:72\n29#2:76\n31#2:79\n31#2:83\n35#2:86\n35#2:90\n26#2:66\n26#2:68\n29#2:73\n29#2:75\n31#2:80\n31#2:82\n35#2:87\n35#2:89\n26#2:67\n29#2:74\n31#2:81\n35#2:88\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends IncidenceStation>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ int $incidenceId$inlined;
|
||||
final /* synthetic */ int $incidenceId$inlined$1;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultIncidenceRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends IncidenceStation>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00072<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00072.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00072(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00072.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00072.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00072.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends IncidenceStation>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00072(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass4 implements Flow<AsyncResult<? extends IncidenceStation>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n35#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass4(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends IncidenceStation>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1(Continuation continuation, DefaultIncidenceRepository defaultIncidenceRepository, int i, DefaultIncidenceRepository defaultIncidenceRepository2, DefaultIncidenceRepository defaultIncidenceRepository3, int i4) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultIncidenceRepository;
|
||||
this.$incidenceId$inlined = i;
|
||||
this.$incidenceId$inlined$1 = i4;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.this$0;
|
||||
DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1 defaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1 = new DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1(continuation, defaultIncidenceRepository, this.$incidenceId$inlined, defaultIncidenceRepository, defaultIncidenceRepository, this.$incidenceId$inlined$1);
|
||||
defaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.L$0 = obj;
|
||||
return defaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0108, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll((kotlinx.coroutines.flow.FlowCollector) r1, r7, r6) == r0) goto L39;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x008e, code lost:
|
||||
|
||||
if (r7 == r0) goto L39;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:31:0x007b, code lost:
|
||||
|
||||
if (r7 != r0) goto L25;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0007. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x00c9 */
|
||||
/* JADX WARN: Type inference failed for: r1v16, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r1v2, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v21, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v24 */
|
||||
/* JADX WARN: Type inference failed for: r1v25 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v27 */
|
||||
@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 r7) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 288
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends IncidenceStation>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,296 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1", f = "DefaultIncidenceRepository.kt", i = {0, 1, 2, 3, 4, 4, 5}, l = {18, 19, 22, 44, 45, 46, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "incidences", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$1", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidences$2\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$2\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 6 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 7 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n68#2,2:41\n76#2:44\n87#2,2:45\n90#2:51\n79#2,5:57\n16#3:43\n1549#4:47\n1620#4,3:48\n53#5:52\n55#5:56\n53#5:62\n55#5:66\n53#5:67\n55#5:71\n53#5:72\n55#5:76\n50#6:53\n55#6:55\n50#6:63\n55#6:65\n50#6:68\n55#6:70\n50#6:73\n55#6:75\n109#7:54\n109#7:64\n109#7:69\n109#7:74\n*S KotlinDebug\n*F\n+ 1 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidences$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n88#1:47\n88#1:48,3\n26#2:52\n26#2:56\n29#2:62\n29#2:66\n31#2:67\n31#2:71\n35#2:72\n35#2:76\n26#2:53\n26#2:55\n29#2:63\n29#2:65\n31#2:68\n31#2:70\n35#2:73\n35#2:75\n26#2:54\n29#2:64\n31#2:69\n35#2:74\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>>, Continuation<? super Unit>, Object> {
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultIncidenceRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends IncidenceStation>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00092<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00092.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00092(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00092.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00092.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00092.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00092(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass4 implements Flow<AsyncResult<? extends List<? extends IncidenceStation>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n35#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass4(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1(Continuation continuation, DefaultIncidenceRepository defaultIncidenceRepository, DefaultIncidenceRepository defaultIncidenceRepository2, DefaultIncidenceRepository defaultIncidenceRepository3) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.this$0;
|
||||
DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1 defaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1 = new DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1(continuation, defaultIncidenceRepository, defaultIncidenceRepository, defaultIncidenceRepository);
|
||||
defaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.L$0 = obj;
|
||||
return defaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x017c, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r1, r5, r9) != r0) goto L58;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:47:0x00a2, code lost:
|
||||
|
||||
if (r1.emit(r10, r9) == r0) goto L57;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:50:0x008f, code lost:
|
||||
|
||||
if (r10 != r0) goto L30;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0009. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x00f3 A[Catch: all -> 0x0032, LOOP:0: B:21:0x00ed->B:23:0x00f3, LOOP_END, TryCatch #0 {all -> 0x0032, blocks: (B:19:0x002d, B:20:0x00d8, B:21:0x00ed, B:23:0x00f3, B:25:0x0107), top: B:18:0x002d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x0115 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:40:0x00d6 */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v2 */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v29 */
|
||||
/* JADX WARN: Type inference failed for: r1v32 */
|
||||
@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 r10) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 406
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import C.w;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidencePicture;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository;
|
||||
import com.adif.elcanomovil.serviceNetworking.ServicePaths;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.IncidenceService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.IncidenceDao;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaToken;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import d1.InterfaceC0307a;
|
||||
import java.util.List;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
@Singleton
|
||||
@Metadata(d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u000b\b\u0007\u0018\u00002\u00020\u0001B9\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000e\u0010\u000fJJ\u0010\u001c\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001b0\u001a0\u00192\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0015\u001a\u00020\u00102\f\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00170\u0016H\u0096@¢\u0006\u0004\b\u001c\u0010\u001dJ\"\u0010\u001f\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001e0\u00160\u001a0\u0019H\u0096@¢\u0006\u0004\b\u001f\u0010 J$\u0010#\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001e0\u001a0\u00192\u0006\u0010\"\u001a\u00020!H\u0096@¢\u0006\u0004\b#\u0010$R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010%R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010&R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010'R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010(R\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010)R\u0014\u0010*\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b*\u0010+¨\u0006,"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository;", "Lcom/adif/elcanomovil/domain/repositories/avisa/IncidenceRepository;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/IncidenceService;", "incidenceService", "Lcom/adif/elcanomovil/serviceStorage/database/IncidenceDao;", "incidenceDao", "Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "incidencePictureMapper", "Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;", "incidenceMapper", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "preferenceStorage", "Ld1/a;", "appDispatcher", "<init>", "(Lcom/adif/elcanomovil/serviceNetworking/avisa/IncidenceService;Lcom/adif/elcanomovil/serviceStorage/database/IncidenceDao;Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;Ld1/a;)V", "", "categoryId", "description", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceNotificationType;", "notificationTypeId", "stationId", "", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidencePicture;", "listPictures", "Lkotlinx/coroutines/flow/Flow;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "", "createIncidence", "(Ljava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceNotificationType;Ljava/lang/String;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "incidences", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "", ServicePaths.IncidenceService.pathIncidenceId, "incidenceDetails", "(ILkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/IncidenceService;", "Lcom/adif/elcanomovil/serviceStorage/database/IncidenceDao;", "Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;", "Ld1/a;", "header", "Ljava/lang/String;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository implements IncidenceRepository {
|
||||
private final InterfaceC0307a appDispatcher;
|
||||
private final String header;
|
||||
private final IncidenceDao incidenceDao;
|
||||
private final IncidenceMapper incidenceMapper;
|
||||
private final IncidencePictureMapper incidencePictureMapper;
|
||||
private final IncidenceService incidenceService;
|
||||
|
||||
@Inject
|
||||
public DefaultIncidenceRepository(IncidenceService incidenceService, IncidenceDao incidenceDao, IncidencePictureMapper incidencePictureMapper, IncidenceMapper incidenceMapper, PreferenceStorage preferenceStorage, InterfaceC0307a appDispatcher) {
|
||||
Intrinsics.checkNotNullParameter(incidenceService, "incidenceService");
|
||||
Intrinsics.checkNotNullParameter(incidenceDao, "incidenceDao");
|
||||
Intrinsics.checkNotNullParameter(incidencePictureMapper, "incidencePictureMapper");
|
||||
Intrinsics.checkNotNullParameter(incidenceMapper, "incidenceMapper");
|
||||
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
|
||||
Intrinsics.checkNotNullParameter(appDispatcher, "appDispatcher");
|
||||
this.incidenceService = incidenceService;
|
||||
this.incidenceDao = incidenceDao;
|
||||
this.incidencePictureMapper = incidencePictureMapper;
|
||||
this.incidenceMapper = incidenceMapper;
|
||||
this.appDispatcher = appDispatcher;
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
AvisaToken avisaToken = preferenceStorage.getAvisaToken();
|
||||
this.header = w.s(new Object[]{avisaToken != null ? avisaToken.getAccessToken() : null}, 1, "Bearer %s", "format(...)");
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository
|
||||
public Object createIncidence(String str, String str2, IncidenceNotificationType incidenceNotificationType, String str3, List<IncidencePicture> list, Continuation<? super Flow<AsyncResult>> continuation) {
|
||||
return FlowKt.flow(new n(this, str, str2, incidenceNotificationType, str3, list, null));
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository
|
||||
public Object incidenceDetails(int i, Continuation<? super Flow<AsyncResult<IncidenceStation>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new o(this, i, null), continuation);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository
|
||||
public Object incidences(Continuation<? super Flow<? extends AsyncResult<? extends List<IncidenceStation>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new r(this, null), continuation);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.IncidenceService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.IncidenceDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import d1.InterfaceC0307a;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository_Factory implements Factory<DefaultIncidenceRepository> {
|
||||
private final Provider<InterfaceC0307a> appDispatcherProvider;
|
||||
private final Provider<IncidenceDao> incidenceDaoProvider;
|
||||
private final Provider<IncidenceMapper> incidenceMapperProvider;
|
||||
private final Provider<IncidencePictureMapper> incidencePictureMapperProvider;
|
||||
private final Provider<IncidenceService> incidenceServiceProvider;
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
|
||||
public DefaultIncidenceRepository_Factory(Provider<IncidenceService> provider, Provider<IncidenceDao> provider2, Provider<IncidencePictureMapper> provider3, Provider<IncidenceMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
this.incidenceServiceProvider = provider;
|
||||
this.incidenceDaoProvider = provider2;
|
||||
this.incidencePictureMapperProvider = provider3;
|
||||
this.incidenceMapperProvider = provider4;
|
||||
this.preferenceStorageProvider = provider5;
|
||||
this.appDispatcherProvider = provider6;
|
||||
}
|
||||
|
||||
public static DefaultIncidenceRepository_Factory create(Provider<IncidenceService> provider, Provider<IncidenceDao> provider2, Provider<IncidencePictureMapper> provider3, Provider<IncidenceMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
return new DefaultIncidenceRepository_Factory(provider, provider2, provider3, provider4, provider5, provider6);
|
||||
}
|
||||
|
||||
public static DefaultIncidenceRepository newInstance(IncidenceService incidenceService, IncidenceDao incidenceDao, IncidencePictureMapper incidencePictureMapper, IncidenceMapper incidenceMapper, PreferenceStorage preferenceStorage, InterfaceC0307a interfaceC0307a) {
|
||||
return new DefaultIncidenceRepository(incidenceService, incidenceDao, incidencePictureMapper, incidenceMapper, preferenceStorage, interfaceC0307a);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public DefaultIncidenceRepository get() {
|
||||
return newInstance(this.incidenceServiceProvider.get(), this.incidenceDaoProvider.get(), this.incidencePictureMapperProvider.get(), this.incidenceMapperProvider.get(), this.preferenceStorageProvider.get(), this.appDispatcherProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceComment;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceCommentResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidencePictureResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceCommentEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidencePictureEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceComment;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidenceCommentEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidenceCommentResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nIncidenceCommentMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 IncidenceCommentMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,31:1\n1#2:32\n1549#3:33\n1620#3,3:34\n1549#3:37\n1620#3,3:38\n*S KotlinDebug\n*F\n+ 1 IncidenceCommentMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper\n*L\n17#1:33\n17#1:34,3\n28#1:37\n28#1:38,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class IncidenceCommentMapper {
|
||||
public final IncidenceComment entityToDomain(IncidenceCommentEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Date createTime = source.getCreateTime();
|
||||
Date updatedTime = source.getUpdatedTime();
|
||||
String type = source.getType();
|
||||
String statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
Integer incidenceId = source.getIncidenceId();
|
||||
List<IncidencePictureEntity> fixPhotos = source.getFixPhotos();
|
||||
ArrayList arrayList = new ArrayList(CollectionsKt.g(fixPhotos));
|
||||
Iterator<T> it = fixPhotos.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(new IncidencePictureMapper().entityToDomain((IncidencePictureEntity) it.next()));
|
||||
}
|
||||
return new IncidenceComment(createTime, updatedTime, type, statusTypeId, description, incidenceId, arrayList);
|
||||
}
|
||||
|
||||
public final IncidenceCommentEntity responseToEntity(IncidenceCommentResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Long createTime = source.getCreateTime();
|
||||
Date date = createTime != null ? new Date(createTime.longValue()) : null;
|
||||
Long updatedTime = source.getUpdatedTime();
|
||||
Date date2 = updatedTime != null ? new Date(updatedTime.longValue()) : null;
|
||||
String type = source.getType();
|
||||
String statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
Integer incidenceId = source.getIncidenceId();
|
||||
List<IncidencePictureResponse> fixPhotos = source.getFixPhotos();
|
||||
ArrayList arrayList = new ArrayList(CollectionsKt.g(fixPhotos));
|
||||
Iterator<T> it = fixPhotos.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(new IncidencePictureMapper().responseToEntity((IncidencePictureResponse) it.next()));
|
||||
}
|
||||
return new IncidenceCommentEntity(0, date, date2, type, statusTypeId, description, incidenceId, arrayList, 1, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.Incidence;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceCommentResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidencePictureResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceCommentEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidencePictureEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceStationEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B%\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\u000e\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000eJ\u000e\u0010\u000f\u001a\u00020\u00102\u0006\u0010\r\u001a\u00020\u0011J\u000e\u0010\u0012\u001a\u00020\u000e2\u0006\u0010\r\u001a\u00020\u0013R\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;", "", "incidencePictureMapper", "Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "incidenceCommentMapper", "Lcom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper;", "avisaStationMapper", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "avisaStationCategoryMapper", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "(Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;Lcom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;)V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidenceEntity;", "entityToDomainIncidenceStation", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidenceStationEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidenceResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nIncidenceMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 IncidenceMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,55:1\n1549#2:56\n1620#2,3:57\n1549#2:60\n1620#2,3:61\n1549#2:65\n1620#2,3:66\n1549#2:69\n1620#2,3:70\n1#3:64\n*S KotlinDebug\n*F\n+ 1 IncidenceMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceMapper\n*L\n28#1:56\n28#1:57,3\n29#1:60\n29#1:61,3\n44#1:65\n44#1:66,3\n45#1:69\n45#1:70,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class IncidenceMapper {
|
||||
private final AvisaStationCategoryMapper avisaStationCategoryMapper;
|
||||
private final AvisaStationMapper avisaStationMapper;
|
||||
private final IncidenceCommentMapper incidenceCommentMapper;
|
||||
private final IncidencePictureMapper incidencePictureMapper;
|
||||
|
||||
public IncidenceMapper(IncidencePictureMapper incidencePictureMapper, IncidenceCommentMapper incidenceCommentMapper, AvisaStationMapper avisaStationMapper, AvisaStationCategoryMapper avisaStationCategoryMapper) {
|
||||
Intrinsics.checkNotNullParameter(incidencePictureMapper, "incidencePictureMapper");
|
||||
Intrinsics.checkNotNullParameter(incidenceCommentMapper, "incidenceCommentMapper");
|
||||
Intrinsics.checkNotNullParameter(avisaStationMapper, "avisaStationMapper");
|
||||
Intrinsics.checkNotNullParameter(avisaStationCategoryMapper, "avisaStationCategoryMapper");
|
||||
this.incidencePictureMapper = incidencePictureMapper;
|
||||
this.incidenceCommentMapper = incidenceCommentMapper;
|
||||
this.avisaStationMapper = avisaStationMapper;
|
||||
this.avisaStationCategoryMapper = avisaStationCategoryMapper;
|
||||
}
|
||||
|
||||
public final Incidence entityToDomain(IncidenceEntity source) {
|
||||
ArrayList arrayList;
|
||||
ArrayList arrayList2;
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
int id = source.getId();
|
||||
String incidenceCode = source.getIncidenceCode();
|
||||
String stationId = source.getStationId();
|
||||
int statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
int notificationTypeId = source.getNotificationTypeId();
|
||||
Date createdTime = source.getCreatedTime();
|
||||
Date estimatedDateTo = source.getEstimatedDateTo();
|
||||
Date solvedDate = source.getSolvedDate();
|
||||
String categoryId = source.getCategoryId();
|
||||
List<IncidencePictureEntity> photos = source.getPhotos();
|
||||
if (photos != null) {
|
||||
List<IncidencePictureEntity> list = photos;
|
||||
ArrayList arrayList3 = new ArrayList(CollectionsKt.g(list));
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList3.add(this.incidencePictureMapper.entityToDomain((IncidencePictureEntity) it.next()));
|
||||
}
|
||||
arrayList = arrayList3;
|
||||
} else {
|
||||
arrayList = null;
|
||||
}
|
||||
List<IncidenceCommentEntity> comments = source.getComments();
|
||||
if (comments != null) {
|
||||
List<IncidenceCommentEntity> list2 = comments;
|
||||
ArrayList arrayList4 = new ArrayList(CollectionsKt.g(list2));
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
arrayList4.add(this.incidenceCommentMapper.entityToDomain((IncidenceCommentEntity) it2.next()));
|
||||
}
|
||||
arrayList2 = arrayList4;
|
||||
} else {
|
||||
arrayList2 = null;
|
||||
}
|
||||
return new Incidence(id, incidenceCode, stationId, statusTypeId, description, notificationTypeId, createdTime, estimatedDateTo, solvedDate, categoryId, arrayList, arrayList2);
|
||||
}
|
||||
|
||||
public final IncidenceStation entityToDomainIncidenceStation(IncidenceStationEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidenceStation(entityToDomain(source.getIncidence()), this.avisaStationMapper.entityToDomain(source.getAvisaStation()), this.avisaStationCategoryMapper.entityToDomain(source.getCategoryAvisa()));
|
||||
}
|
||||
|
||||
public final IncidenceEntity responseToEntity(IncidenceResponse source) {
|
||||
ArrayList arrayList;
|
||||
ArrayList arrayList2;
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
int id = source.getId();
|
||||
String incidenceCode = source.getIncidenceCode();
|
||||
String stationId = source.getStationId();
|
||||
int statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
int notificationTypeId = source.getNotificationTypeId();
|
||||
Date date = new Date(source.getCreatedTime());
|
||||
Long estimatedDateTo = source.getEstimatedDateTo();
|
||||
Date date2 = estimatedDateTo != null ? new Date(estimatedDateTo.longValue()) : null;
|
||||
Long solvedDate = source.getSolvedDate();
|
||||
Date date3 = solvedDate != null ? new Date(solvedDate.longValue()) : null;
|
||||
String categoryId = source.getCategoryId();
|
||||
List<IncidencePictureResponse> photos = source.getPhotos();
|
||||
if (photos != null) {
|
||||
List<IncidencePictureResponse> list = photos;
|
||||
ArrayList arrayList3 = new ArrayList(CollectionsKt.g(list));
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList3.add(this.incidencePictureMapper.responseToEntity((IncidencePictureResponse) it.next()));
|
||||
}
|
||||
arrayList = arrayList3;
|
||||
} else {
|
||||
arrayList = null;
|
||||
}
|
||||
List<IncidenceCommentResponse> comments = source.getComments();
|
||||
if (comments != null) {
|
||||
List<IncidenceCommentResponse> list2 = comments;
|
||||
ArrayList arrayList4 = new ArrayList(CollectionsKt.g(list2));
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
arrayList4.add(this.incidenceCommentMapper.responseToEntity((IncidenceCommentResponse) it2.next()));
|
||||
}
|
||||
arrayList2 = arrayList4;
|
||||
} else {
|
||||
arrayList2 = null;
|
||||
}
|
||||
return new IncidenceEntity(id, incidenceCode, stationId, statusTypeId, description, notificationTypeId, date, date2, date3, categoryId, arrayList, arrayList2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidencePicture;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidencePictureResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceRequestPicture;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidencePictureEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\bJ\u000e\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\n¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "", "()V", "domainToRequest", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidenceRequestPicture;", "source", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidencePicture;", "entityToDomain", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidencePictureEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidencePictureResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IncidencePictureMapper {
|
||||
public final IncidenceRequestPicture domainToRequest(IncidencePicture source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidenceRequestPicture(source.getType(), source.getContent());
|
||||
}
|
||||
|
||||
public final IncidencePicture entityToDomain(IncidencePictureEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidencePicture(source.getType(), source.getContent(), source.getThumbnail(), source.getIncidenceId(), source.getPath());
|
||||
}
|
||||
|
||||
public final IncidencePictureEntity responseToEntity(IncidencePictureResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidencePictureEntity(0, source.getType(), source.getContent(), source.getThumbnail(), source.getIncidenceId(), source.getPath(), 1, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.ServicePaths;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006j\u0002\b\u0007j\u0002\b\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/ServiceGrantType;", "", "value", "", "(Ljava/lang/String;ILjava/lang/String;)V", "getValue", "()Ljava/lang/String;", "PASSWORD", "TOKEN", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ServiceGrantType {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ ServiceGrantType[] $VALUES;
|
||||
public static final ServiceGrantType PASSWORD = new ServiceGrantType("PASSWORD", 0, ServicePaths.AvisaLoginService.queryPassword);
|
||||
public static final ServiceGrantType TOKEN = new ServiceGrantType("TOKEN", 1, ServicePaths.AvisaLoginService.queryRefreshToken);
|
||||
private final String value;
|
||||
|
||||
private static final /* synthetic */ ServiceGrantType[] $values() {
|
||||
return new ServiceGrantType[]{PASSWORD, TOKEN};
|
||||
}
|
||||
|
||||
static {
|
||||
ServiceGrantType[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private ServiceGrantType(String str, int i, String str2) {
|
||||
this.value = str2;
|
||||
}
|
||||
|
||||
public static EnumEntries<ServiceGrantType> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static ServiceGrantType valueOf(String str) {
|
||||
return (ServiceGrantType) Enum.valueOf(ServiceGrantType.class, str);
|
||||
}
|
||||
|
||||
public static ServiceGrantType[] values() {
|
||||
return (ServiceGrantType[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaToken;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/TokenMapper;", "", "()V", "map", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaToken;", "loginResponse", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaLoginResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class TokenMapper {
|
||||
public final AvisaToken map(AvisaLoginResponse loginResponse) {
|
||||
Intrinsics.checkNotNullParameter(loginResponse, "loginResponse");
|
||||
return new AvisaToken(loginResponse.getAccessToken(), loginResponse.getTokenType(), loginResponse.getRefreshToken(), loginResponse.getExpiresIn(), loginResponse.getScope());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class a extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4575a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4576b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaLoginRepository f4577c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public a(DefaultAvisaLoginRepository defaultAvisaLoginRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4577c = defaultAvisaLoginRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
a aVar = new a(this.f4577c, continuation);
|
||||
aVar.f4576b = obj;
|
||||
return aVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((a) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(10:1|(1:(1:(3:(1:(1:7)(2:11|12))(3:13|14|15)|8|9)(6:22|23|24|25|26|27))(1:36))(1:50)|37|38|39|40|41|(3:43|26|27)|21|(1:(0))) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x00bd, code lost:
|
||||
|
||||
if (r2.emit(r14, r13) == r1) goto L43;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x00a1, code lost:
|
||||
|
||||
if (r5.emit(r14, r13) != r1) goto L44;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:45:0x00a7, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:46:0x00a8, code lost:
|
||||
|
||||
r2 = r15;
|
||||
r15 = r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:48:0x00ac, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:49:0x00ad, code lost:
|
||||
|
||||
r13 = r14;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:51:0x0061, code lost:
|
||||
|
||||
if (r15.emit(r0, r14) == r1) goto L43;
|
||||
*/
|
||||
@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 r15) {
|
||||
/*
|
||||
r14 = this;
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r14.f4575a
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository r2 = r14.f4577c
|
||||
r3 = 4
|
||||
r4 = 3
|
||||
r5 = 2
|
||||
r6 = 1
|
||||
r7 = 0
|
||||
if (r0 == 0) goto L4c
|
||||
if (r0 == r6) goto L43
|
||||
if (r0 == r5) goto L33
|
||||
if (r0 == r4) goto L24
|
||||
if (r0 != r3) goto L1c
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
goto Lc0
|
||||
L1c:
|
||||
java.lang.IllegalStateException r14 = new java.lang.IllegalStateException
|
||||
java.lang.String r15 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r14.<init>(r15)
|
||||
throw r14
|
||||
L24:
|
||||
java.lang.Object r0 = r14.f4576b
|
||||
r2 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r15) // Catch: java.lang.Throwable -> L2e
|
||||
goto Lc0
|
||||
L2e:
|
||||
r0 = move-exception
|
||||
r15 = r0
|
||||
r13 = r14
|
||||
goto Laf
|
||||
L33:
|
||||
java.lang.Object r0 = r14.f4576b
|
||||
r5 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
kotlin.ResultKt.throwOnFailure(r15) // Catch: java.lang.Throwable -> L3d
|
||||
r13 = r14
|
||||
goto L8e
|
||||
L3d:
|
||||
r0 = move-exception
|
||||
r15 = r0
|
||||
r13 = r14
|
||||
L40:
|
||||
r2 = r5
|
||||
goto Laf
|
||||
L43:
|
||||
java.lang.Object r0 = r14.f4576b
|
||||
kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
r15 = r0
|
||||
goto L64
|
||||
L4c:
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
java.lang.Object r15 = r14.f4576b
|
||||
kotlinx.coroutines.flow.FlowCollector r15 = (kotlinx.coroutines.flow.FlowCollector) r15
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r0 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r0 = r0.loading(r7)
|
||||
r14.f4576b = r15
|
||||
r14.f4575a = r6
|
||||
java.lang.Object r0 = r15.emit(r0, r14)
|
||||
if (r0 != r1) goto L64
|
||||
goto Lbf
|
||||
L64:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService r8 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getAvisaLoginService$p(r2) // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r9 = "Basic YXZpc3RhX2NsaWVudF9hbmRyb2lkOjh5WzZKNyFmSjwhXypmYXE1NyNnOSohNElwa2MjWC1BTg=="
|
||||
com.adif.elcanomovil.repositories.avisa.ServiceGrantType r0 = com.adif.elcanomovil.repositories.avisa.ServiceGrantType.PASSWORD // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r10 = r0.getValue() // Catch: java.lang.Throwable -> Lac
|
||||
com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage r0 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getPreferences$p(r2) // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r11 = r0.getAvisaUserId() // Catch: java.lang.Throwable -> Lac
|
||||
com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage r0 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getPreferences$p(r2) // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r12 = r0.getAvisaPassword() // Catch: java.lang.Throwable -> Lac
|
||||
r14.f4576b = r15 // Catch: java.lang.Throwable -> Lac
|
||||
r14.f4575a = r5 // Catch: java.lang.Throwable -> Lac
|
||||
r13 = r14
|
||||
java.lang.Object r14 = r8.login(r9, r10, r11, r12, r13) // Catch: java.lang.Throwable -> La7
|
||||
if (r14 != r1) goto L8c
|
||||
goto Lbf
|
||||
L8c:
|
||||
r5 = r15
|
||||
r15 = r14
|
||||
L8e:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse r15 = (com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse) r15 // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$handleAvisaLoginResponse(r2, r15) // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r14 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r14 = r14.success(r7) // Catch: java.lang.Throwable -> La4
|
||||
r13.f4576b = r5 // Catch: java.lang.Throwable -> La4
|
||||
r13.f4575a = r4 // Catch: java.lang.Throwable -> La4
|
||||
java.lang.Object r14 = r5.emit(r14, r13) // Catch: java.lang.Throwable -> La4
|
||||
if (r14 != r1) goto Lc0
|
||||
goto Lbf
|
||||
La4:
|
||||
r0 = move-exception
|
||||
r15 = r0
|
||||
goto L40
|
||||
La7:
|
||||
r0 = move-exception
|
||||
La8:
|
||||
r14 = r0
|
||||
r2 = r15
|
||||
r15 = r14
|
||||
goto Laf
|
||||
Lac:
|
||||
r0 = move-exception
|
||||
r13 = r14
|
||||
goto La8
|
||||
Laf:
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r14 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r14 = r14.error(r15, r7)
|
||||
r13.f4576b = r7
|
||||
r13.f4575a = r3
|
||||
java.lang.Object r14 = r2.emit(r14, r13)
|
||||
if (r14 != r1) goto Lc0
|
||||
Lbf:
|
||||
return r1
|
||||
Lc0:
|
||||
kotlin.Unit r14 = kotlin.Unit.INSTANCE
|
||||
return r14
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.a.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class b extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4578a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4579b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaLoginRepository f4580c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public b(DefaultAvisaLoginRepository defaultAvisaLoginRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4580c = defaultAvisaLoginRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
b bVar = new b(this.f4580c, continuation);
|
||||
bVar.f4579b = obj;
|
||||
return bVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((b) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x0094, code lost:
|
||||
|
||||
if (r1.emit(r11, r10) != r0) goto L38;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:35:0x00a5, code lost:
|
||||
|
||||
if (r1.emit(r11, r10) != r0) goto L38;
|
||||
*/
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int, kotlinx.coroutines.flow.FlowCollector] */
|
||||
@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 r11) {
|
||||
/*
|
||||
r10 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r10.f4578a
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository r2 = r10.f4580c
|
||||
r3 = 4
|
||||
r4 = 3
|
||||
r5 = 2
|
||||
r6 = 1
|
||||
r7 = 0
|
||||
if (r1 == 0) goto L3f
|
||||
if (r1 == r6) goto L37
|
||||
if (r1 == r5) goto L2f
|
||||
if (r1 == r4) goto L24
|
||||
if (r1 != r3) goto L1c
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
goto La8
|
||||
L1c:
|
||||
java.lang.IllegalStateException r10 = new java.lang.IllegalStateException
|
||||
java.lang.String r11 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r10.<init>(r11)
|
||||
throw r10
|
||||
L24:
|
||||
java.lang.Object r1 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r1 = (kotlinx.coroutines.flow.FlowCollector) r1
|
||||
kotlin.ResultKt.throwOnFailure(r11) // Catch: java.lang.Throwable -> L2d
|
||||
goto La8
|
||||
L2d:
|
||||
r11 = move-exception
|
||||
goto L97
|
||||
L2f:
|
||||
java.lang.Object r1 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r1 = (kotlinx.coroutines.flow.FlowCollector) r1
|
||||
kotlin.ResultKt.throwOnFailure(r11) // Catch: java.lang.Throwable -> L2d
|
||||
goto L81
|
||||
L37:
|
||||
java.lang.Object r1 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r1 = (kotlinx.coroutines.flow.FlowCollector) r1
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
goto L58
|
||||
L3f:
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
java.lang.Object r11 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r11 = (kotlinx.coroutines.flow.FlowCollector) r11
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r1 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r1 = r1.loading(r7)
|
||||
r10.f4579b = r11
|
||||
r10.f4578a = r6
|
||||
java.lang.Object r1 = r11.emit(r1, r10)
|
||||
if (r1 != r0) goto L57
|
||||
goto La7
|
||||
L57:
|
||||
r1 = r11
|
||||
L58:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService r11 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getAvisaLoginService$p(r2) // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.String r6 = "Basic YXZpc3RhX2NsaWVudF9hbmRyb2lkOjh5WzZKNyFmSjwhXypmYXE1NyNnOSohNElwa2MjWC1BTg=="
|
||||
com.adif.elcanomovil.repositories.avisa.ServiceGrantType r8 = com.adif.elcanomovil.repositories.avisa.ServiceGrantType.TOKEN // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.String r8 = r8.getValue() // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage r9 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getPreferences$p(r2) // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.serviceStorage.model.avisa.AvisaToken r9 = r9.getAvisaToken() // Catch: java.lang.Throwable -> L2d
|
||||
if (r9 == 0) goto L74
|
||||
java.lang.String r9 = r9.getRefreshToken() // Catch: java.lang.Throwable -> L2d
|
||||
if (r9 != 0) goto L76
|
||||
L74:
|
||||
java.lang.String r9 = ""
|
||||
L76:
|
||||
r10.f4579b = r1 // Catch: java.lang.Throwable -> L2d
|
||||
r10.f4578a = r5 // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.Object r11 = r11.refreshToken(r6, r8, r9, r10) // Catch: java.lang.Throwable -> L2d
|
||||
if (r11 != r0) goto L81
|
||||
goto La7
|
||||
L81:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse r11 = (com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse) r11 // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$handleAvisaLoginResponse(r2, r11) // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r11 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r11 = r11.success(r7) // Catch: java.lang.Throwable -> L2d
|
||||
r10.f4579b = r1 // Catch: java.lang.Throwable -> L2d
|
||||
r10.f4578a = r4 // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.Object r10 = r1.emit(r11, r10) // Catch: java.lang.Throwable -> L2d
|
||||
if (r10 != r0) goto La8
|
||||
goto La7
|
||||
L97:
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r2 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r11 = r2.error(r11, r7)
|
||||
r10.f4579b = r7
|
||||
r10.f4578a = r3
|
||||
java.lang.Object r10 = r1.emit(r11, r10)
|
||||
if (r10 != r0) goto La8
|
||||
La7:
|
||||
return r0
|
||||
La8:
|
||||
kotlin.Unit r10 = kotlin.Unit.INSTANCE
|
||||
return r10
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.b.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4581a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4582b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaLoginRepository f4583c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4584d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4585e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4586f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4587g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4588j;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(DefaultAvisaLoginRepository defaultAvisaLoginRepository, String str, String str2, String str3, String str4, String str5, String str6, String str7, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4583c = defaultAvisaLoginRepository;
|
||||
this.f4584d = str;
|
||||
this.f4585e = str2;
|
||||
this.f4586f = str3;
|
||||
this.f4587g = str4;
|
||||
this.h = str5;
|
||||
this.i = str6;
|
||||
this.f4588j = str7;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
c cVar = new c(this.f4583c, this.f4584d, this.f4585e, this.f4586f, this.f4587g, this.h, this.i, this.f4588j, continuation);
|
||||
cVar.f4582b = obj;
|
||||
return cVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((c) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(9:1|(1:2)|(1:(1:(1:(1:(3:8|9|10)(2:12|13))(5:14|15|16|9|10))(5:18|19|20|21|22))(1:30))(1:39)|31|32|33|(2:35|22)|24|(1:(0))) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:23:0x00a1, code lost:
|
||||
|
||||
if (r0 != r2) goto L44;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:29:0x00b8, code lost:
|
||||
|
||||
if (r7.emit(r0, r18) == r2) goto L37;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:37:0x00a4, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:38:0x00a5, code lost:
|
||||
|
||||
r7 = r9;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:40:0x0062, code lost:
|
||||
|
||||
if (r0.emit(r11, r18) == r2) goto L37;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r7v0 */
|
||||
/* JADX WARN: Type inference failed for: r7v1 */
|
||||
/* JADX WARN: Type inference failed for: r7v12 */
|
||||
/* JADX WARN: Type inference failed for: r7v13 */
|
||||
/* JADX WARN: Type inference failed for: r7v2, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r7v3 */
|
||||
/* JADX WARN: Type inference failed for: r7v7 */
|
||||
/* JADX WARN: Type inference failed for: r7v8 */
|
||||
@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 r19) {
|
||||
/*
|
||||
r18 = this;
|
||||
r1 = r18
|
||||
java.lang.Object r2 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r1.f4581a
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository r3 = r1.f4583c
|
||||
java.lang.String r4 = r1.h
|
||||
java.lang.String r5 = r1.f4586f
|
||||
r6 = 4
|
||||
r7 = 3
|
||||
r8 = 2
|
||||
r9 = 1
|
||||
r10 = 0
|
||||
if (r0 == 0) goto L4d
|
||||
if (r0 == r9) goto L44
|
||||
if (r0 == r8) goto L37
|
||||
if (r0 == r7) goto L2a
|
||||
if (r0 != r6) goto L22
|
||||
kotlin.ResultKt.throwOnFailure(r19)
|
||||
goto Lbb
|
||||
L22:
|
||||
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
|
||||
java.lang.String r1 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r0.<init>(r1)
|
||||
throw r0
|
||||
L2a:
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
r7 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r7 = (kotlinx.coroutines.flow.FlowCollector) r7
|
||||
kotlin.ResultKt.throwOnFailure(r19) // Catch: java.lang.Throwable -> L34
|
||||
goto Lbb
|
||||
L34:
|
||||
r0 = move-exception
|
||||
goto La6
|
||||
L37:
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
r8 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8
|
||||
kotlin.ResultKt.throwOnFailure(r19) // Catch: java.lang.Throwable -> L41
|
||||
r7 = r8
|
||||
goto L8f
|
||||
L41:
|
||||
r0 = move-exception
|
||||
r7 = r8
|
||||
goto La6
|
||||
L44:
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
|
||||
kotlin.ResultKt.throwOnFailure(r19)
|
||||
L4b:
|
||||
r9 = r0
|
||||
goto L65
|
||||
L4d:
|
||||
kotlin.ResultKt.throwOnFailure(r19)
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r11 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r11 = r11.loading(r10)
|
||||
r1.f4582b = r0
|
||||
r1.f4581a = r9
|
||||
java.lang.Object r9 = r0.emit(r11, r1)
|
||||
if (r9 != r2) goto L4b
|
||||
goto Lba
|
||||
L65:
|
||||
java.lang.String r0 = r1.f4584d // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$storeSubscriptionUserId(r3, r0) // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService r0 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getAvisaLoginService$p(r3) // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r11 = r1.f4585e // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaRegistrationRequest r12 = new com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaRegistrationRequest // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r13 = r1.f4586f // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r14 = r1.f4587g // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r15 = r1.h // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r6 = r1.i // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r7 = r1.f4588j // Catch: java.lang.Throwable -> La4
|
||||
r16 = r6
|
||||
r17 = r7
|
||||
r12.<init>(r13, r14, r15, r16, r17) // Catch: java.lang.Throwable -> La4
|
||||
r1.f4582b = r9 // Catch: java.lang.Throwable -> La4
|
||||
r1.f4581a = r8 // Catch: java.lang.Throwable -> La4
|
||||
java.lang.Object r0 = r0.register(r11, r12, r1) // Catch: java.lang.Throwable -> La4
|
||||
if (r0 != r2) goto L8e
|
||||
goto Lba
|
||||
L8e:
|
||||
r7 = r9
|
||||
L8f:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$storeAvisaUser(r3, r5, r4) // Catch: java.lang.Throwable -> L34
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r0 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE // Catch: java.lang.Throwable -> L34
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r0 = r0.success(r10) // Catch: java.lang.Throwable -> L34
|
||||
r1.f4582b = r7 // Catch: java.lang.Throwable -> L34
|
||||
r6 = 3
|
||||
r1.f4581a = r6 // Catch: java.lang.Throwable -> L34
|
||||
java.lang.Object r0 = r7.emit(r0, r1) // Catch: java.lang.Throwable -> L34
|
||||
if (r0 != r2) goto Lbb
|
||||
goto Lba
|
||||
La4:
|
||||
r0 = move-exception
|
||||
r7 = r9
|
||||
La6:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$storeAvisaUser(r3, r5, r4)
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r3 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r0 = r3.error(r0, r10)
|
||||
r1.f4582b = r10
|
||||
r3 = 4
|
||||
r1.f4581a = r3
|
||||
java.lang.Object r0 = r7.emit(r0, r1)
|
||||
if (r0 != r2) goto Lbb
|
||||
Lba:
|
||||
return r2
|
||||
Lbb:
|
||||
kotlin.Unit r0 = kotlin.Unit.INSTANCE
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.c.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4589a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4590b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4591c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4592d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(List list, DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4591c = list;
|
||||
this.f4592d = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
d dVar = new d(this.f4591c, this.f4592d, continuation);
|
||||
dVar.f4590b = obj;
|
||||
return dVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((d) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
AvisaStationMapper avisaStationMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4589a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4590b;
|
||||
List<AvisaStationEntity> list = this.f4591c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (AvisaStationEntity avisaStationEntity : list) {
|
||||
avisaStationMapper = this.f4592d.avisaStationMapper;
|
||||
arrayList.add(avisaStationMapper.entityToDomain(avisaStationEntity));
|
||||
}
|
||||
this.f4589a = 1;
|
||||
if (flowCollector.emit(arrayList, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class e extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4593a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4594b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4594b = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
e eVar = new e(this.f4594b, continuation);
|
||||
eVar.f4593a = obj;
|
||||
return eVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((e) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new d((List) this.f4593a, this.f4594b, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4595a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4596b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4595a = defaultAvisaStationsRepository;
|
||||
this.f4596b = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new f(this.f4595a, this.f4596b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.f4595a;
|
||||
return FlowKt.flow(new DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(null, defaultAvisaStationsRepository, this.f4596b, defaultAvisaStationsRepository, defaultAvisaStationsRepository));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationCategoryEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class g extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4597a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4598b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4599c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4600d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(List list, DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4599c = list;
|
||||
this.f4600d = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
g gVar = new g(this.f4599c, this.f4600d, continuation);
|
||||
gVar.f4598b = obj;
|
||||
return gVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((g) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
AvisaStationCategoryMapper avisaStationCategoryMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4597a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4598b;
|
||||
List<AvisaStationCategoryEntity> list = this.f4599c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (AvisaStationCategoryEntity avisaStationCategoryEntity : list) {
|
||||
avisaStationCategoryMapper = this.f4600d.avisaStationCategoryMapper;
|
||||
arrayList.add(avisaStationCategoryMapper.entityToDomain(avisaStationCategoryEntity));
|
||||
}
|
||||
this.f4597a = 1;
|
||||
if (flowCollector.emit(arrayList, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4601a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4602b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4602b = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
h hVar = new h(this.f4602b, continuation);
|
||||
hVar.f4601a = obj;
|
||||
return hVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new g((List) this.f4601a, this.f4602b, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4603a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4604b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4603a = defaultAvisaStationsRepository;
|
||||
this.f4604b = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f4603a, this.f4604b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((i) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.f4603a;
|
||||
return FlowKt.flow(new DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1(null, defaultAvisaStationsRepository, this.f4604b, defaultAvisaStationsRepository, defaultAvisaStationsRepository));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4605a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4606b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4607c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(List list, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4607c = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
j jVar = new j(this.f4607c, continuation);
|
||||
jVar.f4606b = obj;
|
||||
return jVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((j) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4605a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4606b;
|
||||
this.f4605a = 1;
|
||||
if (flowCollector.emit(this.f4607c, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class k extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4608a;
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.coroutines.Continuation, kotlin.coroutines.jvm.internal.SuspendLambda, com.adif.elcanomovil.repositories.avisa.k] */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
?? suspendLambda = new SuspendLambda(2, continuation);
|
||||
suspendLambda.f4608a = obj;
|
||||
return suspendLambda;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((k) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new j((List) this.f4608a, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class l extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4609a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4610b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public l(DefaultAvisaStationsRepository defaultAvisaStationsRepository, String str, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4609a = defaultAvisaStationsRepository;
|
||||
this.f4610b = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new l(this.f4609a, this.f4610b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((l) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.f4609a;
|
||||
String str = this.f4610b;
|
||||
return FlowKt.flow(new DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1(null, defaultAvisaStationsRepository, str, defaultAvisaStationsRepository, str, defaultAvisaStationsRepository, str, defaultAvisaStationsRepository, str));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidencePicture;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.IncidenceService;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.CreateIncidenceRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class m extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4611a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4612b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4613c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4614d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ IncidenceNotificationType f4615e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4616f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4617g;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public m(DefaultIncidenceRepository defaultIncidenceRepository, String str, String str2, IncidenceNotificationType incidenceNotificationType, String str3, List list, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4612b = defaultIncidenceRepository;
|
||||
this.f4613c = str;
|
||||
this.f4614d = str2;
|
||||
this.f4615e = incidenceNotificationType;
|
||||
this.f4616f = str3;
|
||||
this.f4617g = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new m(this.f4612b, this.f4613c, this.f4614d, this.f4615e, this.f4616f, this.f4617g, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((m) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IncidenceService incidenceService;
|
||||
String str;
|
||||
int collectionSizeOrDefault;
|
||||
IncidencePictureMapper incidencePictureMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4611a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.f4612b;
|
||||
incidenceService = defaultIncidenceRepository.incidenceService;
|
||||
str = defaultIncidenceRepository.header;
|
||||
String valueOf = String.valueOf(this.f4615e.getValue());
|
||||
List<IncidencePicture> list = this.f4617g;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (IncidencePicture incidencePicture : list) {
|
||||
incidencePictureMapper = defaultIncidenceRepository.incidencePictureMapper;
|
||||
arrayList.add(incidencePictureMapper.domainToRequest(incidencePicture));
|
||||
}
|
||||
CreateIncidenceRequest createIncidenceRequest = new CreateIncidenceRequest(this.f4613c, this.f4614d, valueOf, this.f4616f, arrayList);
|
||||
this.f4611a = 1;
|
||||
Object createIncidence = incidenceService.createIncidence(str, createIncidenceRequest, this);
|
||||
return createIncidence == coroutine_suspended ? coroutine_suspended : createIncidence;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import java.util.List;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class n extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4618a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4619b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4620c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4621d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4622e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ IncidenceNotificationType f4623f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4624g;
|
||||
public final /* synthetic */ List h;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public n(DefaultIncidenceRepository defaultIncidenceRepository, String str, String str2, IncidenceNotificationType incidenceNotificationType, String str3, List list, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4620c = defaultIncidenceRepository;
|
||||
this.f4621d = str;
|
||||
this.f4622e = str2;
|
||||
this.f4623f = incidenceNotificationType;
|
||||
this.f4624g = str3;
|
||||
this.h = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
n nVar = new n(this.f4620c, this.f4621d, this.f4622e, this.f4623f, this.f4624g, this.h, continuation);
|
||||
nVar.f4619b = obj;
|
||||
return nVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((n) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:22)|15|16|9|10) */
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(8:1|(1:(2:(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:22)|15|16|9|10)(6:23|24|25|26|27|(4:29|(2:31|21)|9|10)(1:32))|19)(1:36))(1:46)|37|38|39|40|(3:42|27|(0)(0))|21) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x0031, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x00da, code lost:
|
||||
|
||||
if (r4.emit(r0, r17) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:33:0x00c7, code lost:
|
||||
|
||||
if (r6.emit(r0, r17) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:44:0x00ca, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:45:0x00cb, code lost:
|
||||
|
||||
r4 = r7;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:47:0x0067, code lost:
|
||||
|
||||
if (r0.emit(r9, r17) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x009f A[Catch: all -> 0x0045, TryCatch #1 {all -> 0x0045, blocks: (B:25:0x003f, B:27:0x0097, B:29:0x009f, B:32:0x00b0), top: B:24:0x003f }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:32:0x00b0 A[Catch: all -> 0x0045, TRY_LEAVE, TryCatch #1 {all -> 0x0045, blocks: (B:25:0x003f, B:27:0x0097, B:29:0x009f, B:32:0x00b0), top: B:24:0x003f }] */
|
||||
@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 r18) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 224
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.n.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class o extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4625a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4626b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public o(DefaultIncidenceRepository defaultIncidenceRepository, int i, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4625a = defaultIncidenceRepository;
|
||||
this.f4626b = i;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new o(this.f4625a, this.f4626b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((o) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.f4625a;
|
||||
int i = this.f4626b;
|
||||
return FlowKt.flow(new DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1(null, defaultIncidenceRepository, i, defaultIncidenceRepository, defaultIncidenceRepository, i));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceStationEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class p extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4627a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4628b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4629c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4630d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public p(List list, DefaultIncidenceRepository defaultIncidenceRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4629c = list;
|
||||
this.f4630d = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
p pVar = new p(this.f4629c, this.f4630d, continuation);
|
||||
pVar.f4628b = obj;
|
||||
return pVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((p) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
IncidenceMapper incidenceMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4627a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4628b;
|
||||
List<IncidenceStationEntity> list = this.f4629c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (IncidenceStationEntity incidenceStationEntity : list) {
|
||||
incidenceMapper = this.f4630d.incidenceMapper;
|
||||
arrayList.add(incidenceMapper.entityToDomainIncidenceStation(incidenceStationEntity));
|
||||
}
|
||||
this.f4627a = 1;
|
||||
if (flowCollector.emit(arrayList, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class q extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4631a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4632b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public q(DefaultIncidenceRepository defaultIncidenceRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4632b = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
q qVar = new q(this.f4632b, continuation);
|
||||
qVar.f4631a = obj;
|
||||
return qVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((q) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new p((List) this.f4631a, this.f4632b, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class r extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4633a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public r(DefaultIncidenceRepository defaultIncidenceRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4633a = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new r(this.f4633a, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((r) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.f4633a;
|
||||
return FlowKt.flow(new DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1(null, defaultIncidenceRepository, defaultIncidenceRepository, defaultIncidenceRepository));
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.repositories.compositions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Cafeteria;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Coach;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Composition;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Head;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Tail;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Wagon;
|
||||
import com.adif.elcanomovil.serviceNetworking.compositions.CoachType;
|
||||
import com.adif.elcanomovil.serviceNetworking.compositions.Coaches;
|
||||
import com.adif.elcanomovil.serviceNetworking.compositions.CompositionResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u001a\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00070\u0004J\u0016\u0010\b\u001a\b\u0012\u0004\u0012\u00020\t0\u00042\b\u0010\n\u001a\u0004\u0018\u00010\u000b¨\u0006\f"}, d2 = {"Lcom/adif/elcanomovil/repositories/compositions/CompositionsMapper;", "", "()V", "getWagons", "", "Lcom/adif/elcanomovil/domain/entities/compositions/Wagon;", "coaches", "Lcom/adif/elcanomovil/serviceNetworking/compositions/Coaches;", "responseToDomain", "Lcom/adif/elcanomovil/domain/entities/compositions/Composition;", "source", "Lcom/adif/elcanomovil/serviceNetworking/compositions/CompositionResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCompositionsMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CompositionsMapper.kt\ncom/adif/elcanomovil/repositories/compositions/CompositionsMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,72:1\n1045#2:73\n1855#2,2:74\n1045#2:76\n1549#2:77\n1620#2,3:78\n*S KotlinDebug\n*F\n+ 1 CompositionsMapper.kt\ncom/adif/elcanomovil/repositories/compositions/CompositionsMapper\n*L\n13#1:73\n15#1:74,2\n39#1:76\n39#1:77\n39#1:78,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class CompositionsMapper {
|
||||
public final List<Wagon> getWagons(List<Coaches> coaches) {
|
||||
Wagon wagon;
|
||||
Wagon wagon2;
|
||||
Intrinsics.checkNotNullParameter(coaches, "coaches");
|
||||
List<Coaches> sortedWith = CollectionsKt.sortedWith(coaches.size() > 1 ? CollectionsKt.h(coaches) : coaches, new Comparator() { // from class: com.adif.elcanomovil.repositories.compositions.CompositionsMapper$getWagons$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(Integer.valueOf(((Coaches) t2).getSequential()), Integer.valueOf(((Coaches) t4).getSequential()));
|
||||
}
|
||||
});
|
||||
ArrayList arrayList = new ArrayList(CollectionsKt.g(sortedWith));
|
||||
int i = 0;
|
||||
for (Coaches coaches2 : sortedWith) {
|
||||
if (coaches2.getCafeteria()) {
|
||||
wagon2 = new Cafeteria();
|
||||
} else {
|
||||
if (coaches2.getSequential() != 1) {
|
||||
CoachType coachType = coaches2.getCoachType();
|
||||
CoachType coachType2 = CoachType.TRACTOR;
|
||||
if (coachType != coachType2 || i % 2 != 0) {
|
||||
if (coaches2.getCoachType() == coachType2 && i % 2 == 1) {
|
||||
i++;
|
||||
wagon = new Tail(coaches2.getCoachNumber());
|
||||
} else {
|
||||
String coachNumber = coaches2.getCoachNumber();
|
||||
Intrinsics.checkNotNull(coachNumber);
|
||||
wagon = new Coach(coachNumber);
|
||||
}
|
||||
wagon2 = wagon;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
wagon = new Head(coaches2.getCoachNumber());
|
||||
wagon2 = wagon;
|
||||
}
|
||||
arrayList.add(wagon2);
|
||||
}
|
||||
List mutableList = CollectionsKt.toMutableList((Collection) arrayList);
|
||||
if (coaches.size() > 1) {
|
||||
mutableList.add(new Tail(((Coaches) CollectionsKt.last((List) coaches)).getCoachNumber()));
|
||||
int size = mutableList.size() - 1;
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
if (i4 == 0 && (mutableList.get(i4) instanceof Head)) {
|
||||
int i5 = i4 + 1;
|
||||
if (mutableList.get(i5) instanceof Tail) {
|
||||
mutableList.remove(i5);
|
||||
mutableList.add(i5, new Coach(""));
|
||||
}
|
||||
}
|
||||
if ((mutableList.get(i4) instanceof Head) && (mutableList.get(i4 + 1) instanceof Tail)) {
|
||||
mutableList.remove(i4);
|
||||
mutableList.add(i4, new Coach(""));
|
||||
}
|
||||
}
|
||||
}
|
||||
return CollectionsKt.toList(mutableList);
|
||||
}
|
||||
|
||||
public final List<Composition> responseToDomain(CompositionResponse source) {
|
||||
List<com.adif.elcanomovil.serviceNetworking.compositions.Composition> sortedWith;
|
||||
if (source == null) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
List<com.adif.elcanomovil.serviceNetworking.compositions.Composition> compositions = source.getCompositions();
|
||||
if (compositions != null && (sortedWith = CollectionsKt.sortedWith(compositions, new Comparator() { // from class: com.adif.elcanomovil.repositories.compositions.CompositionsMapper$responseToDomain$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(Long.valueOf(((com.adif.elcanomovil.serviceNetworking.compositions.Composition) t2).getPlannedTime()), Long.valueOf(((com.adif.elcanomovil.serviceNetworking.compositions.Composition) t4).getPlannedTime()));
|
||||
}
|
||||
})) != null) {
|
||||
for (com.adif.elcanomovil.serviceNetworking.compositions.Composition composition : sortedWith) {
|
||||
arrayList.add(new Composition(composition.getStationCode(), composition.getPlannedTime(), getWagons(composition.getCoaches())));
|
||||
}
|
||||
}
|
||||
for (int size = arrayList.size() - 1; size > 0; size--) {
|
||||
if (((Composition) arrayList.get(size)).getCoachs().equals(((Composition) arrayList.get(size - 1)).getCoachs())) {
|
||||
arrayList.remove(size);
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.adif.elcanomovil.repositories.compositions;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Composition;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.repositories.circulation.CirculationRepository;
|
||||
import com.adif.elcanomovil.domain.repositories.compositions.CompositionsRepository;
|
||||
import com.adif.elcanomovil.serviceNetworking.compositions.CompositionsService;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
import kotlinx.coroutines.flow.MutableStateFlow;
|
||||
import kotlinx.coroutines.flow.StateFlowKt;
|
||||
import r1.C0566a;
|
||||
|
||||
@Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bJ@\u0010\u001a\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001d0\u001c0\u001b0\u000e2\u0006\u0010\u001e\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u001f\u001a\u00020 2\u0006\u0010\u0013\u001a\u00020\nH\u0096@¢\u0006\u0002\u0010!J\b\u0010\"\u001a\u00020#H\u0002R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\t\u001a\u0004\u0018\u00010\n8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u001a\u0010\r\u001a\b\u0012\u0004\u0012\u00020\n0\u000eX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0016\u0010\u0011\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\n0\u0012X\u0082\u000e¢\u0006\u0002\n\u0000R\u0016\u0010\u0013\u001a\u0004\u0018\u00010\n8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\fR\u001a\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\n0\u000eX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0010R\u0016\u0010\u0017\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\n0\u0012X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0018\u001a\u0004\u0018\u00010\u0019X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006$"}, d2 = {"Lcom/adif/elcanomovil/repositories/compositions/DefaultCompositionsRepository;", "Lcom/adif/elcanomovil/domain/repositories/compositions/CompositionsRepository;", "compositionService", "Lcom/adif/elcanomovil/serviceNetworking/compositions/CompositionsService;", "compositionsMapper", "Lcom/adif/elcanomovil/repositories/compositions/CompositionsMapper;", "storage", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "(Lcom/adif/elcanomovil/serviceNetworking/compositions/CompositionsService;Lcom/adif/elcanomovil/repositories/compositions/CompositionsMapper;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;)V", NavArguments.ARG_DYNAMIC_LINKS_STATION_TO_CODE, "", "getDestinationStationCode", "()Ljava/lang/String;", "destinationStationCodeAsFlow", "Lkotlinx/coroutines/flow/Flow;", "getDestinationStationCodeAsFlow", "()Lkotlinx/coroutines/flow/Flow;", "destinationStationCodeFlow", "Lkotlinx/coroutines/flow/MutableStateFlow;", NavArguments.ARG_DYNAMIC_LINKS_STATION_CODE, "getOriginStationCode", "originStationCodeAsFlow", "getOriginStationCodeAsFlow", "originStationCodeFlow", "trainTypeRequest", "Lcom/adif/elcanomovil/domain/repositories/circulation/CirculationRepository$TrainTypeRequest;", "compositions", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "", "Lcom/adif/elcanomovil/domain/entities/compositions/Composition;", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, NavArguments.ARG_DYNAMIC_LINKS_LAUNCHDATE, "", "(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "readLastValues", "", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultCompositionsRepository implements CompositionsRepository {
|
||||
private final CompositionsService compositionService;
|
||||
private final CompositionsMapper compositionsMapper;
|
||||
private final Flow<String> destinationStationCodeAsFlow;
|
||||
private MutableStateFlow<String> destinationStationCodeFlow;
|
||||
private final Flow<String> originStationCodeAsFlow;
|
||||
private MutableStateFlow<String> originStationCodeFlow;
|
||||
private final PreferenceStorage storage;
|
||||
private CirculationRepository.TrainTypeRequest trainTypeRequest;
|
||||
|
||||
public DefaultCompositionsRepository(CompositionsService compositionService, CompositionsMapper compositionsMapper, PreferenceStorage storage) {
|
||||
Intrinsics.checkNotNullParameter(compositionService, "compositionService");
|
||||
Intrinsics.checkNotNullParameter(compositionsMapper, "compositionsMapper");
|
||||
Intrinsics.checkNotNullParameter(storage, "storage");
|
||||
this.compositionService = compositionService;
|
||||
this.compositionsMapper = compositionsMapper;
|
||||
this.storage = storage;
|
||||
this.originStationCodeFlow = StateFlowKt.MutableStateFlow(null);
|
||||
this.destinationStationCodeFlow = StateFlowKt.MutableStateFlow(null);
|
||||
this.originStationCodeAsFlow = FlowKt.filterNotNull(this.originStationCodeFlow);
|
||||
this.destinationStationCodeAsFlow = FlowKt.filterNotNull(this.destinationStationCodeFlow);
|
||||
readLastValues();
|
||||
}
|
||||
|
||||
private final void readLastValues() {
|
||||
this.originStationCodeFlow.setValue(this.storage.getLastDeparturesArrivalsStationCode());
|
||||
this.destinationStationCodeFlow.setValue(this.storage.getLastDeparturesArrivalsStationToCode());
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.compositions.CompositionsRepository
|
||||
public Object compositions(String str, String str2, long j4, String str3, Continuation<? super Flow<? extends AsyncResult<? extends List<Composition>>>> continuation) {
|
||||
return FlowKt.flow(new C0566a(this, str, str2, j4, str3, null));
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.compositions.CompositionsRepository
|
||||
public String getDestinationStationCode() {
|
||||
return this.destinationStationCodeFlow.getValue();
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.compositions.CompositionsRepository
|
||||
public Flow<String> getDestinationStationCodeAsFlow() {
|
||||
return this.destinationStationCodeAsFlow;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.compositions.CompositionsRepository
|
||||
public String getOriginStationCode() {
|
||||
return this.originStationCodeFlow.getValue();
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.compositions.CompositionsRepository
|
||||
public Flow<String> getOriginStationCodeAsFlow() {
|
||||
return this.originStationCodeAsFlow;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.providers.AppVersionProvider;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideAppVersionProviderFactory implements Factory<AppVersionProvider> {
|
||||
private final Provider<Context> contextProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideAppVersionProviderFactory(Provider<Context> provider) {
|
||||
this.contextProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideAppVersionProviderFactory create(Provider<Context> provider) {
|
||||
return new RepositoryModule_Companion_ProvideAppVersionProviderFactory(provider);
|
||||
}
|
||||
|
||||
public static AppVersionProvider provideAppVersionProvider(Context context) {
|
||||
return (AppVersionProvider) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideAppVersionProvider(context));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public AppVersionProvider get() {
|
||||
return provideAppVersionProvider(this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository;
|
||||
import com.adif.elcanomovil.repositories.avisa.TokenMapper;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideAvisaLoginRepositoryFactory implements Factory<AvisaLoginRepository> {
|
||||
private final Provider<AvisaLoginService> avisaLoginServiceProvider;
|
||||
private final Provider<PreferenceStorage> preferencesProvider;
|
||||
private final Provider<TokenMapper> tokenMapperProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideAvisaLoginRepositoryFactory(Provider<AvisaLoginService> provider, Provider<PreferenceStorage> provider2, Provider<TokenMapper> provider3) {
|
||||
this.avisaLoginServiceProvider = provider;
|
||||
this.preferencesProvider = provider2;
|
||||
this.tokenMapperProvider = provider3;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideAvisaLoginRepositoryFactory create(Provider<AvisaLoginService> provider, Provider<PreferenceStorage> provider2, Provider<TokenMapper> provider3) {
|
||||
return new RepositoryModule_Companion_ProvideAvisaLoginRepositoryFactory(provider, provider2, provider3);
|
||||
}
|
||||
|
||||
public static AvisaLoginRepository provideAvisaLoginRepository(AvisaLoginService avisaLoginService, PreferenceStorage preferenceStorage, TokenMapper tokenMapper) {
|
||||
return (AvisaLoginRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideAvisaLoginRepository(avisaLoginService, preferenceStorage, tokenMapper));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public AvisaLoginRepository get() {
|
||||
return provideAvisaLoginRepository(this.avisaLoginServiceProvider.get(), this.preferencesProvider.get(), this.tokenMapperProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.avisa.AvisaStationCategoryMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0592a;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideAvisaStationCategoryMapperFactory implements Factory<AvisaStationCategoryMapper> {
|
||||
public static RepositoryModule_Companion_ProvideAvisaStationCategoryMapperFactory create() {
|
||||
return AbstractC0592a.f8391a;
|
||||
}
|
||||
|
||||
public static AvisaStationCategoryMapper provideAvisaStationCategoryMapper() {
|
||||
return (AvisaStationCategoryMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideAvisaStationCategoryMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public AvisaStationCategoryMapper get() {
|
||||
return provideAvisaStationCategoryMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.avisa.AvisaStationMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0593b;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideAvisaStationMapperFactory implements Factory<AvisaStationMapper> {
|
||||
public static RepositoryModule_Companion_ProvideAvisaStationMapperFactory create() {
|
||||
return AbstractC0593b.f8392a;
|
||||
}
|
||||
|
||||
public static AvisaStationMapper provideAvisaStationMapper() {
|
||||
return (AvisaStationMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideAvisaStationMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public AvisaStationMapper get() {
|
||||
return provideAvisaStationMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.providers.Check24hProvider;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideCheck24hProviderFactory implements Factory<Check24hProvider> {
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideCheck24hProviderFactory(Provider<PreferenceStorage> provider) {
|
||||
this.preferenceStorageProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideCheck24hProviderFactory create(Provider<PreferenceStorage> provider) {
|
||||
return new RepositoryModule_Companion_ProvideCheck24hProviderFactory(provider);
|
||||
}
|
||||
|
||||
public static Check24hProvider provideCheck24hProvider(PreferenceStorage preferenceStorage) {
|
||||
return (Check24hProvider) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideCheck24hProvider(preferenceStorage));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public Check24hProvider get() {
|
||||
return provideCheck24hProvider(this.preferenceStorageProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.circulation.CirculationMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0594c;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideCirculationMapperFactory implements Factory<CirculationMapper> {
|
||||
public static RepositoryModule_Companion_ProvideCirculationMapperFactory create() {
|
||||
return AbstractC0594c.f8393a;
|
||||
}
|
||||
|
||||
public static CirculationMapper provideCirculationMapper() {
|
||||
return (CirculationMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideCirculationMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public CirculationMapper get() {
|
||||
return provideCirculationMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.circulation.CirculationRepository;
|
||||
import com.adif.elcanomovil.repositories.circulation.CirculationMapper;
|
||||
import com.adif.elcanomovil.serviceNetworking.circulations.CirculationService;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideCirculationRepositoryFactory implements Factory<CirculationRepository> {
|
||||
private final Provider<CirculationMapper> circulationMapperProvider;
|
||||
private final Provider<CirculationService> circulationServiceProvider;
|
||||
private final Provider<PreferenceStorage> storageProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideCirculationRepositoryFactory(Provider<CirculationService> provider, Provider<PreferenceStorage> provider2, Provider<CirculationMapper> provider3) {
|
||||
this.circulationServiceProvider = provider;
|
||||
this.storageProvider = provider2;
|
||||
this.circulationMapperProvider = provider3;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideCirculationRepositoryFactory create(Provider<CirculationService> provider, Provider<PreferenceStorage> provider2, Provider<CirculationMapper> provider3) {
|
||||
return new RepositoryModule_Companion_ProvideCirculationRepositoryFactory(provider, provider2, provider3);
|
||||
}
|
||||
|
||||
public static CirculationRepository provideCirculationRepository(CirculationService circulationService, PreferenceStorage preferenceStorage, CirculationMapper circulationMapper) {
|
||||
return (CirculationRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideCirculationRepository(circulationService, preferenceStorage, circulationMapper));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public CirculationRepository get() {
|
||||
return provideCirculationRepository(this.circulationServiceProvider.get(), this.storageProvider.get(), this.circulationMapperProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.compositions.CompositionsMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0595d;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideCompositionsMapperFactory implements Factory<CompositionsMapper> {
|
||||
public static RepositoryModule_Companion_ProvideCompositionsMapperFactory create() {
|
||||
return AbstractC0595d.f8394a;
|
||||
}
|
||||
|
||||
public static CompositionsMapper provideCompositionsMapper() {
|
||||
return (CompositionsMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideCompositionsMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public CompositionsMapper get() {
|
||||
return provideCompositionsMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.compositions.CompositionsRepository;
|
||||
import com.adif.elcanomovil.repositories.compositions.CompositionsMapper;
|
||||
import com.adif.elcanomovil.serviceNetworking.compositions.CompositionsService;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideCompositionsRepositoryFactory implements Factory<CompositionsRepository> {
|
||||
private final Provider<CompositionsMapper> compositionsMapperProvider;
|
||||
private final Provider<CompositionsService> compositionsServiceProvider;
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideCompositionsRepositoryFactory(Provider<CompositionsService> provider, Provider<CompositionsMapper> provider2, Provider<PreferenceStorage> provider3) {
|
||||
this.compositionsServiceProvider = provider;
|
||||
this.compositionsMapperProvider = provider2;
|
||||
this.preferenceStorageProvider = provider3;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideCompositionsRepositoryFactory create(Provider<CompositionsService> provider, Provider<CompositionsMapper> provider2, Provider<PreferenceStorage> provider3) {
|
||||
return new RepositoryModule_Companion_ProvideCompositionsRepositoryFactory(provider, provider2, provider3);
|
||||
}
|
||||
|
||||
public static CompositionsRepository provideCompositionsRepository(CompositionsService compositionsService, CompositionsMapper compositionsMapper, PreferenceStorage preferenceStorage) {
|
||||
return (CompositionsRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideCompositionsRepository(compositionsService, compositionsMapper, preferenceStorage));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public CompositionsRepository get() {
|
||||
return provideCompositionsRepository(this.compositionsServiceProvider.get(), this.compositionsMapperProvider.get(), this.preferenceStorageProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.providers.CredentialsProvider;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideCredentialsProviderFactory implements Factory<CredentialsProvider> {
|
||||
private final Provider<Context> contextProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideCredentialsProviderFactory(Provider<Context> provider) {
|
||||
this.contextProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideCredentialsProviderFactory create(Provider<Context> provider) {
|
||||
return new RepositoryModule_Companion_ProvideCredentialsProviderFactory(provider);
|
||||
}
|
||||
|
||||
public static CredentialsProvider provideCredentialsProvider(Context context) {
|
||||
return (CredentialsProvider) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideCredentialsProvider(context));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public CredentialsProvider get() {
|
||||
return provideCredentialsProvider(this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.subscriptions.DestinationMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0596e;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideDestinationMapperFactory implements Factory<DestinationMapper> {
|
||||
public static RepositoryModule_Companion_ProvideDestinationMapperFactory create() {
|
||||
return AbstractC0596e.f8395a;
|
||||
}
|
||||
|
||||
public static DestinationMapper provideDestinationMapper() {
|
||||
return (DestinationMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideDestinationMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public DestinationMapper get() {
|
||||
return provideDestinationMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.favourites.FavoritesRepository;
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesStationsMapper;
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesTrainsMapper;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.SubscriptionsService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.FavouritesDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideFavouritesRepositoryFactory implements Factory<FavoritesRepository> {
|
||||
private final Provider<FavouritesDao> favouritesDaoProvider;
|
||||
private final Provider<FavouritesStationsMapper> favouritesMapperProvider;
|
||||
private final Provider<FavouritesTrainsMapper> favouritesTrainMapperProvider;
|
||||
private final Provider<PreferenceStorage> storageProvider;
|
||||
private final Provider<SubscriptionsService> subscriptionsServiceProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideFavouritesRepositoryFactory(Provider<FavouritesDao> provider, Provider<FavouritesStationsMapper> provider2, Provider<SubscriptionsService> provider3, Provider<PreferenceStorage> provider4, Provider<FavouritesTrainsMapper> provider5) {
|
||||
this.favouritesDaoProvider = provider;
|
||||
this.favouritesMapperProvider = provider2;
|
||||
this.subscriptionsServiceProvider = provider3;
|
||||
this.storageProvider = provider4;
|
||||
this.favouritesTrainMapperProvider = provider5;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideFavouritesRepositoryFactory create(Provider<FavouritesDao> provider, Provider<FavouritesStationsMapper> provider2, Provider<SubscriptionsService> provider3, Provider<PreferenceStorage> provider4, Provider<FavouritesTrainsMapper> provider5) {
|
||||
return new RepositoryModule_Companion_ProvideFavouritesRepositoryFactory(provider, provider2, provider3, provider4, provider5);
|
||||
}
|
||||
|
||||
public static FavoritesRepository provideFavouritesRepository(FavouritesDao favouritesDao, FavouritesStationsMapper favouritesStationsMapper, SubscriptionsService subscriptionsService, PreferenceStorage preferenceStorage, FavouritesTrainsMapper favouritesTrainsMapper) {
|
||||
return (FavoritesRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideFavouritesRepository(favouritesDao, favouritesStationsMapper, subscriptionsService, preferenceStorage, favouritesTrainsMapper));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public FavoritesRepository get() {
|
||||
return provideFavouritesRepository(this.favouritesDaoProvider.get(), this.favouritesMapperProvider.get(), this.subscriptionsServiceProvider.get(), this.storageProvider.get(), this.favouritesTrainMapperProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.filters.FiltersRepository;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideFiltersRepositoryFactory implements Factory<FiltersRepository> {
|
||||
private final Provider<PreferenceStorage> storageProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideFiltersRepositoryFactory(Provider<PreferenceStorage> provider) {
|
||||
this.storageProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideFiltersRepositoryFactory create(Provider<PreferenceStorage> provider) {
|
||||
return new RepositoryModule_Companion_ProvideFiltersRepositoryFactory(provider);
|
||||
}
|
||||
|
||||
public static FiltersRepository provideFiltersRepository(PreferenceStorage preferenceStorage) {
|
||||
return (FiltersRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideFiltersRepository(preferenceStorage));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public FiltersRepository get() {
|
||||
return provideFiltersRepository(this.storageProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.google.firebase.dynamiclinks.FirebaseDynamicLinks;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0597f;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideFirebaseDynamicLinkFactory implements Factory<FirebaseDynamicLinks> {
|
||||
public static RepositoryModule_Companion_ProvideFirebaseDynamicLinkFactory create() {
|
||||
return AbstractC0597f.f8396a;
|
||||
}
|
||||
|
||||
public static FirebaseDynamicLinks provideFirebaseDynamicLink() {
|
||||
return (FirebaseDynamicLinks) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideFirebaseDynamicLink());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public FirebaseDynamicLinks get() {
|
||||
return provideFirebaseDynamicLink();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0598g;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideFirebaseRemoteConfigFactory implements Factory<FirebaseRemoteConfig> {
|
||||
public static RepositoryModule_Companion_ProvideFirebaseRemoteConfigFactory create() {
|
||||
return AbstractC0598g.f8397a;
|
||||
}
|
||||
|
||||
public static FirebaseRemoteConfig provideFirebaseRemoteConfig() {
|
||||
return (FirebaseRemoteConfig) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideFirebaseRemoteConfig());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public FirebaseRemoteConfig get() {
|
||||
return provideFirebaseRemoteConfig();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.location.FusedLocationProviderClient;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideFusedLocationProviderClientFactory implements Factory<FusedLocationProviderClient> {
|
||||
private final Provider<Context> contextProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideFusedLocationProviderClientFactory(Provider<Context> provider) {
|
||||
this.contextProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideFusedLocationProviderClientFactory create(Provider<Context> provider) {
|
||||
return new RepositoryModule_Companion_ProvideFusedLocationProviderClientFactory(provider);
|
||||
}
|
||||
|
||||
public static FusedLocationProviderClient provideFusedLocationProviderClient(Context context) {
|
||||
return (FusedLocationProviderClient) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideFusedLocationProviderClient(context));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public FusedLocationProviderClient get() {
|
||||
return provideFusedLocationProviderClient(this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.providers.GooglePlayVersionProvider;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideGooglePlayStatusProviderFactory implements Factory<GooglePlayVersionProvider> {
|
||||
private final Provider<Context> contextProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideGooglePlayStatusProviderFactory(Provider<Context> provider) {
|
||||
this.contextProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideGooglePlayStatusProviderFactory create(Provider<Context> provider) {
|
||||
return new RepositoryModule_Companion_ProvideGooglePlayStatusProviderFactory(provider);
|
||||
}
|
||||
|
||||
public static GooglePlayVersionProvider provideGooglePlayStatusProvider(Context context) {
|
||||
return (GooglePlayVersionProvider) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideGooglePlayStatusProvider(context));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public GooglePlayVersionProvider get() {
|
||||
return provideGooglePlayStatusProvider(this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.avisa.IncidenceCommentMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0599h;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideIncidenceCommentMapperFactory implements Factory<IncidenceCommentMapper> {
|
||||
public static RepositoryModule_Companion_ProvideIncidenceCommentMapperFactory create() {
|
||||
return AbstractC0599h.f8398a;
|
||||
}
|
||||
|
||||
public static IncidenceCommentMapper provideIncidenceCommentMapper() {
|
||||
return (IncidenceCommentMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideIncidenceCommentMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public IncidenceCommentMapper get() {
|
||||
return provideIncidenceCommentMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.avisa.IncidenceMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0600i;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideIncidenceMapperFactory implements Factory<IncidenceMapper> {
|
||||
public static RepositoryModule_Companion_ProvideIncidenceMapperFactory create() {
|
||||
return AbstractC0600i.f8399a;
|
||||
}
|
||||
|
||||
public static IncidenceMapper provideIncidenceMapper() {
|
||||
return (IncidenceMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideIncidenceMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public IncidenceMapper get() {
|
||||
return provideIncidenceMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.avisa.IncidencePictureMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0601j;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideIncidencePictureMapperFactory implements Factory<IncidencePictureMapper> {
|
||||
public static RepositoryModule_Companion_ProvideIncidencePictureMapperFactory create() {
|
||||
return AbstractC0601j.f8400a;
|
||||
}
|
||||
|
||||
public static IncidencePictureMapper provideIncidencePictureMapper() {
|
||||
return (IncidencePictureMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideIncidencePictureMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public IncidencePictureMapper get() {
|
||||
return provideIncidencePictureMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.repositories.linecolours.LineColoursRepository;
|
||||
import com.adif.elcanomovil.domain.repositories.stations.StationsRepository;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideLineColoursRepositoryFactory implements Factory<LineColoursRepository> {
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<StationsRepository> stationsRepositoryProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideLineColoursRepositoryFactory(Provider<Context> provider, Provider<StationsRepository> provider2) {
|
||||
this.contextProvider = provider;
|
||||
this.stationsRepositoryProvider = provider2;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideLineColoursRepositoryFactory create(Provider<Context> provider, Provider<StationsRepository> provider2) {
|
||||
return new RepositoryModule_Companion_ProvideLineColoursRepositoryFactory(provider, provider2);
|
||||
}
|
||||
|
||||
public static LineColoursRepository provideLineColoursRepository(Context context, StationsRepository stationsRepository) {
|
||||
return (LineColoursRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideLineColoursRepository(context, stationsRepository));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public LineColoursRepository get() {
|
||||
return provideLineColoursRepository(this.contextProvider.get(), this.stationsRepositoryProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.providers.LogoProvider;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideLogoProviderFactory implements Factory<LogoProvider> {
|
||||
private final Provider<Context> contextProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideLogoProviderFactory(Provider<Context> provider) {
|
||||
this.contextProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideLogoProviderFactory create(Provider<Context> provider) {
|
||||
return new RepositoryModule_Companion_ProvideLogoProviderFactory(provider);
|
||||
}
|
||||
|
||||
public static LogoProvider provideLogoProvider(Context context) {
|
||||
return (LogoProvider) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideLogoProvider(context));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public LogoProvider get() {
|
||||
return provideLogoProvider(this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.logos.LogosInfoRepository;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideLogosInfoRepositoryFactory implements Factory<LogosInfoRepository> {
|
||||
private final Provider<PreferenceStorage> storageProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideLogosInfoRepositoryFactory(Provider<PreferenceStorage> provider) {
|
||||
this.storageProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideLogosInfoRepositoryFactory create(Provider<PreferenceStorage> provider) {
|
||||
return new RepositoryModule_Companion_ProvideLogosInfoRepositoryFactory(provider);
|
||||
}
|
||||
|
||||
public static LogosInfoRepository provideLogosInfoRepository(PreferenceStorage preferenceStorage) {
|
||||
return (LogosInfoRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideLogosInfoRepository(preferenceStorage));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public LogosInfoRepository get() {
|
||||
return provideLogosInfoRepository(this.storageProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.subscriptions.OriginMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0602k;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideOriginMapperFactory implements Factory<OriginMapper> {
|
||||
public static RepositoryModule_Companion_ProvideOriginMapperFactory create() {
|
||||
return AbstractC0602k.f8401a;
|
||||
}
|
||||
|
||||
public static OriginMapper provideOriginMapper() {
|
||||
return (OriginMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideOriginMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public OriginMapper get() {
|
||||
return provideOriginMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.providers.PushIdTokenProvider;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvidePushIdTokenProviderFactory implements Factory<PushIdTokenProvider> {
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvidePushIdTokenProviderFactory(Provider<PreferenceStorage> provider) {
|
||||
this.preferenceStorageProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvidePushIdTokenProviderFactory create(Provider<PreferenceStorage> provider) {
|
||||
return new RepositoryModule_Companion_ProvidePushIdTokenProviderFactory(provider);
|
||||
}
|
||||
|
||||
public static PushIdTokenProvider providePushIdTokenProvider(PreferenceStorage preferenceStorage) {
|
||||
return (PushIdTokenProvider) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.providePushIdTokenProvider(preferenceStorage));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public PushIdTokenProvider get() {
|
||||
return providePushIdTokenProvider(this.preferenceStorageProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.RemoteConfigVersionRepository;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideRemoteConfigVersionRepositoryFactory implements Factory<RemoteConfigVersionRepository> {
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
private final Provider<FirebaseRemoteConfig> remoteConfigProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideRemoteConfigVersionRepositoryFactory(Provider<FirebaseRemoteConfig> provider, Provider<PreferenceStorage> provider2) {
|
||||
this.remoteConfigProvider = provider;
|
||||
this.preferenceStorageProvider = provider2;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideRemoteConfigVersionRepositoryFactory create(Provider<FirebaseRemoteConfig> provider, Provider<PreferenceStorage> provider2) {
|
||||
return new RepositoryModule_Companion_ProvideRemoteConfigVersionRepositoryFactory(provider, provider2);
|
||||
}
|
||||
|
||||
public static RemoteConfigVersionRepository provideRemoteConfigVersionRepository(FirebaseRemoteConfig firebaseRemoteConfig, PreferenceStorage preferenceStorage) {
|
||||
return (RemoteConfigVersionRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideRemoteConfigVersionRepository(firebaseRemoteConfig, preferenceStorage));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public RemoteConfigVersionRepository get() {
|
||||
return provideRemoteConfigVersionRepository(this.remoteConfigProvider.get(), this.preferenceStorageProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.searches.SearchesRepository;
|
||||
import com.adif.elcanomovil.repositories.searches.SearchesMapper;
|
||||
import com.adif.elcanomovil.repositories.searches.TrainSearchesMapper;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideSearchesRepositoryFactory implements Factory<SearchesRepository> {
|
||||
private final Provider<SearchesMapper> searchesMapperProvider;
|
||||
private final Provider<PreferenceStorage> storageProvider;
|
||||
private final Provider<TrainSearchesMapper> trainSearchesMapperProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideSearchesRepositoryFactory(Provider<PreferenceStorage> provider, Provider<SearchesMapper> provider2, Provider<TrainSearchesMapper> provider3) {
|
||||
this.storageProvider = provider;
|
||||
this.searchesMapperProvider = provider2;
|
||||
this.trainSearchesMapperProvider = provider3;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideSearchesRepositoryFactory create(Provider<PreferenceStorage> provider, Provider<SearchesMapper> provider2, Provider<TrainSearchesMapper> provider3) {
|
||||
return new RepositoryModule_Companion_ProvideSearchesRepositoryFactory(provider, provider2, provider3);
|
||||
}
|
||||
|
||||
public static SearchesRepository provideSearchesRepository(PreferenceStorage preferenceStorage, SearchesMapper searchesMapper, TrainSearchesMapper trainSearchesMapper) {
|
||||
return (SearchesRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideSearchesRepository(preferenceStorage, searchesMapper, trainSearchesMapper));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public SearchesRepository get() {
|
||||
return provideSearchesRepository(this.storageProvider.get(), this.searchesMapperProvider.get(), this.trainSearchesMapperProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.stations.StationMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0603l;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideStationMapperFactory implements Factory<StationMapper> {
|
||||
public static RepositoryModule_Companion_ProvideStationMapperFactory create() {
|
||||
return AbstractC0603l.f8402a;
|
||||
}
|
||||
|
||||
public static StationMapper provideStationMapper() {
|
||||
return (StationMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideStationMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public StationMapper get() {
|
||||
return provideStationMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.stationObservations.StationObservationsMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0604m;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideStationObservationsMapperFactory implements Factory<StationObservationsMapper> {
|
||||
public static RepositoryModule_Companion_ProvideStationObservationsMapperFactory create() {
|
||||
return AbstractC0604m.f8403a;
|
||||
}
|
||||
|
||||
public static StationObservationsMapper provideStationObservationsMapper() {
|
||||
return (StationObservationsMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideStationObservationsMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public StationObservationsMapper get() {
|
||||
return provideStationObservationsMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.stations.StationsObservationsRepository;
|
||||
import com.adif.elcanomovil.repositories.stationObservations.StationObservationsMapper;
|
||||
import com.adif.elcanomovil.serviceNetworking.stationObservations.StationObservationsService;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideStationsObservationsRepositoryFactory implements Factory<StationsObservationsRepository> {
|
||||
private final Provider<StationObservationsMapper> stationObservationMapperProvider;
|
||||
private final Provider<StationObservationsService> stationsObservationsServiceProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideStationsObservationsRepositoryFactory(Provider<StationObservationsService> provider, Provider<StationObservationsMapper> provider2) {
|
||||
this.stationsObservationsServiceProvider = provider;
|
||||
this.stationObservationMapperProvider = provider2;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideStationsObservationsRepositoryFactory create(Provider<StationObservationsService> provider, Provider<StationObservationsMapper> provider2) {
|
||||
return new RepositoryModule_Companion_ProvideStationsObservationsRepositoryFactory(provider, provider2);
|
||||
}
|
||||
|
||||
public static StationsObservationsRepository provideStationsObservationsRepository(StationObservationsService stationObservationsService, StationObservationsMapper stationObservationsMapper) {
|
||||
return (StationsObservationsRepository) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideStationsObservationsRepository(stationObservationsService, stationObservationsMapper));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public StationsObservationsRepository get() {
|
||||
return provideStationsObservationsRepository(this.stationsObservationsServiceProvider.get(), this.stationObservationMapperProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.subscriptions.SubscriptionMapper;
|
||||
import d1.g;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideSubscriptionMapperFactory implements Factory<SubscriptionMapper> {
|
||||
private final Provider<g> stringProvider;
|
||||
|
||||
public RepositoryModule_Companion_ProvideSubscriptionMapperFactory(Provider<g> provider) {
|
||||
this.stringProvider = provider;
|
||||
}
|
||||
|
||||
public static RepositoryModule_Companion_ProvideSubscriptionMapperFactory create(Provider<g> provider) {
|
||||
return new RepositoryModule_Companion_ProvideSubscriptionMapperFactory(provider);
|
||||
}
|
||||
|
||||
public static SubscriptionMapper provideSubscriptionMapper(g gVar) {
|
||||
return (SubscriptionMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideSubscriptionMapper(gVar));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public SubscriptionMapper get() {
|
||||
return provideSubscriptionMapper(this.stringProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.domain.providers.TokenJwtProvider;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0605n;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideTokenJwtProviderFactory implements Factory<TokenJwtProvider> {
|
||||
public static RepositoryModule_Companion_ProvideTokenJwtProviderFactory create() {
|
||||
return AbstractC0605n.f8404a;
|
||||
}
|
||||
|
||||
public static TokenJwtProvider provideTokenJwtProvider() {
|
||||
return (TokenJwtProvider) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideTokenJwtProvider());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public TokenJwtProvider get() {
|
||||
return provideTokenJwtProvider();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.avisa.TokenMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0606o;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvideTokenMapperFactory implements Factory<TokenMapper> {
|
||||
public static RepositoryModule_Companion_ProvideTokenMapperFactory create() {
|
||||
return AbstractC0606o.f8405a;
|
||||
}
|
||||
|
||||
public static TokenMapper provideTokenMapper() {
|
||||
return (TokenMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.provideTokenMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public TokenMapper get() {
|
||||
return provideTokenMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesStationsMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.AbstractC0607p;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvidesFavoritableMapperFactory implements Factory<FavouritesStationsMapper> {
|
||||
public static RepositoryModule_Companion_ProvidesFavoritableMapperFactory create() {
|
||||
return AbstractC0607p.f8406a;
|
||||
}
|
||||
|
||||
public static FavouritesStationsMapper providesFavoritableMapper() {
|
||||
return (FavouritesStationsMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.providesFavoritableMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public FavouritesStationsMapper get() {
|
||||
return providesFavoritableMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesTrainsMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.q;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvidesFavoritableTrainMapperFactory implements Factory<FavouritesTrainsMapper> {
|
||||
public static RepositoryModule_Companion_ProvidesFavoritableTrainMapperFactory create() {
|
||||
return q.f8407a;
|
||||
}
|
||||
|
||||
public static FavouritesTrainsMapper providesFavoritableTrainMapper() {
|
||||
return (FavouritesTrainsMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.providesFavoritableTrainMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public FavouritesTrainsMapper get() {
|
||||
return providesFavoritableTrainMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.searches.SearchesMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.r;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvidesSearchesMapperFactory implements Factory<SearchesMapper> {
|
||||
public static RepositoryModule_Companion_ProvidesSearchesMapperFactory create() {
|
||||
return r.f8408a;
|
||||
}
|
||||
|
||||
public static SearchesMapper providesSearchesMapper() {
|
||||
return (SearchesMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.providesSearchesMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public SearchesMapper get() {
|
||||
return providesSearchesMapper();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.di;
|
||||
|
||||
import com.adif.elcanomovil.repositories.searches.TrainSearchesMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import s1.s;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class RepositoryModule_Companion_ProvidesTrainSearchesMapperFactory implements Factory<TrainSearchesMapper> {
|
||||
public static RepositoryModule_Companion_ProvidesTrainSearchesMapperFactory create() {
|
||||
return s.f8409a;
|
||||
}
|
||||
|
||||
public static TrainSearchesMapper providesTrainSearchesMapper() {
|
||||
return (TrainSearchesMapper) Preconditions.checkNotNullFromProvides(RepositoryModule.INSTANCE.providesTrainSearchesMapper());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public TrainSearchesMapper get() {
|
||||
return providesTrainSearchesMapper();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,38 @@
|
||||
package com.adif.elcanomovil.repositories.favourites;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import com.adif.elcanomovil.domain.entities.FavouriteStation;
|
||||
import com.adif.elcanomovil.domain.entities.StationFavourites;
|
||||
import com.adif.elcanomovil.domain.entities.station.Station;
|
||||
import com.adif.elcanomovil.repositories.stations.StationMapper;
|
||||
import com.adif.elcanomovil.serviceStorage.model.FavouriteEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.StationFavouritesEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\t¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/repositories/favourites/FavouritesStationsMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/StationFavourites;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/StationFavouritesEntity;", "favouriteEntityToDomain", "Lcom/adif/elcanomovil/domain/entities/FavouriteStation;", "Lcom/adif/elcanomovil/serviceStorage/model/FavouriteEntity;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nFavouritesStationsMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FavouritesStationsMapper.kt\ncom/adif/elcanomovil/repositories/favourites/FavouritesStationsMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,28:1\n1549#2:29\n1620#2,3:30\n*S KotlinDebug\n*F\n+ 1 FavouritesStationsMapper.kt\ncom/adif/elcanomovil/repositories/favourites/FavouritesStationsMapper\n*L\n13#1:29\n13#1:30,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class FavouritesStationsMapper {
|
||||
public final StationFavourites entityToDomain(StationFavouritesEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Station entityToDomain = new StationMapper().entityToDomain(source.getStation());
|
||||
List<FavouriteEntity> favourites = source.getFavourites();
|
||||
ArrayList arrayList = new ArrayList(CollectionsKt.g(favourites));
|
||||
Iterator<T> it = favourites.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(DataType.valueOf(((FavouriteEntity) it.next()).getType()));
|
||||
}
|
||||
return new StationFavourites(entityToDomain, arrayList);
|
||||
}
|
||||
|
||||
public final FavouriteStation favouriteEntityToDomain(FavouriteEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new FavouriteStation(source.getFavouriteId(), source.getIdentifierStation(), source.getStationName(), source.getIdentifierToStation(), source.getStationToName(), source.getType(), source.isCercanias());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.adif.elcanomovil.repositories.favourites;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.FavouriteTrain;
|
||||
import com.adif.elcanomovil.serviceStorage.model.FavouriteTrainEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/repositories/favourites/FavouritesTrainsMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/FavouriteTrain;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/FavouriteTrainEntity;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FavouritesTrainsMapper {
|
||||
public final FavouriteTrain entityToDomain(FavouriteTrainEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new FavouriteTrain(source.getCommercialNumber(), source.getOriginStationCode(), source.getDestinationStationCode(), source.getLaunchingDate(), source.getOperator(), source.getCommercialProduct(), source.getTimeStationFrom(), source.getTimeStationTo());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.repositories.filters;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.filters.FiltersRepository;
|
||||
import com.adif.elcanomovil.serviceStorage.model.FilterEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001a\u0010\u0005\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t0\u00070\u0006H\u0016J\u0018\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\b2\u0006\u0010\r\u001a\u00020\tH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lcom/adif/elcanomovil/repositories/filters/DefaultFiltersRepository;", "Lcom/adif/elcanomovil/domain/repositories/filters/FiltersRepository;", "preferenceStorage", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "(Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;)V", "fetchAllFilters", "", "Lkotlin/Pair;", "", "", "saveFilter", "", "filterId", "isEnabled", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nDefaultFiltersRepository.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DefaultFiltersRepository.kt\ncom/adif/elcanomovil/repositories/filters/DefaultFiltersRepository\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,27:1\n1549#2:28\n1620#2,3:29\n1855#2,2:32\n*S KotlinDebug\n*F\n+ 1 DefaultFiltersRepository.kt\ncom/adif/elcanomovil/repositories/filters/DefaultFiltersRepository\n*L\n12#1:28\n12#1:29,3\n18#1:32,2\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultFiltersRepository implements FiltersRepository {
|
||||
private final PreferenceStorage preferenceStorage;
|
||||
|
||||
public DefaultFiltersRepository(PreferenceStorage preferenceStorage) {
|
||||
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
|
||||
this.preferenceStorage = preferenceStorage;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.filters.FiltersRepository
|
||||
public List<Pair<Integer, Boolean>> fetchAllFilters() {
|
||||
int collectionSizeOrDefault;
|
||||
List<FilterEntity> filters = this.preferenceStorage.getFilters();
|
||||
if (filters == null) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
List<FilterEntity> list = filters;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (FilterEntity filterEntity : list) {
|
||||
arrayList.add(new Pair(Integer.valueOf(filterEntity.getKey()), Boolean.valueOf(filterEntity.isEnabled())));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.filters.FiltersRepository
|
||||
public void saveFilter(int filterId, boolean isEnabled) {
|
||||
List<FilterEntity> filters = this.preferenceStorage.getFilters();
|
||||
List<FilterEntity> mutableList = filters != null ? CollectionsKt.toMutableList((Collection) filters) : null;
|
||||
if (mutableList == null || !mutableList.contains(new FilterEntity(filterId, isEnabled))) {
|
||||
if (mutableList != null) {
|
||||
mutableList.add(new FilterEntity(filterId, isEnabled));
|
||||
}
|
||||
} else if (mutableList != null) {
|
||||
for (FilterEntity filterEntity : mutableList) {
|
||||
if (filterEntity.getKey() == filterId) {
|
||||
filterEntity.setEnabled(isEnabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.preferenceStorage.setFilters(mutableList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
package com.adif.elcanomovil.repositories.linecolours;
|
||||
|
||||
import Z2.D;
|
||||
import Z2.G;
|
||||
import Z2.L;
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.entities.LineColor;
|
||||
import com.adif.elcanomovil.domain.entities.LineColoursForNetwork;
|
||||
import com.adif.elcanomovil.domain.repositories.linecolours.LineColoursRepository;
|
||||
import com.adif.elcanomovil.domain.repositories.stations.StationsRepository;
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.RangesKt;
|
||||
|
||||
@Singleton
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0002\b\u0007\b\u0007\u0018\u00002\u00020\u0001B\u0017\b\u0007\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0012\u0010\n\u001a\u00020\t2\b\b\u0002\u0010\u000b\u001a\u00020\tH\u0002J\u001e\u0010\f\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\t2\u0006\u0010\u000e\u001a\u00020\tH\u0096@¢\u0006\u0002\u0010\u000fR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R&\u0010\u0007\u001a\u001a\u0012\u0004\u0012\u00020\t\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\t\u0012\u0004\u0012\u00020\t0\b0\bX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/repositories/linecolours/DefaultLineColoursRepository;", "Lcom/adif/elcanomovil/domain/repositories/linecolours/LineColoursRepository;", "context", "Landroid/content/Context;", "stationsRepository", "Lcom/adif/elcanomovil/domain/repositories/stations/StationsRepository;", "(Landroid/content/Context;Lcom/adif/elcanomovil/domain/repositories/stations/StationsRepository;)V", "lineColoursMap", "", "", "getJsonFromAssets", "fileName", "getLineColorRGB", "lineName", "stationStepCode", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nDefaultLineColoursRepository.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DefaultLineColoursRepository.kt\ncom/adif/elcanomovil/repositories/linecolours/DefaultLineColoursRepository\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,60:1\n1179#2,2:61\n1253#2,2:63\n1179#2,2:65\n1253#2,4:67\n1256#2:71\n1#3:72\n*S KotlinDebug\n*F\n+ 1 DefaultLineColoursRepository.kt\ncom/adif/elcanomovil/repositories/linecolours/DefaultLineColoursRepository\n*L\n31#1:61,2\n31#1:63,2\n32#1:65,2\n32#1:67,4\n31#1:71\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultLineColoursRepository implements LineColoursRepository {
|
||||
private final Context context;
|
||||
private final Map<String, Map<String, String>> lineColoursMap;
|
||||
private final StationsRepository stationsRepository;
|
||||
|
||||
@Inject
|
||||
public DefaultLineColoursRepository(Context context, StationsRepository stationsRepository) {
|
||||
int collectionSizeOrDefault;
|
||||
int collectionSizeOrDefault2;
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
Intrinsics.checkNotNullParameter(stationsRepository, "stationsRepository");
|
||||
this.context = context;
|
||||
this.stationsRepository = stationsRepository;
|
||||
Object fromJson = new G(new D()).b(L.f(List.class, LineColoursForNetwork.class)).fromJson(getJsonFromAssets$default(this, null, 1, null));
|
||||
Intrinsics.checkNotNull(fromJson);
|
||||
List<LineColoursForNetwork> list = (List) fromJson;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault), 16));
|
||||
for (LineColoursForNetwork lineColoursForNetwork : list) {
|
||||
String commuterNetwork = lineColoursForNetwork.getCommuterNetwork();
|
||||
List<LineColor> lines = lineColoursForNetwork.getLines();
|
||||
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(lines, 10);
|
||||
LinkedHashMap linkedHashMap2 = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault2), 16));
|
||||
for (LineColor lineColor : lines) {
|
||||
String lowerCase = lineColor.getLine().toLowerCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
|
||||
Pair pair = TuplesKt.to(lowerCase, lineColor.getColourRGB());
|
||||
linkedHashMap2.put(pair.getFirst(), pair.getSecond());
|
||||
}
|
||||
Pair pair2 = TuplesKt.to(commuterNetwork, linkedHashMap2);
|
||||
linkedHashMap.put(pair2.getFirst(), pair2.getSecond());
|
||||
}
|
||||
this.lineColoursMap = linkedHashMap;
|
||||
}
|
||||
|
||||
private final String getJsonFromAssets(String fileName) {
|
||||
InputStream open = this.context.getAssets().open(fileName);
|
||||
Intrinsics.checkNotNullExpressionValue(open, "open(...)");
|
||||
byte[] bArr = new byte[open.available()];
|
||||
open.read(bArr);
|
||||
open.close();
|
||||
Charset forName = Charset.forName("UTF-8");
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(...)");
|
||||
return new String(bArr, forName);
|
||||
}
|
||||
|
||||
public static /* synthetic */ String getJsonFromAssets$default(DefaultLineColoursRepository defaultLineColoursRepository, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = "line_colours.json";
|
||||
}
|
||||
return defaultLineColoursRepository.getJsonFromAssets(str);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x0076 A[ORIG_RETURN, RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x0035 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // com.adif.elcanomovil.domain.repositories.linecolours.LineColoursRepository
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object getLineColorRGB(java.lang.String r5, java.lang.String r6, kotlin.coroutines.Continuation<? super java.lang.String> r7) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r7 instanceof u1.C0633a
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r7
|
||||
u1.a r0 = (u1.C0633a) r0
|
||||
int r1 = r0.f8622e
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.f8622e = r1
|
||||
goto L18
|
||||
L13:
|
||||
u1.a r0 = new u1.a
|
||||
r0.<init>(r4, r7)
|
||||
L18:
|
||||
java.lang.Object r7 = r0.f8620c
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.f8622e
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L35
|
||||
if (r2 != r3) goto L2d
|
||||
java.lang.String r5 = r0.f8619b
|
||||
com.adif.elcanomovil.repositories.linecolours.DefaultLineColoursRepository r4 = r0.f8618a
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L47
|
||||
L2d:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L35:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
com.adif.elcanomovil.domain.repositories.stations.StationsRepository r7 = r4.stationsRepository
|
||||
r0.f8618a = r4
|
||||
r0.f8619b = r5
|
||||
r0.f8622e = r3
|
||||
java.lang.Object r7 = r7.fetchStation(r6, r0)
|
||||
if (r7 != r1) goto L47
|
||||
return r1
|
||||
L47:
|
||||
com.adif.elcanomovil.domain.entities.station.Station r7 = (com.adif.elcanomovil.domain.entities.station.Station) r7
|
||||
if (r7 == 0) goto L76
|
||||
java.lang.String r6 = r7.getCommuterNetwork()
|
||||
java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>> r4 = r4.lineColoursMap
|
||||
java.lang.Object r4 = r4.get(r6)
|
||||
java.util.Map r4 = (java.util.Map) r4
|
||||
if (r4 == 0) goto L76
|
||||
java.util.Locale r6 = java.util.Locale.ROOT
|
||||
java.lang.String r5 = r5.toLowerCase(r6)
|
||||
java.lang.String r6 = "toLowerCase(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r5, r6)
|
||||
java.lang.Object r4 = r4.get(r5)
|
||||
java.lang.String r4 = (java.lang.String) r4
|
||||
if (r4 == 0) goto L76
|
||||
java.lang.String r5 = "#"
|
||||
java.lang.String r4 = r5.concat(r4)
|
||||
if (r4 != 0) goto L75
|
||||
goto L76
|
||||
L75:
|
||||
return r4
|
||||
L76:
|
||||
java.lang.String r4 = "#000000"
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.linecolours.DefaultLineColoursRepository.getLineColorRGB(java.lang.String, java.lang.String, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.repositories.linecolours;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0002"}, d2 = {"LINE_COLOURS_FILE_NAME", "", "repositories_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultLineColoursRepositoryKt {
|
||||
private static final String LINE_COLOURS_FILE_NAME = "line_colours.json";
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.adif.elcanomovil.repositories.linecolours;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.repositories.stations.StationsRepository;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultLineColoursRepository_Factory implements Factory<DefaultLineColoursRepository> {
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<StationsRepository> stationsRepositoryProvider;
|
||||
|
||||
public DefaultLineColoursRepository_Factory(Provider<Context> provider, Provider<StationsRepository> provider2) {
|
||||
this.contextProvider = provider;
|
||||
this.stationsRepositoryProvider = provider2;
|
||||
}
|
||||
|
||||
public static DefaultLineColoursRepository_Factory create(Provider<Context> provider, Provider<StationsRepository> provider2) {
|
||||
return new DefaultLineColoursRepository_Factory(provider, provider2);
|
||||
}
|
||||
|
||||
public static DefaultLineColoursRepository newInstance(Context context, StationsRepository stationsRepository) {
|
||||
return new DefaultLineColoursRepository(context, stationsRepository);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public DefaultLineColoursRepository get() {
|
||||
return newInstance(this.contextProvider.get(), this.stationsRepositoryProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.adif.elcanomovil.repositories.logos;
|
||||
|
||||
import I1.b;
|
||||
import com.adif.elcanomovil.domain.repositories.logos.LogosInfoRepository;
|
||||
import com.adif.elcanomovil.serviceStorage.model.OperatorLogoValidityEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.Boxing;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0018\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0096@¢\u0006\u0002\u0010\tJ\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\rH\u0002J\u001e\u0010\u000e\u001a\u00020\u000b2\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\u000f\u001a\u00020\u0006H\u0096@¢\u0006\u0002\u0010\u0010R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/repositories/logos/DefaultLogosInfoRepository;", "Lcom/adif/elcanomovil/domain/repositories/logos/LogosInfoRepository;", "storage", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "(Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;)V", "getLogo", "", "key", "", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "insert", "", "operatorLogoValidityEntity", "Lcom/adif/elcanomovil/serviceStorage/model/OperatorLogoValidityEntity;", "setLogo", "epoch", "(Ljava/lang/String;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nDefaultLogosRepository.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DefaultLogosRepository.kt\ncom/adif/elcanomovil/repositories/logos/DefaultLogosInfoRepository\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,28:1\n288#2,2:29\n*S KotlinDebug\n*F\n+ 1 DefaultLogosRepository.kt\ncom/adif/elcanomovil/repositories/logos/DefaultLogosInfoRepository\n*L\n16#1:29,2\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultLogosInfoRepository implements LogosInfoRepository {
|
||||
private final PreferenceStorage storage;
|
||||
|
||||
public DefaultLogosInfoRepository(PreferenceStorage storage) {
|
||||
Intrinsics.checkNotNullParameter(storage, "storage");
|
||||
this.storage = storage;
|
||||
}
|
||||
|
||||
private final void insert(OperatorLogoValidityEntity operatorLogoValidityEntity) {
|
||||
List<OperatorLogoValidityEntity> mutableList;
|
||||
List<OperatorLogoValidityEntity> logosFetchDate = this.storage.getLogosFetchDate();
|
||||
if (logosFetchDate == null || (mutableList = CollectionsKt.toMutableList((Collection) logosFetchDate)) == null) {
|
||||
return;
|
||||
}
|
||||
CollectionsKt__MutableCollectionsKt.removeAll((List) mutableList, (Function1) new b(operatorLogoValidityEntity, 19));
|
||||
mutableList.add(operatorLogoValidityEntity);
|
||||
this.storage.setLogosFetchDate(mutableList);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.logos.LogosInfoRepository
|
||||
public Object getLogo(String str, Continuation<? super Long> continuation) {
|
||||
List mutableList;
|
||||
Object obj;
|
||||
List<OperatorLogoValidityEntity> logosFetchDate = this.storage.getLogosFetchDate();
|
||||
if (logosFetchDate != null && (mutableList = CollectionsKt.toMutableList((Collection) logosFetchDate)) != null) {
|
||||
Iterator it = mutableList.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
if (Intrinsics.areEqual(((OperatorLogoValidityEntity) obj).getKey(), str)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
OperatorLogoValidityEntity operatorLogoValidityEntity = (OperatorLogoValidityEntity) obj;
|
||||
if (operatorLogoValidityEntity != null) {
|
||||
return Boxing.boxLong(operatorLogoValidityEntity.getEpoch());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.logos.LogosInfoRepository
|
||||
public Object setLogo(String str, long j4, Continuation<? super Unit> continuation) {
|
||||
insert(new OperatorLogoValidityEntity(str, j4));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.adif.elcanomovil.repositories.providers;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.providers.AppVersionProvider;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultAppVersionProvider;", "Lcom/adif/elcanomovil/domain/providers/AppVersionProvider;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "version", "", "getVersion", "()Ljava/lang/String;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAppVersionProvider implements AppVersionProvider {
|
||||
private final String version;
|
||||
|
||||
public DefaultAppVersionProvider(Context context) {
|
||||
String version;
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
version = DefaultAppVersionProviderKt.getVersion(context);
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.providers.AppVersionProvider
|
||||
public String getVersion() {
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adif.elcanomovil.repositories.providers;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import m3.l;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"version", "", "Landroid/content/Context;", "getVersion", "(Landroid/content/Context;)Ljava/lang/String;", "repositories_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAppVersionProviderKt {
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final String getVersion(Context context) {
|
||||
try {
|
||||
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
|
||||
Intrinsics.checkNotNullExpressionValue(packageInfo, "getPackageInfo(...)");
|
||||
String str = packageInfo.versionName;
|
||||
return str == null ? "" : str;
|
||||
} catch (PackageManager.NameNotFoundException e4) {
|
||||
l.g(e4);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.adif.elcanomovil.repositories.providers;
|
||||
|
||||
import com.adif.elcanomovil.domain.providers.Check24hProvider;
|
||||
import com.adif.elcanomovil.repositories.utils.DateExtensionKt;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import java.util.Date;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0006H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\b"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultCheck24hProvider;", "Lcom/adif/elcanomovil/domain/providers/Check24hProvider;", "preferenceStorage", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "(Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;)V", "checkfetchInfo", "", "shouldFetch", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultCheck24hProvider implements Check24hProvider {
|
||||
private final PreferenceStorage preferenceStorage;
|
||||
|
||||
public DefaultCheck24hProvider(PreferenceStorage preferenceStorage) {
|
||||
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
|
||||
this.preferenceStorage = preferenceStorage;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.providers.Check24hProvider
|
||||
public boolean checkfetchInfo(boolean shouldFetch) {
|
||||
return shouldFetch || DateExtensionKt.check24Hours(new Date(), this.preferenceStorage.getLastFetchStationsDate());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.adif.elcanomovil.repositories.providers;
|
||||
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
import com.adif.elcanomovil.domain.providers.CredentialsProvider;
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0005\u001a\u00020\u0006H\u0016J\b\u0010\u0007\u001a\u00020\u0006H\u0016J\b\u0010\b\u001a\u00020\u0006H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultCredentialsProvider;", "Lcom/adif/elcanomovil/domain/providers/CredentialsProvider;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "generatePassword", "", "generateUserId", "getPersistentUserId", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultCredentialsProvider implements CredentialsProvider {
|
||||
private final Context context;
|
||||
|
||||
public DefaultCredentialsProvider(Context context) {
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.providers.CredentialsProvider
|
||||
public String generatePassword() {
|
||||
String uuid = UUID.randomUUID().toString();
|
||||
Intrinsics.checkNotNullExpressionValue(uuid, "toString(...)");
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.providers.CredentialsProvider
|
||||
public String generateUserId() {
|
||||
return getPersistentUserId() + '_' + new Date().getTime();
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.providers.CredentialsProvider
|
||||
public String getPersistentUserId() {
|
||||
String string = Settings.Secure.getString(this.context.getContentResolver(), "android_id");
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
return string;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
package com.adif.elcanomovil.repositories.providers;
|
||||
|
||||
import com.adif.elcanomovil.domain.providers.DynamicLinkFacade;
|
||||
import com.google.firebase.dynamiclinks.DynamicLink;
|
||||
import com.google.firebase.dynamiclinks.FirebaseDynamicLinks;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004JH\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\b2\u0006\u0010\r\u001a\u00020\b2\u0006\u0010\u000e\u001a\u00020\u000fH\u0096@¢\u0006\u0002\u0010\u0010J\u0018\u0010\u0011\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0012\u001a\u00020\u0013H\u0096@¢\u0006\u0002\u0010\u0014R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultDynamicLinkFacade;", "Lcom/adif/elcanomovil/domain/providers/DynamicLinkFacade;", "firebaseDynamicLinks", "Lcom/google/firebase/dynamiclinks/FirebaseDynamicLinks;", "(Lcom/google/firebase/dynamiclinks/FirebaseDynamicLinks;)V", "create", "Landroid/net/Uri;", Constants.MessagePayloadKeys.FROM, "", "domainURIPrefix", "falloutLink", "appStoreId", "androidPackage", "bundleId", "metatag", "Lcom/adif/elcanomovil/domain/entities/deeplink/SocialMetaTag;", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/domain/entities/deeplink/SocialMetaTag;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", DynamicLink.Builder.KEY_DYNAMIC_LINK, "intent", "Landroid/content/Intent;", "(Landroid/content/Intent;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultDynamicLinkFacade implements DynamicLinkFacade {
|
||||
private final FirebaseDynamicLinks firebaseDynamicLinks;
|
||||
|
||||
public DefaultDynamicLinkFacade(FirebaseDynamicLinks firebaseDynamicLinks) {
|
||||
Intrinsics.checkNotNullParameter(firebaseDynamicLinks, "firebaseDynamicLinks");
|
||||
this.firebaseDynamicLinks = firebaseDynamicLinks;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // com.adif.elcanomovil.domain.providers.DynamicLinkFacade
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object create(java.lang.String r6, java.lang.String r7, java.lang.String r8, java.lang.String r9, java.lang.String r10, java.lang.String r11, com.adif.elcanomovil.domain.entities.deeplink.SocialMetaTag r12, kotlin.coroutines.Continuation<? super android.net.Uri> r13) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r13 instanceof com.adif.elcanomovil.repositories.providers.a
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r13
|
||||
com.adif.elcanomovil.repositories.providers.a r0 = (com.adif.elcanomovil.repositories.providers.a) r0
|
||||
int r1 = r0.f4636c
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.f4636c = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.providers.a r0 = new com.adif.elcanomovil.repositories.providers.a
|
||||
r0.<init>(r5, r13)
|
||||
L18:
|
||||
java.lang.Object r13 = r0.f4634a
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.f4636c
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r13)
|
||||
goto L55
|
||||
L29:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r13)
|
||||
java.lang.String r13 = "UTF-8"
|
||||
java.lang.String r6 = java.net.URLEncoder.encode(r6, r13)
|
||||
com.google.firebase.dynamiclinks.FirebaseDynamicLinks r13 = r5.firebaseDynamicLinks
|
||||
com.adif.elcanomovil.repositories.providers.e r5 = new com.adif.elcanomovil.repositories.providers.e
|
||||
r4 = r7
|
||||
r7 = r6
|
||||
r6 = r4
|
||||
r4 = r11
|
||||
r11 = r9
|
||||
r9 = r10
|
||||
r10 = r4
|
||||
r5.<init>(r6, r7, r8, r9, r10, r11, r12)
|
||||
com.google.android.gms.tasks.Task r5 = com.google.firebase.dynamiclinks.ktx.FirebaseDynamicLinksKt.shortLinkAsync(r13, r5)
|
||||
r0.f4636c = r3
|
||||
java.lang.Object r13 = kotlinx.coroutines.tasks.TasksKt.await(r5, r0)
|
||||
if (r13 != r1) goto L55
|
||||
return r1
|
||||
L55:
|
||||
com.google.firebase.dynamiclinks.ShortDynamicLink r13 = (com.google.firebase.dynamiclinks.ShortDynamicLink) r13
|
||||
android.net.Uri r5 = r13.getShortLink()
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.providers.DefaultDynamicLinkFacade.create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.adif.elcanomovil.domain.entities.deeplink.SocialMetaTag, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004c A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:14:0x004e */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // com.adif.elcanomovil.domain.providers.DynamicLinkFacade
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object dynamicLink(android.content.Intent r5, kotlin.coroutines.Continuation<? super android.net.Uri> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.providers.f
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.providers.f r0 = (com.adif.elcanomovil.repositories.providers.f) r0
|
||||
int r1 = r0.f4649c
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.f4649c = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.providers.f r0 = new com.adif.elcanomovil.repositories.providers.f
|
||||
r0.<init>(r4, r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.f4647a
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.f4649c
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L48
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.google.firebase.dynamiclinks.FirebaseDynamicLinks r4 = r4.firebaseDynamicLinks
|
||||
com.google.android.gms.tasks.Task r4 = r4.getDynamicLink(r5)
|
||||
java.lang.String r5 = "getDynamicLink(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r5)
|
||||
r0.f4649c = r3
|
||||
java.lang.Object r6 = kotlinx.coroutines.tasks.TasksKt.await(r4, r0)
|
||||
if (r6 != r1) goto L48
|
||||
return r1
|
||||
L48:
|
||||
com.google.firebase.dynamiclinks.PendingDynamicLinkData r6 = (com.google.firebase.dynamiclinks.PendingDynamicLinkData) r6
|
||||
if (r6 != 0) goto L4e
|
||||
r4 = 0
|
||||
return r4
|
||||
L4e:
|
||||
android.net.Uri r4 = r6.getLink()
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.providers.DefaultDynamicLinkFacade.dynamicLink(android.content.Intent, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.adif.elcanomovil.repositories.providers;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.providers.GooglePlayVersionProvider;
|
||||
import com.google.android.gms.common.GoogleApiAvailability;
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\u0018\u00002\u00020\u0001B\u000f\u0012\b\b\u0001\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0007R\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultGooglePlayStatusProvider;", "Lcom/adif/elcanomovil/domain/providers/GooglePlayVersionProvider;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "isActive", "", "()Z", "statusGooglePlayService", "", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultGooglePlayStatusProvider implements GooglePlayVersionProvider {
|
||||
private final Context context;
|
||||
private final boolean isActive;
|
||||
private final int statusGooglePlayService;
|
||||
|
||||
public DefaultGooglePlayStatusProvider(@ApplicationContext Context context) {
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.context = context;
|
||||
int isGooglePlayServicesAvailable = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context);
|
||||
this.statusGooglePlayService = isGooglePlayServicesAvailable;
|
||||
this.isActive = isGooglePlayServicesAvailable == 0;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.providers.GooglePlayVersionProvider
|
||||
/* renamed from: isActive, reason: from getter */
|
||||
public boolean getIsActive() {
|
||||
return this.isActive;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user