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:
142
apk_decompiled/sources/t1/C0616a.java
Normal file
142
apk_decompiled/sources/t1/C0616a.java
Normal file
@@ -0,0 +1,142 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* renamed from: t1.a, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0616a extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f8510a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8511b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DataType f8512c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8513d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8514e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ Boolean f8515f;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0616a(String str, DataType dataType, String str2, DefaultFavoritesRepository defaultFavoritesRepository, Boolean bool, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8511b = str;
|
||||
this.f8512c = dataType;
|
||||
this.f8513d = str2;
|
||||
this.f8514e = defaultFavoritesRepository;
|
||||
this.f8515f = bool;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new C0616a(this.f8511b, this.f8512c, this.f8513d, this.f8514e, this.f8515f, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0616a) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:25:0x0061, code lost:
|
||||
|
||||
if (r8.deleteFavouriteRouteType(r9, r10, r11, r12, r14) == r0) goto L32;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:26:0x007f, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:32:0x007d, code lost:
|
||||
|
||||
if (r14.deleteFavouriteStationType(r15, r3, r1, r14) == r0) goto L32;
|
||||
*/
|
||||
@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 r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r14.f8510a
|
||||
r2 = 2
|
||||
r3 = 1
|
||||
if (r1 == 0) goto L1b
|
||||
if (r1 == r3) goto L17
|
||||
if (r1 != r2) goto Lf
|
||||
goto L17
|
||||
Lf:
|
||||
java.lang.IllegalStateException r14 = new java.lang.IllegalStateException
|
||||
java.lang.String r15 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r14.<init>(r15)
|
||||
throw r14
|
||||
L17:
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
goto L80
|
||||
L1b:
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
java.lang.String r15 = r14.f8511b
|
||||
boolean r1 = kotlin.text.StringsKt.isBlank(r15)
|
||||
if (r1 == 0) goto L29
|
||||
kotlin.Unit r14 = kotlin.Unit.INSTANCE
|
||||
return r14
|
||||
L29:
|
||||
com.adif.elcanomovil.domain.entities.DataType r1 = com.adif.elcanomovil.domain.entities.DataType.ROUTE
|
||||
com.adif.elcanomovil.domain.entities.DataType r4 = r14.f8512c
|
||||
boolean r1 = r4.equals(r1)
|
||||
com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository r5 = r14.f8514e
|
||||
java.lang.Boolean r6 = r14.f8515f
|
||||
if (r1 == 0) goto L64
|
||||
java.lang.String r1 = r14.f8513d
|
||||
if (r1 == 0) goto L64
|
||||
int r7 = r1.length()
|
||||
if (r7 <= 0) goto L64
|
||||
com.adif.elcanomovil.serviceStorage.database.FavouritesDao r8 = com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository.access$getFavouritesDao$p(r5)
|
||||
int r9 = java.lang.Integer.parseInt(r15)
|
||||
int r10 = java.lang.Integer.parseInt(r1)
|
||||
if (r6 == 0) goto L55
|
||||
boolean r15 = r6.booleanValue()
|
||||
r11 = r15
|
||||
goto L56
|
||||
L55:
|
||||
r11 = r3
|
||||
L56:
|
||||
java.lang.String r12 = r4.name()
|
||||
r14.f8510a = r3
|
||||
r13 = r14
|
||||
java.lang.Object r14 = r8.deleteFavouriteRouteType(r9, r10, r11, r12, r13)
|
||||
if (r14 != r0) goto L80
|
||||
goto L7f
|
||||
L64:
|
||||
r13 = r14
|
||||
com.adif.elcanomovil.serviceStorage.database.FavouritesDao r14 = com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository.access$getFavouritesDao$p(r5)
|
||||
int r15 = java.lang.Integer.parseInt(r15)
|
||||
if (r6 == 0) goto L73
|
||||
boolean r3 = r6.booleanValue()
|
||||
L73:
|
||||
java.lang.String r1 = r4.name()
|
||||
r13.f8510a = r2
|
||||
java.lang.Object r14 = r14.deleteFavouriteStationType(r15, r3, r1, r13)
|
||||
if (r14 != r0) goto L80
|
||||
L7f:
|
||||
return r0
|
||||
L80:
|
||||
kotlin.Unit r14 = kotlin.Unit.INSTANCE
|
||||
return r14
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: t1.C0616a.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
80
apk_decompiled/sources/t1/C0617b.java
Normal file
80
apk_decompiled/sources/t1/C0617b.java
Normal file
@@ -0,0 +1,80 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesStationsMapper;
|
||||
import com.adif.elcanomovil.serviceStorage.model.FavouriteEntity;
|
||||
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;
|
||||
|
||||
/* renamed from: t1.b, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0617b extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f8516a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f8517b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f8518c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8519d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0617b(List list, DefaultFavoritesRepository defaultFavoritesRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8518c = list;
|
||||
this.f8519d = defaultFavoritesRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
C0617b c0617b = new C0617b(this.f8518c, this.f8519d, continuation);
|
||||
c0617b.f8517b = obj;
|
||||
return c0617b;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0617b) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
FavouritesStationsMapper favouritesStationsMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f8516a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f8517b;
|
||||
List<FavouriteEntity> list = this.f8518c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (FavouriteEntity favouriteEntity : list) {
|
||||
favouritesStationsMapper = this.f8519d.favouritesMapper;
|
||||
arrayList.add(favouritesStationsMapper.favouriteEntityToDomain(favouriteEntity));
|
||||
}
|
||||
this.f8516a = 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;
|
||||
}
|
||||
}
|
||||
47
apk_decompiled/sources/t1/C0618c.java
Normal file
47
apk_decompiled/sources/t1/C0618c.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
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;
|
||||
|
||||
/* renamed from: t1.c, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0618c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f8520a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8521b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0618c(DefaultFavoritesRepository defaultFavoritesRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8521b = defaultFavoritesRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
C0618c c0618c = new C0618c(this.f8521b, continuation);
|
||||
c0618c.f8520a = obj;
|
||||
return c0618c;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0618c) 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 C0617b((List) this.f8520a, this.f8521b, null));
|
||||
}
|
||||
}
|
||||
80
apk_decompiled/sources/t1/C0619d.java
Normal file
80
apk_decompiled/sources/t1/C0619d.java
Normal file
@@ -0,0 +1,80 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesStationsMapper;
|
||||
import com.adif.elcanomovil.serviceStorage.model.StationFavouritesEntity;
|
||||
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;
|
||||
|
||||
/* renamed from: t1.d, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0619d extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f8522a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f8523b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f8524c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8525d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0619d(List list, DefaultFavoritesRepository defaultFavoritesRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8524c = list;
|
||||
this.f8525d = defaultFavoritesRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
C0619d c0619d = new C0619d(this.f8524c, this.f8525d, continuation);
|
||||
c0619d.f8523b = obj;
|
||||
return c0619d;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0619d) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
FavouritesStationsMapper favouritesStationsMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f8522a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f8523b;
|
||||
List<StationFavouritesEntity> list = this.f8524c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationFavouritesEntity stationFavouritesEntity : list) {
|
||||
favouritesStationsMapper = this.f8525d.favouritesMapper;
|
||||
arrayList.add(favouritesStationsMapper.entityToDomain(stationFavouritesEntity));
|
||||
}
|
||||
this.f8522a = 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;
|
||||
}
|
||||
}
|
||||
47
apk_decompiled/sources/t1/C0620e.java
Normal file
47
apk_decompiled/sources/t1/C0620e.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
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;
|
||||
|
||||
/* renamed from: t1.e, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0620e extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f8526a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8527b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0620e(DefaultFavoritesRepository defaultFavoritesRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8527b = defaultFavoritesRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
C0620e c0620e = new C0620e(this.f8527b, continuation);
|
||||
c0620e.f8526a = obj;
|
||||
return c0620e;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0620e) 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 C0619d((List) this.f8526a, this.f8527b, null));
|
||||
}
|
||||
}
|
||||
80
apk_decompiled/sources/t1/C0621f.java
Normal file
80
apk_decompiled/sources/t1/C0621f.java
Normal file
@@ -0,0 +1,80 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesTrainsMapper;
|
||||
import com.adif.elcanomovil.serviceStorage.model.FavouriteTrainEntity;
|
||||
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;
|
||||
|
||||
/* renamed from: t1.f, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0621f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f8528a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f8529b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f8530c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8531d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0621f(List list, DefaultFavoritesRepository defaultFavoritesRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8530c = list;
|
||||
this.f8531d = defaultFavoritesRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
C0621f c0621f = new C0621f(this.f8530c, this.f8531d, continuation);
|
||||
c0621f.f8529b = obj;
|
||||
return c0621f;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0621f) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
FavouritesTrainsMapper favouritesTrainsMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f8528a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f8529b;
|
||||
List<FavouriteTrainEntity> list = this.f8530c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (FavouriteTrainEntity favouriteTrainEntity : list) {
|
||||
favouritesTrainsMapper = this.f8531d.favouritesTrainMapper;
|
||||
arrayList.add(favouritesTrainsMapper.entityToDomain(favouriteTrainEntity));
|
||||
}
|
||||
this.f8528a = 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;
|
||||
}
|
||||
}
|
||||
47
apk_decompiled/sources/t1/C0622g.java
Normal file
47
apk_decompiled/sources/t1/C0622g.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
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;
|
||||
|
||||
/* renamed from: t1.g, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0622g extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f8532a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8533b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0622g(DefaultFavoritesRepository defaultFavoritesRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8533b = defaultFavoritesRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
C0622g c0622g = new C0622g(this.f8533b, continuation);
|
||||
c0622g.f8532a = obj;
|
||||
return c0622g;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0622g) 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 C0621f((List) this.f8532a, this.f8533b, null));
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/t1/C0623h.java
Normal file
60
apk_decompiled/sources/t1/C0623h.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
import com.adif.elcanomovil.repositories.favourites.FavouritesStationsMapper;
|
||||
import com.adif.elcanomovil.serviceStorage.database.FavouritesDao;
|
||||
import com.adif.elcanomovil.serviceStorage.model.FavouriteEntity;
|
||||
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 kotlin.text.StringsKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* renamed from: t1.h, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0623h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8534a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8535b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0623h(String str, DefaultFavoritesRepository defaultFavoritesRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8534a = str;
|
||||
this.f8535b = defaultFavoritesRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new C0623h(this.f8534a, this.f8535b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C0623h) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
FavouritesDao favouritesDao;
|
||||
FavouritesStationsMapper favouritesStationsMapper;
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
String str = this.f8534a;
|
||||
StringsKt.isBlank(str);
|
||||
DefaultFavoritesRepository defaultFavoritesRepository = this.f8535b;
|
||||
favouritesDao = defaultFavoritesRepository.favouritesDao;
|
||||
FavouriteEntity stationFavourite = favouritesDao.getStationFavourite(Integer.parseInt(str));
|
||||
if (stationFavourite == null) {
|
||||
return null;
|
||||
}
|
||||
favouritesStationsMapper = defaultFavoritesRepository.favouritesMapper;
|
||||
return favouritesStationsMapper.favouriteEntityToDomain(stationFavourite);
|
||||
}
|
||||
}
|
||||
91
apk_decompiled/sources/t1/i.java
Normal file
91
apk_decompiled/sources/t1/i.java
Normal file
@@ -0,0 +1,91 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
import com.adif.elcanomovil.serviceStorage.database.FavouritesDao;
|
||||
import com.adif.elcanomovil.serviceStorage.model.FavouriteEntity;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.text.StringsKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f8536a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8537b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8538c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DataType f8539d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8540e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8541f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8542g;
|
||||
public final /* synthetic */ Boolean h;
|
||||
public final /* synthetic */ Boolean i;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(String str, DefaultFavoritesRepository defaultFavoritesRepository, DataType dataType, String str2, String str3, String str4, Boolean bool, Boolean bool2, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8537b = str;
|
||||
this.f8538c = defaultFavoritesRepository;
|
||||
this.f8539d = dataType;
|
||||
this.f8540e = str2;
|
||||
this.f8541f = str3;
|
||||
this.f8542g = str4;
|
||||
this.h = bool;
|
||||
this.i = bool2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f8537b, this.f8538c, this.f8539d, this.f8540e, this.f8541f, this.f8542g, this.h, this.i, 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) {
|
||||
FavouritesDao favouritesDao;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f8536a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
if (StringsKt.isBlank(this.f8537b)) {
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
favouritesDao = this.f8538c.favouritesDao;
|
||||
List<FavouriteEntity> listOf = CollectionsKt.listOf(new FavouriteEntity(0, this.f8537b, this.f8540e, this.f8541f, this.f8542g, this.f8539d.name(), this.h, this.i, 1, null));
|
||||
this.f8536a = 1;
|
||||
if (favouritesDao.insertAll(listOf, 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;
|
||||
}
|
||||
}
|
||||
103
apk_decompiled/sources/t1/j.java
Normal file
103
apk_decompiled/sources/t1/j.java
Normal file
@@ -0,0 +1,103 @@
|
||||
package t1;
|
||||
|
||||
import com.adif.elcanomovil.repositories.favourites.DefaultFavoritesRepository;
|
||||
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 j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f8543a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f8544b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultFavoritesRepository f8545c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8546d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8547e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8548f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f8549g;
|
||||
public final /* synthetic */ String h;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(DefaultFavoritesRepository defaultFavoritesRepository, String str, String str2, String str3, String str4, String str5, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f8545c = defaultFavoritesRepository;
|
||||
this.f8546d = str;
|
||||
this.f8547e = str2;
|
||||
this.f8548f = str3;
|
||||
this.f8549g = str4;
|
||||
this.h = str5;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
j jVar = new j(this.f8545c, this.f8546d, this.f8547e, this.f8548f, this.f8549g, this.h, continuation);
|
||||
jVar.f8544b = 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);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(9:1|(1:2)|(1:(1:(4:(1:(1:(3:9|10|11)(2:13|14))(1:15))(1:17)|16|10|11)(5:18|19|20|21|(4:23|(2:25|26)|10|11)(1:27)))(1:29))(1:40)|30|31|32|(3:34|21|(0)(0))|26|(1:(0))) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x00f0, code lost:
|
||||
|
||||
if (r1.emit(r0, r29) == r8) goto L42;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:36:0x00f3, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:37:0x00f4, code lost:
|
||||
|
||||
r1 = r14;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:38:0x00f5, code lost:
|
||||
|
||||
r0 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE.error(r0, null);
|
||||
r29.f8544b = null;
|
||||
r29.f8543a = 5;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:39:0x0103, code lost:
|
||||
|
||||
if (r1.emit(r0, r29) != r8) goto L43;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:41:0x0066, code lost:
|
||||
|
||||
if (r1.emit(r3, r29) == r8) goto L42;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x00c8 A[Catch: all -> 0x0033, TryCatch #1 {all -> 0x0033, blocks: (B:16:0x002e, B:19:0x0041, B:21:0x00be, B:23:0x00c8, B:27:0x00d9), top: B:2:0x0010 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x00d9 A[Catch: all -> 0x0033, TRY_LEAVE, TryCatch #1 {all -> 0x0033, blocks: (B:16:0x002e, B:19:0x0041, B:21:0x00be, B:23:0x00c8, B:27:0x00d9), top: B:2:0x0010 }] */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v5 */
|
||||
@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 r30) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 265
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: t1.j.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user