Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
43
apk_decompiled/sources/n1/a.java
Normal file
43
apk_decompiled/sources/n1/a.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package n1;
|
||||
|
||||
import com.adif.elcanomovil.domain.usecases.recentSearch.GetRecentSearchesUseCase;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class a extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public GetRecentSearchesUseCase f7843a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Collection f7844b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Iterator f7845c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public /* synthetic */ Object f7846d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ GetRecentSearchesUseCase f7847e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public int f7848f;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public a(GetRecentSearchesUseCase getRecentSearchesUseCase, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f7847e = getRecentSearchesUseCase;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.f7846d = obj;
|
||||
this.f7848f |= IntCompanionObject.MIN_VALUE;
|
||||
return this.f7847e.invoke(this);
|
||||
}
|
||||
}
|
||||
56
apk_decompiled/sources/n1/b.java
Normal file
56
apk_decompiled/sources/n1/b.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package n1;
|
||||
|
||||
import com.adif.elcanomovil.domain.repositories.searches.SearchesRepository;
|
||||
import com.adif.elcanomovil.domain.usecases.recentSearch.GetRecentTrainSearchesUseCase;
|
||||
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;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class b extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f7849a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ GetRecentTrainSearchesUseCase f7850b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public b(GetRecentTrainSearchesUseCase getRecentTrainSearchesUseCase, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f7850b = getRecentTrainSearchesUseCase;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new b(this.f7850b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((b) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SearchesRepository searchesRepository;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f7849a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
searchesRepository = this.f7850b.searchesRepository;
|
||||
this.f7849a = 1;
|
||||
Object fetchTrainsSelected = searchesRepository.fetchTrainsSelected(this);
|
||||
return fetchTrainsSelected == coroutine_suspended ? coroutine_suspended : fetchTrainsSelected;
|
||||
}
|
||||
}
|
||||
75
apk_decompiled/sources/n1/c.java
Normal file
75
apk_decompiled/sources/n1/c.java
Normal file
@@ -0,0 +1,75 @@
|
||||
package n1;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.StorableStation;
|
||||
import com.adif.elcanomovil.domain.repositories.searches.SearchesRepository;
|
||||
import com.adif.elcanomovil.domain.usecases.recentSearch.SaveRecentSearchUseCase;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
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 c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f7851a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ SaveRecentSearchUseCase f7852b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f7853c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(SaveRecentSearchUseCase saveRecentSearchUseCase, List list, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f7852b = saveRecentSearchUseCase;
|
||||
this.f7853c = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new c(this.f7852b, this.f7853c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((c) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SearchesRepository searchesRepository;
|
||||
int collectionSizeOrDefault;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f7851a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
searchesRepository = this.f7852b.searchesRepository;
|
||||
List list = this.f7853c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(new StorableStation((String) it.next()));
|
||||
}
|
||||
this.f7851a = 1;
|
||||
if (searchesRepository.saveSearch(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;
|
||||
}
|
||||
}
|
||||
88
apk_decompiled/sources/n1/d.java
Normal file
88
apk_decompiled/sources/n1/d.java
Normal file
@@ -0,0 +1,88 @@
|
||||
package n1;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.StorableTrain;
|
||||
import com.adif.elcanomovil.domain.repositories.searches.SearchesRepository;
|
||||
import com.adif.elcanomovil.domain.usecases.recentSearch.SaveRecentTrainSearchUseCase;
|
||||
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;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f7854a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ SaveRecentTrainSearchUseCase f7855b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f7856c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f7857d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f7858e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f7859f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f7860g;
|
||||
public final /* synthetic */ long h;
|
||||
public final /* synthetic */ long i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f7861j;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(SaveRecentTrainSearchUseCase saveRecentTrainSearchUseCase, String str, String str2, String str3, String str4, String str5, long j4, long j5, String str6, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f7855b = saveRecentTrainSearchUseCase;
|
||||
this.f7856c = str;
|
||||
this.f7857d = str2;
|
||||
this.f7858e = str3;
|
||||
this.f7859f = str4;
|
||||
this.f7860g = str5;
|
||||
this.h = j4;
|
||||
this.i = j5;
|
||||
this.f7861j = str6;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new d(this.f7855b, this.f7856c, this.f7857d, this.f7858e, this.f7859f, this.f7860g, this.h, this.i, this.f7861j, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((d) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SearchesRepository searchesRepository;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f7854a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
searchesRepository = this.f7855b.searchesRepository;
|
||||
StorableTrain storableTrain = new StorableTrain(this.f7856c, this.f7857d, this.f7858e, this.f7859f, this.f7860g, this.h, this.i, this.f7861j);
|
||||
this.f7854a = 1;
|
||||
if (searchesRepository.saveTrainSelected(storableTrain, 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user