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,41 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import android.net.Uri;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0003\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0004J\u000e\u0010\u0013\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0004R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u000e\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/DeeplinkRoutes;", "", "()V", "authority", "", "avisa", "avisaIncidenceDetails", "base", NavArguments.ARG_DYNAMIC_DEPARTURES, "favourites", "home", "scheme", "selectTrainPath", "stations", DeeplinkRoutes.trainDetailsPath, "trainDetailsPath", "getSelectTrainLink", "Landroid/net/Uri;", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, "getTrainDetailsLink", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DeeplinkRoutes {
|
||||
public static final DeeplinkRoutes INSTANCE = new DeeplinkRoutes();
|
||||
private static final String authority = "app";
|
||||
public static final String avisa = "adifmovil://app/avisa";
|
||||
public static final String avisaIncidenceDetails = "adifmovil://app/avisaIncidenceDetails";
|
||||
private static final String base = "adifmovil://app/";
|
||||
public static final String departures = "adifmovil://app/departures";
|
||||
public static final String favourites = "adifmovil://app/favourites";
|
||||
public static final String home = "adifmovil://app/home";
|
||||
private static final String scheme = "adifmovil";
|
||||
private static final String selectTrainPath = "selectTrain";
|
||||
public static final String stations = "adifmovil://app/station";
|
||||
public static final String trainDetails = "adifmovil://app/trainDetails";
|
||||
private static final String trainDetailsPath = "trainDetails";
|
||||
|
||||
private DeeplinkRoutes() {
|
||||
}
|
||||
|
||||
public final Uri getSelectTrainLink(String commercialNumber) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
Uri build = new Uri.Builder().scheme(scheme).authority(authority).appendPath(selectTrainPath).appendQueryParameter(NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, commercialNumber).appendQueryParameter("result_name", NavArguments.RESULT_TRAIN).build();
|
||||
Intrinsics.checkNotNullExpressionValue(build, "build(...)");
|
||||
return build;
|
||||
}
|
||||
|
||||
public final Uri getTrainDetailsLink(String commercialNumber) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
Uri build = new Uri.Builder().scheme(scheme).authority(authority).appendPath(trainDetailsPath).appendQueryParameter(NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, commercialNumber).appendQueryParameter(NavArguments.ARG_DYNAMIC_LINKS_STATION_CODE, null).appendQueryParameter(NavArguments.ARG_DYNAMIC_LINKS_STATION_TO_CODE, null).appendQueryParameter(NavArguments.ARG_DYNAMIC_LINKS_LAUNCHDATE, null).appendQueryParameter("observation", null).build();
|
||||
Intrinsics.checkNotNullExpressionValue(build, "build(...)");
|
||||
return build;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import android.net.Uri;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0002\u0003\u0004B\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0002\u0005\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;", "", "()V", "Send", "View", "Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction$Send;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction$View;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class IntentAction {
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction$Send;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;", "message", "", "(Ljava/lang/String;)V", "getMessage", "()Ljava/lang/String;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class Send extends IntentAction {
|
||||
private final String message;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Send(String message) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static /* synthetic */ Send copy$default(Send send, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = send.message;
|
||||
}
|
||||
return send.copy(str);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public final Send copy(String message) {
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
return new Send(message);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof Send) && Intrinsics.areEqual(this.message, ((Send) other).message);
|
||||
}
|
||||
|
||||
public final String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.message.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return a.n(new StringBuilder("Send(message="), this.message, ')');
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction$View;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;", "uri", "Landroid/net/Uri;", "(Landroid/net/Uri;)V", "getUri", "()Landroid/net/Uri;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class View extends IntentAction {
|
||||
private final Uri uri;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public View(Uri uri) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(uri, "uri");
|
||||
this.uri = uri;
|
||||
}
|
||||
|
||||
public static /* synthetic */ View copy$default(View view, Uri uri, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
uri = view.uri;
|
||||
}
|
||||
return view.copy(uri);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final Uri getUri() {
|
||||
return this.uri;
|
||||
}
|
||||
|
||||
public final View copy(Uri uri) {
|
||||
Intrinsics.checkNotNullParameter(uri, "uri");
|
||||
return new View(uri);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof View) && Intrinsics.areEqual(this.uri, ((View) other).uri);
|
||||
}
|
||||
|
||||
public final Uri getUri() {
|
||||
return this.uri;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.uri.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "View(uri=" + this.uri + ')';
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ IntentAction(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private IntentAction() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,250 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.BottomNavInitialTab;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.F;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0006\u0003\u0004\u0005\u0006\u0007\bB\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0006\t\n\u000b\f\r\u000e¨\u0006\u000f"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "", "()V", "Back", "BackWithResult", "Direction", "Intent", "RootDirection", "TabDirection", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$Back;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$BackWithResult;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$Direction;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$Intent;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$RootDirection;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$TabDirection;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class Navigation {
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$Back;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "()V", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class Back extends Navigation {
|
||||
public static final Back INSTANCE = new Back();
|
||||
|
||||
private Back() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\b\u0018\u0000*\u0004\b\u0000\u0010\u00012\u00020\u0002B\u0015\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00028\u0000¢\u0006\u0002\u0010\u0006R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0013\u0010\u0005\u001a\u00028\u0000¢\u0006\n\n\u0002\u0010\u000b\u001a\u0004\b\t\u0010\n¨\u0006\f"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$BackWithResult;", "T", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "key", "", "value", "(Ljava/lang/String;Ljava/lang/Object;)V", "getKey", "()Ljava/lang/String;", "getValue", "()Ljava/lang/Object;", "Ljava/lang/Object;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class BackWithResult<T> extends Navigation {
|
||||
private final String key;
|
||||
private final T value;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public BackWithResult(String key, T t2) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
this.key = key;
|
||||
this.value = t2;
|
||||
}
|
||||
|
||||
public final String getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
public final T getValue() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\n\u0018\u00002\u00020\u0001B\u001b\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0004¢\u0006\u0004\b\u0006\u0010\u0007R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\b\u001a\u0004\b\t\u0010\nR\u0019\u0010\u0005\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b\u0005\u0010\u000b\u001a\u0004\b\f\u0010\r¨\u0006\u000e"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$Direction;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "Lo0/F;", "navDirections", "", "currentFragmentId", "<init>", "(Lo0/F;Ljava/lang/Integer;)V", "Lo0/F;", "getNavDirections", "()Lo0/F;", "Ljava/lang/Integer;", "getCurrentFragmentId", "()Ljava/lang/Integer;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class Direction extends Navigation {
|
||||
private final Integer currentFragmentId;
|
||||
private final F navDirections;
|
||||
|
||||
public /* synthetic */ Direction(F f2, Integer num, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(f2, (i & 2) != 0 ? null : num);
|
||||
}
|
||||
|
||||
public final Integer getCurrentFragmentId() {
|
||||
return this.currentFragmentId;
|
||||
}
|
||||
|
||||
public final F getNavDirections() {
|
||||
return this.navDirections;
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Direction(F navDirections, Integer num) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(navDirections, "navDirections");
|
||||
this.navDirections = navDirections;
|
||||
this.currentFragmentId = num;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$Intent;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "action", "Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;", "(Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;)V", "getAction", "()Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class Intent extends Navigation {
|
||||
private final IntentAction action;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Intent(IntentAction action) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(action, "action");
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public static /* synthetic */ Intent copy$default(Intent intent, IntentAction intentAction, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
intentAction = intent.action;
|
||||
}
|
||||
return intent.copy(intentAction);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final IntentAction getAction() {
|
||||
return this.action;
|
||||
}
|
||||
|
||||
public final Intent copy(IntentAction action) {
|
||||
Intrinsics.checkNotNullParameter(action, "action");
|
||||
return new Intent(action);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof Intent) && Intrinsics.areEqual(this.action, ((Intent) other).action);
|
||||
}
|
||||
|
||||
public final IntentAction getAction() {
|
||||
return this.action;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.action.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Intent(action=" + this.action + ')';
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0007\b\u0086\b\u0018\u00002\u00020\u0001B\u001b\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0004¢\u0006\u0004\b\u0006\u0010\u0007J\u0010\u0010\b\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\b\u0010\tJ\u0012\u0010\n\u001a\u0004\u0018\u00010\u0004HÆ\u0003¢\u0006\u0004\b\n\u0010\u000bJ&\u0010\f\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u00022\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0004HÆ\u0001¢\u0006\u0004\b\f\u0010\rJ\u0010\u0010\u000f\u001a\u00020\u000eHÖ\u0001¢\u0006\u0004\b\u000f\u0010\u0010J\u0010\u0010\u0011\u001a\u00020\u0004HÖ\u0001¢\u0006\u0004\b\u0011\u0010\u0012J\u001a\u0010\u0016\u001a\u00020\u00152\b\u0010\u0014\u001a\u0004\u0018\u00010\u0013HÖ\u0003¢\u0006\u0004\b\u0016\u0010\u0017R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u0018\u001a\u0004\b\u0019\u0010\tR\u0019\u0010\u0005\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b\u0005\u0010\u001a\u001a\u0004\b\u001b\u0010\u000b¨\u0006\u001c"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$RootDirection;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "Lo0/F;", "navDirections", "", "currentFragmentId", "<init>", "(Lo0/F;Ljava/lang/Integer;)V", "component1", "()Lo0/F;", "component2", "()Ljava/lang/Integer;", "copy", "(Lo0/F;Ljava/lang/Integer;)Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$RootDirection;", "", "toString", "()Ljava/lang/String;", "hashCode", "()I", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "Lo0/F;", "getNavDirections", "Ljava/lang/Integer;", "getCurrentFragmentId", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class RootDirection extends Navigation {
|
||||
private final Integer currentFragmentId;
|
||||
private final F navDirections;
|
||||
|
||||
public /* synthetic */ RootDirection(F f2, Integer num, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(f2, (i & 2) != 0 ? null : num);
|
||||
}
|
||||
|
||||
public static /* synthetic */ RootDirection copy$default(RootDirection rootDirection, F f2, Integer num, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
f2 = rootDirection.navDirections;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
num = rootDirection.currentFragmentId;
|
||||
}
|
||||
return rootDirection.copy(f2, num);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final F getNavDirections() {
|
||||
return this.navDirections;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final Integer getCurrentFragmentId() {
|
||||
return this.currentFragmentId;
|
||||
}
|
||||
|
||||
public final RootDirection copy(F navDirections, Integer currentFragmentId) {
|
||||
Intrinsics.checkNotNullParameter(navDirections, "navDirections");
|
||||
return new RootDirection(navDirections, currentFragmentId);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof RootDirection)) {
|
||||
return false;
|
||||
}
|
||||
RootDirection rootDirection = (RootDirection) other;
|
||||
return Intrinsics.areEqual(this.navDirections, rootDirection.navDirections) && Intrinsics.areEqual(this.currentFragmentId, rootDirection.currentFragmentId);
|
||||
}
|
||||
|
||||
public final Integer getCurrentFragmentId() {
|
||||
return this.currentFragmentId;
|
||||
}
|
||||
|
||||
public final F getNavDirections() {
|
||||
return this.navDirections;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int hashCode = this.navDirections.hashCode() * 31;
|
||||
Integer num = this.currentFragmentId;
|
||||
return hashCode + (num == null ? 0 : num.hashCode());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "RootDirection(navDirections=" + this.navDirections + ", currentFragmentId=" + this.currentFragmentId + ')';
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public RootDirection(F navDirections, Integer num) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(navDirections, "navDirections");
|
||||
this.navDirections = navDirections;
|
||||
this.currentFragmentId = num;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation$TabDirection;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "initialTab", "Lcom/adif/elcanomovil/commonNavGraph/arguments/BottomNavInitialTab;", "(Lcom/adif/elcanomovil/commonNavGraph/arguments/BottomNavInitialTab;)V", "getInitialTab", "()Lcom/adif/elcanomovil/commonNavGraph/arguments/BottomNavInitialTab;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class TabDirection extends Navigation {
|
||||
private final BottomNavInitialTab initialTab;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public TabDirection(BottomNavInitialTab initialTab) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(initialTab, "initialTab");
|
||||
this.initialTab = initialTab;
|
||||
}
|
||||
|
||||
public static /* synthetic */ TabDirection copy$default(TabDirection tabDirection, BottomNavInitialTab bottomNavInitialTab, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
bottomNavInitialTab = tabDirection.initialTab;
|
||||
}
|
||||
return tabDirection.copy(bottomNavInitialTab);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final BottomNavInitialTab getInitialTab() {
|
||||
return this.initialTab;
|
||||
}
|
||||
|
||||
public final TabDirection copy(BottomNavInitialTab initialTab) {
|
||||
Intrinsics.checkNotNullParameter(initialTab, "initialTab");
|
||||
return new TabDirection(initialTab);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof TabDirection) && Intrinsics.areEqual(this.initialTab, ((TabDirection) other).initialTab);
|
||||
}
|
||||
|
||||
public final BottomNavInitialTab getInitialTab() {
|
||||
return this.initialTab;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.initialTab.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "TabDirection(initialTab=" + this.initialTab + ')';
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ Navigation(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Navigation() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import C.w;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u000f\n\u0002\u0010\u000b\n\u0002\b\u0006\b\u0086\b\u0018\u0000 \u001a2\u00020\u0001:\u0002\u0019\u001aB\u001f\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0005¢\u0006\u0002\u0010\u0007J\t\u0010\u000f\u001a\u00020\u0003HÆ\u0003J\u0010\u0010\u0010\u001a\u0004\u0018\u00010\u0005HÆ\u0003¢\u0006\u0002\u0010\tJ\t\u0010\u0011\u001a\u00020\u0005HÆ\u0003J.\u0010\u0012\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u0005HÆ\u0001¢\u0006\u0002\u0010\u0013J\u0013\u0010\u0014\u001a\u00020\u00152\b\u0010\u0016\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0017\u001a\u00020\u0005HÖ\u0001J\t\u0010\u0018\u001a\u00020\u0003HÖ\u0001R\u0015\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\n\n\u0002\u0010\n\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0006\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u001b"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationEvent;", "", AppMeasurementSdk.ConditionalUserProperty.NAME, "", Constants.MessagePayloadKeys.FROM, "", "to", "(Ljava/lang/String;Ljava/lang/Integer;I)V", "getFrom", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getName", "()Ljava/lang/String;", "getTo", "()I", "component1", "component2", "component3", "copy", "(Ljava/lang/String;Ljava/lang/Integer;I)Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationEvent;", "equals", "", "other", "hashCode", "toString", "BottomNavTab", "Companion", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class NavigationEvent {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
public static final String SCHEMA = "navigation_event";
|
||||
private final Integer from;
|
||||
private final String name;
|
||||
private final int to;
|
||||
|
||||
/* 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\b\n\u0002\b\b\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\bj\u0002\b\tj\u0002\b\n¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationEvent$BottomNavTab;", "", NavArguments.ARG_TYPE_NOTIFICATION_JSON_MESSAGE_TRAIN, "", "(Ljava/lang/String;II)V", "getId", "()I", "Home", "Departures", "Station", "MoreAdif", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class BottomNavTab {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ BottomNavTab[] $VALUES;
|
||||
private final int id;
|
||||
public static final BottomNavTab Home = new BottomNavTab("Home", 0, 1);
|
||||
public static final BottomNavTab Departures = new BottomNavTab("Departures", 1, 2);
|
||||
public static final BottomNavTab Station = new BottomNavTab("Station", 2, 3);
|
||||
public static final BottomNavTab MoreAdif = new BottomNavTab("MoreAdif", 3, 4);
|
||||
|
||||
private static final /* synthetic */ BottomNavTab[] $values() {
|
||||
return new BottomNavTab[]{Home, Departures, Station, MoreAdif};
|
||||
}
|
||||
|
||||
static {
|
||||
BottomNavTab[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private BottomNavTab(String str, int i, int i4) {
|
||||
this.id = i4;
|
||||
}
|
||||
|
||||
public static EnumEntries<BottomNavTab> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static BottomNavTab valueOf(String str) {
|
||||
return (BottomNavTab) Enum.valueOf(BottomNavTab.class, str);
|
||||
}
|
||||
|
||||
public static BottomNavTab[] values() {
|
||||
return (BottomNavTab[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final int getId() {
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u001a\u0010\u0005\u001a\u00020\u00062\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\u0006\u0010\t\u001a\u00020\bR\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationEvent$Companion;", "", "()V", "SCHEMA", "", "onNavigationChanged", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationEvent;", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationEvent$BottomNavTab;", "to", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public static /* synthetic */ NavigationEvent onNavigationChanged$default(Companion companion, BottomNavTab bottomNavTab, BottomNavTab bottomNavTab2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
bottomNavTab = null;
|
||||
}
|
||||
return companion.onNavigationChanged(bottomNavTab, bottomNavTab2);
|
||||
}
|
||||
|
||||
public final NavigationEvent onNavigationChanged(BottomNavTab from, BottomNavTab to) {
|
||||
Intrinsics.checkNotNullParameter(to, "to");
|
||||
return new NavigationEvent("navigation_bar/tab_switched", from != null ? Integer.valueOf(from.getId()) : null, to.getId());
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public NavigationEvent(String name, Integer num, int i) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
this.name = name;
|
||||
this.from = num;
|
||||
this.to = i;
|
||||
}
|
||||
|
||||
public static /* synthetic */ NavigationEvent copy$default(NavigationEvent navigationEvent, String str, Integer num, int i, int i4, Object obj) {
|
||||
if ((i4 & 1) != 0) {
|
||||
str = navigationEvent.name;
|
||||
}
|
||||
if ((i4 & 2) != 0) {
|
||||
num = navigationEvent.from;
|
||||
}
|
||||
if ((i4 & 4) != 0) {
|
||||
i = navigationEvent.to;
|
||||
}
|
||||
return navigationEvent.copy(str, num, i);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final Integer getFrom() {
|
||||
return this.from;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final int getTo() {
|
||||
return this.to;
|
||||
}
|
||||
|
||||
public final NavigationEvent copy(String name, Integer from, int to) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
return new NavigationEvent(name, from, to);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof NavigationEvent)) {
|
||||
return false;
|
||||
}
|
||||
NavigationEvent navigationEvent = (NavigationEvent) other;
|
||||
return Intrinsics.areEqual(this.name, navigationEvent.name) && Intrinsics.areEqual(this.from, navigationEvent.from) && this.to == navigationEvent.to;
|
||||
}
|
||||
|
||||
public final Integer getFrom() {
|
||||
return this.from;
|
||||
}
|
||||
|
||||
public final String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public final int getTo() {
|
||||
return this.to;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int hashCode = this.name.hashCode() * 31;
|
||||
Integer num = this.from;
|
||||
return Integer.hashCode(this.to) + ((hashCode + (num == null ? 0 : num.hashCode())) * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("NavigationEvent(name=");
|
||||
sb.append(this.name);
|
||||
sb.append(", from=");
|
||||
sb.append(this.from);
|
||||
sb.append(", to=");
|
||||
return w.p(sb, this.to, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import android.content.Intent;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import com.adif.elcanomovil.commonNavGraph.extensions.NavigationExtensionsKt;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.IntentAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.commonNavGraph.viewmodel.TabNavigator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import m3.l;
|
||||
import o0.AbstractC0544v;
|
||||
import o0.E;
|
||||
import o0.F;
|
||||
|
||||
@Metadata(d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\u000f\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007J)\u0010\u000e\u001a\u00020\u00032\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\n2\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ\u0017\u0010\u0012\u001a\u00020\u00032\u0006\u0010\u0011\u001a\u00020\u0010H\u0002¢\u0006\u0004\b\u0012\u0010\u0013J\u0017\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u0014H\u0002¢\u0006\u0004\b\u0017\u0010\u0018J1\u0010\u001b\u001a\u00020\u00032\u0006\u0010\u0005\u001a\u00020\u00042\u0017\u0010\u001b\u001a\u0013\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\u00190\u0001¢\u0006\u0002\b\u001aH\u0082\b¢\u0006\u0004\b\u001b\u0010\u001cJ\u0018\u0010\u001e\u001a\u00020\u00032\u0006\u0010\u001d\u001a\u00020\u0002H\u0096\u0002¢\u0006\u0004\b\u001e\u0010\u001fR\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010 ¨\u0006!"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationHandler;", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "", "Landroidx/fragment/app/K;", "fragment", "<init>", "(Landroidx/fragment/app/K;)V", "Lo0/v;", "navController", "Lo0/F;", "navDirections", "", "currentExpectedFragmentId", "safeNavigate", "(Lo0/v;Lo0/F;Ljava/lang/Integer;)V", "Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;", "action", "handleIntent", "(Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction;)V", "Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction$Send;", "send", "Landroid/content/Intent;", "generateSendIntent", "(Lcom/adif/elcanomovil/commonNavGraph/navigation/IntentAction$Send;)Landroid/content/Intent;", "", "Lkotlin/ExtensionFunctionType;", "navigateBack", "(Landroidx/fragment/app/K;Lkotlin/jvm/functions/Function1;)V", "navigation", "invoke", "(Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;)V", "Landroidx/fragment/app/K;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nNavigationHandler.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavigationHandler.kt\ncom/adif/elcanomovil/commonNavGraph/navigation/NavigationHandler\n*L\n1#1,97:1\n89#1,7:98\n89#1,7:105\n*S KotlinDebug\n*F\n+ 1 NavigationHandler.kt\ncom/adif/elcanomovil/commonNavGraph/navigation/NavigationHandler\n*L\n15#1:98,7\n18#1:105,7\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NavigationHandler implements Function1<Navigation, Unit> {
|
||||
private final K fragment;
|
||||
|
||||
public NavigationHandler(K fragment) {
|
||||
Intrinsics.checkNotNullParameter(fragment, "fragment");
|
||||
this.fragment = fragment;
|
||||
}
|
||||
|
||||
private final Intent generateSendIntent(IntentAction.Send send) {
|
||||
Intent intent = new Intent("android.intent.action.SEND");
|
||||
intent.putExtra("android.intent.extra.TEXT", send.getMessage());
|
||||
intent.putExtra("android.intent.extra.SUBJECT", send.getMessage());
|
||||
intent.setType("text/plain");
|
||||
return intent;
|
||||
}
|
||||
|
||||
private final void handleIntent(IntentAction action) {
|
||||
Intent generateSendIntent;
|
||||
if (action instanceof IntentAction.View) {
|
||||
generateSendIntent = new Intent("android.intent.action.VIEW", ((IntentAction.View) action).getUri());
|
||||
} else {
|
||||
if (!(action instanceof IntentAction.Send)) {
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
generateSendIntent = generateSendIntent((IntentAction.Send) action);
|
||||
}
|
||||
this.fragment.requireActivity().startActivity(generateSendIntent);
|
||||
}
|
||||
|
||||
private final void navigateBack(K fragment, Function1<? super AbstractC0544v, Boolean> navigateBack) {
|
||||
if (navigateBack.invoke(l.n(fragment)).booleanValue() || navigateBack.invoke(NavigationExtensionsKt.findRootNavController(fragment)).booleanValue()) {
|
||||
return;
|
||||
}
|
||||
fragment.requireActivity().finishAfterTransition();
|
||||
}
|
||||
|
||||
private final void safeNavigate(AbstractC0544v navController, F navDirections, Integer currentExpectedFragmentId) {
|
||||
E g4 = l.n(this.fragment).g();
|
||||
Integer valueOf = g4 != null ? Integer.valueOf(g4.h) : null;
|
||||
if (currentExpectedFragmentId == null) {
|
||||
navController.p(navDirections);
|
||||
} else if (Intrinsics.areEqual(valueOf, currentExpectedFragmentId)) {
|
||||
navController.p(navDirections);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Navigation navigation) {
|
||||
invoke2(navigation);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public void invoke2(Navigation navigation) {
|
||||
K parentFragment;
|
||||
Intrinsics.checkNotNullParameter(navigation, "navigation");
|
||||
if (Intrinsics.areEqual(navigation, Navigation.Back.INSTANCE)) {
|
||||
K k4 = this.fragment;
|
||||
if (l.n(k4).q() || NavigationExtensionsKt.findRootNavController(k4).q()) {
|
||||
return;
|
||||
}
|
||||
k4.requireActivity().finishAfterTransition();
|
||||
return;
|
||||
}
|
||||
if (navigation instanceof Navigation.BackWithResult) {
|
||||
K k5 = this.fragment;
|
||||
Navigation.BackWithResult backWithResult = (Navigation.BackWithResult) navigation;
|
||||
if (NavigationExtensionsKt.popBackStackWithResult(l.n(k5), backWithResult.getKey(), backWithResult.getValue()) || NavigationExtensionsKt.popBackStackWithResult(NavigationExtensionsKt.findRootNavController(k5), backWithResult.getKey(), backWithResult.getValue())) {
|
||||
return;
|
||||
}
|
||||
k5.requireActivity().finishAfterTransition();
|
||||
return;
|
||||
}
|
||||
if (navigation instanceof Navigation.Direction) {
|
||||
Navigation.Direction direction = (Navigation.Direction) navigation;
|
||||
safeNavigate(l.n(this.fragment), direction.getNavDirections(), direction.getCurrentFragmentId());
|
||||
return;
|
||||
}
|
||||
if (navigation instanceof Navigation.TabDirection) {
|
||||
K parentFragment2 = this.fragment.getParentFragment();
|
||||
TabNavigator tabNavigator = null;
|
||||
InterfaceC0200v parentFragment3 = parentFragment2 != null ? parentFragment2.getParentFragment() : null;
|
||||
TabNavigator tabNavigator2 = parentFragment3 instanceof TabNavigator ? (TabNavigator) parentFragment3 : null;
|
||||
if (tabNavigator2 == null) {
|
||||
K parentFragment4 = this.fragment.getParentFragment();
|
||||
Object parentFragment5 = (parentFragment4 == null || (parentFragment = parentFragment4.getParentFragment()) == null) ? null : parentFragment.getParentFragment();
|
||||
if (parentFragment5 instanceof TabNavigator) {
|
||||
tabNavigator = (TabNavigator) parentFragment5;
|
||||
}
|
||||
} else {
|
||||
tabNavigator = tabNavigator2;
|
||||
}
|
||||
if (tabNavigator != null) {
|
||||
tabNavigator.navigateTo(((Navigation.TabDirection) navigation).getInitialTab());
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (navigation instanceof Navigation.RootDirection) {
|
||||
Navigation.RootDirection rootDirection = (Navigation.RootDirection) navigation;
|
||||
safeNavigate(NavigationExtensionsKt.findRootNavController(this.fragment), rootDirection.getNavDirections(), rootDirection.getCurrentFragmentId());
|
||||
} else if (navigation instanceof Navigation.Intent) {
|
||||
handleIntent(((Navigation.Intent) navigation).getAction());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.adif.elcanomovil.serviceNetworking.ServicePaths;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0003\u0003\u0004\u0005B\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0003\u0006\u0007\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination;", "", "()V", "AvisaView", "RoutesView", "TrainView", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$AvisaView;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$RoutesView;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$TrainView;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class NavigationIntentDestination {
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$AvisaView;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination;", ServicePaths.IncidenceService.pathIncidenceId, "", "(Ljava/lang/String;)V", "getIncidenceId", "()Ljava/lang/String;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class AvisaView extends NavigationIntentDestination {
|
||||
private final String incidenceId;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public AvisaView(String incidenceId) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(incidenceId, "incidenceId");
|
||||
this.incidenceId = incidenceId;
|
||||
}
|
||||
|
||||
public static /* synthetic */ AvisaView copy$default(AvisaView avisaView, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = avisaView.incidenceId;
|
||||
}
|
||||
return avisaView.copy(str);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getIncidenceId() {
|
||||
return this.incidenceId;
|
||||
}
|
||||
|
||||
public final AvisaView copy(String incidenceId) {
|
||||
Intrinsics.checkNotNullParameter(incidenceId, "incidenceId");
|
||||
return new AvisaView(incidenceId);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof AvisaView) && Intrinsics.areEqual(this.incidenceId, ((AvisaView) other).incidenceId);
|
||||
}
|
||||
|
||||
public final String getIncidenceId() {
|
||||
return this.incidenceId;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.incidenceId.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return a.n(new StringBuilder("AvisaView(incidenceId="), this.incidenceId, ')');
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u000b\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\t\u0010\f\u001a\u00020\u0003HÆ\u0003J\t\u0010\r\u001a\u00020\u0003HÆ\u0003J\t\u0010\u000e\u001a\u00020\u0006HÆ\u0003J'\u0010\u000f\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u0006HÆ\u0001J\u0013\u0010\u0010\u001a\u00020\u00062\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001J\t\u0010\u0015\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\nR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\t¨\u0006\u0016"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$RoutesView;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination;", "originStationId", "", "destinationStationId", "isCercanias", "", "(Ljava/lang/String;Ljava/lang/String;Z)V", "getDestinationStationId", "()Ljava/lang/String;", "()Z", "getOriginStationId", "component1", "component2", "component3", "copy", "equals", "other", "", "hashCode", "", "toString", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class RoutesView extends NavigationIntentDestination {
|
||||
private final String destinationStationId;
|
||||
private final boolean isCercanias;
|
||||
private final String originStationId;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public RoutesView(String originStationId, String destinationStationId, boolean z3) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(originStationId, "originStationId");
|
||||
Intrinsics.checkNotNullParameter(destinationStationId, "destinationStationId");
|
||||
this.originStationId = originStationId;
|
||||
this.destinationStationId = destinationStationId;
|
||||
this.isCercanias = z3;
|
||||
}
|
||||
|
||||
public static /* synthetic */ RoutesView copy$default(RoutesView routesView, String str, String str2, boolean z3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = routesView.originStationId;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str2 = routesView.destinationStationId;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
z3 = routesView.isCercanias;
|
||||
}
|
||||
return routesView.copy(str, str2, z3);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getOriginStationId() {
|
||||
return this.originStationId;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getDestinationStationId() {
|
||||
return this.destinationStationId;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final boolean getIsCercanias() {
|
||||
return this.isCercanias;
|
||||
}
|
||||
|
||||
public final RoutesView copy(String originStationId, String destinationStationId, boolean isCercanias) {
|
||||
Intrinsics.checkNotNullParameter(originStationId, "originStationId");
|
||||
Intrinsics.checkNotNullParameter(destinationStationId, "destinationStationId");
|
||||
return new RoutesView(originStationId, destinationStationId, isCercanias);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof RoutesView)) {
|
||||
return false;
|
||||
}
|
||||
RoutesView routesView = (RoutesView) other;
|
||||
return Intrinsics.areEqual(this.originStationId, routesView.originStationId) && Intrinsics.areEqual(this.destinationStationId, routesView.destinationStationId) && this.isCercanias == routesView.isCercanias;
|
||||
}
|
||||
|
||||
public final String getDestinationStationId() {
|
||||
return this.destinationStationId;
|
||||
}
|
||||
|
||||
public final String getOriginStationId() {
|
||||
return this.originStationId;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Boolean.hashCode(this.isCercanias) + a.d(this.destinationStationId, this.originStationId.hashCode() * 31, 31);
|
||||
}
|
||||
|
||||
public final boolean isCercanias() {
|
||||
return this.isCercanias;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "RoutesView(originStationId=" + this.originStationId + ", destinationStationId=" + this.destinationStationId + ", isCercanias=" + this.isCercanias + ')';
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$TrainView;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination;", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, "", "(Ljava/lang/String;)V", "getCommercialNumber", "()Ljava/lang/String;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class TrainView extends NavigationIntentDestination {
|
||||
private final String commercialNumber;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public TrainView(String commercialNumber) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
this.commercialNumber = commercialNumber;
|
||||
}
|
||||
|
||||
public static /* synthetic */ TrainView copy$default(TrainView trainView, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = trainView.commercialNumber;
|
||||
}
|
||||
return trainView.copy(str);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getCommercialNumber() {
|
||||
return this.commercialNumber;
|
||||
}
|
||||
|
||||
public final TrainView copy(String commercialNumber) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
return new TrainView(commercialNumber);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof TrainView) && Intrinsics.areEqual(this.commercialNumber, ((TrainView) other).commercialNumber);
|
||||
}
|
||||
|
||||
public final String getCommercialNumber() {
|
||||
return this.commercialNumber;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.commercialNumber.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return a.n(new StringBuilder("TrainView(commercialNumber="), this.commercialNumber, ')');
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ NavigationIntentDestination(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private NavigationIntentDestination() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationIntentDestination;
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Singleton
|
||||
@Metadata(d1 = {"\u0000T\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0005\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\u0002\b\u0007\u0018\u0000 2\u00020\u0001:\u0001 B\u0011\b\u0007\u0012\b\b\u0001\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0002J\u0018\u0010\t\u001a\u0004\u0018\u00010\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\u0007\u001a\u00020\bJ \u0010\r\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u000e\u001a\u00020\b2\u0006\u0010\u000f\u001a\u00020\b2\u0006\u0010\u0010\u001a\u00020\u0011J(\u0010\u0012\u001a\u0004\u0018\u00010\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\u000e\u001a\u00020\b2\u0006\u0010\u000f\u001a\u00020\b2\u0006\u0010\u0010\u001a\u00020\u0011J\u0012\u0010\u0013\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0014\u001a\u00020\bH\u0002J\u0018\u0010\u0015\u001a\u0004\u0018\u00010\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\u0014\u001a\u00020\bJ\u0012\u0010\u0016\u001a\u0004\u0018\u00010\u00172\u0006\u0010\u0018\u001a\u00020\u0019H\u0002J\u0010\u0010\u001a\u001a\u0004\u0018\u00010\u001b2\u0006\u0010\u0018\u001a\u00020\u0019J\u0012\u0010\u001c\u001a\u0004\u0018\u00010\u001d2\u0006\u0010\u0018\u001a\u00020\u0019H\u0002J\u0012\u0010\u001e\u001a\u0004\u0018\u00010\u001f2\u0006\u0010\u0018\u001a\u00020\u0019H\u0002R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006!"}, d2 = {"Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntents;", "", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "createOpenAvisaViewIntent", "Landroid/content/Intent;", "incidenceId", "", "createOpenAvisaViewPendingIntent", "Landroid/app/PendingIntent;", "requestCode", "", "createOpenRoutesViewIntent", "originStationId", "destinationStationId", "isCercanias", "", "createOpenRoutesViewPendingIntent", "createOpenTrainViewIntent", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, "createOpenTrainViewPendingIntent", "decodeAvisaNotification", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$AvisaView;", "bundle", "Landroid/os/Bundle;", "decodePayload", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination;", "decodeRouteNotification", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$RoutesView;", "decodeTrainNotification", "Lcom/adif/elcanomovil/commonNavGraph/navigation/NavigationIntentDestination$TrainView;", "Companion", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class NavigationIntents {
|
||||
private static final String NOTIFICATION_JSON_AVISA_ID = "incidenceId";
|
||||
private static final String NOTIFICATION_JSON_MESSAGE_DESTINATIONID = "d";
|
||||
private static final String NOTIFICATION_JSON_MESSAGE_IS_CERCANIAS = "ce";
|
||||
private static final String NOTIFICATION_JSON_MESSAGE_STATIONID = "o";
|
||||
private static final String NOTIFICATION_JSON_MESSAGE_TRAIN_NUMBER = "trainNumber";
|
||||
private static final String NOTIFICATION_JSON_MESSAGE_TYPE_AVISA = "300";
|
||||
private static final String NOTIFICATION_JSON_MESSAGE_TYPE_ROUTE = "103";
|
||||
private static final String NOTIFICATION_JSON_MESSAGE_TYPE_TRAIN = "202";
|
||||
private static final String NOTIFICATION_JSON_TYPE = "t";
|
||||
private final Context context;
|
||||
|
||||
@Inject
|
||||
public NavigationIntents(@ApplicationContext Context context) {
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
private final Intent createOpenAvisaViewIntent(String incidenceId) {
|
||||
Intent launchIntentForPackage = this.context.getApplicationContext().getPackageManager().getLaunchIntentForPackage(this.context.getPackageName());
|
||||
if (launchIntentForPackage == null) {
|
||||
return null;
|
||||
}
|
||||
launchIntentForPackage.setFlags(268435456);
|
||||
launchIntentForPackage.putExtra("incidenceId", incidenceId);
|
||||
launchIntentForPackage.putExtra(NOTIFICATION_JSON_TYPE, "300");
|
||||
return launchIntentForPackage;
|
||||
}
|
||||
|
||||
private final Intent createOpenTrainViewIntent(String commercialNumber) {
|
||||
Intent launchIntentForPackage = this.context.getApplicationContext().getPackageManager().getLaunchIntentForPackage(this.context.getPackageName());
|
||||
if (launchIntentForPackage == null) {
|
||||
return null;
|
||||
}
|
||||
launchIntentForPackage.setFlags(268435456);
|
||||
launchIntentForPackage.putExtra(NOTIFICATION_JSON_MESSAGE_TRAIN_NUMBER, commercialNumber);
|
||||
launchIntentForPackage.putExtra(NOTIFICATION_JSON_TYPE, NOTIFICATION_JSON_MESSAGE_TYPE_TRAIN);
|
||||
return launchIntentForPackage;
|
||||
}
|
||||
|
||||
private final NavigationIntentDestination.AvisaView decodeAvisaNotification(Bundle bundle) {
|
||||
String string = bundle.getString("incidenceId");
|
||||
if (string == null) {
|
||||
return null;
|
||||
}
|
||||
return new NavigationIntentDestination.AvisaView(string);
|
||||
}
|
||||
|
||||
private final NavigationIntentDestination.RoutesView decodeRouteNotification(Bundle bundle) {
|
||||
String string;
|
||||
String string2 = bundle.getString("o");
|
||||
if (string2 == null || (string = bundle.getString("d")) == null) {
|
||||
return null;
|
||||
}
|
||||
return new NavigationIntentDestination.RoutesView(string2, string, bundle.getBoolean("ce"));
|
||||
}
|
||||
|
||||
private final NavigationIntentDestination.TrainView decodeTrainNotification(Bundle bundle) {
|
||||
String string = bundle.getString(NOTIFICATION_JSON_MESSAGE_TRAIN_NUMBER);
|
||||
if (string == null) {
|
||||
return null;
|
||||
}
|
||||
return new NavigationIntentDestination.TrainView(string);
|
||||
}
|
||||
|
||||
public final PendingIntent createOpenAvisaViewPendingIntent(int requestCode, String incidenceId) {
|
||||
Intrinsics.checkNotNullParameter(incidenceId, "incidenceId");
|
||||
Intent createOpenAvisaViewIntent = createOpenAvisaViewIntent(incidenceId);
|
||||
if (createOpenAvisaViewIntent != null) {
|
||||
return NavigationIntentsKt.toPendingActivityIntent(createOpenAvisaViewIntent, this.context, requestCode);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final Intent createOpenRoutesViewIntent(String originStationId, String destinationStationId, boolean isCercanias) {
|
||||
Intrinsics.checkNotNullParameter(originStationId, "originStationId");
|
||||
Intrinsics.checkNotNullParameter(destinationStationId, "destinationStationId");
|
||||
Intent launchIntentForPackage = this.context.getApplicationContext().getPackageManager().getLaunchIntentForPackage(this.context.getPackageName());
|
||||
if (launchIntentForPackage == null) {
|
||||
return null;
|
||||
}
|
||||
launchIntentForPackage.setFlags(268435456);
|
||||
launchIntentForPackage.putExtra("o", originStationId);
|
||||
launchIntentForPackage.putExtra("d", destinationStationId);
|
||||
launchIntentForPackage.putExtra("ce", isCercanias);
|
||||
launchIntentForPackage.putExtra(NOTIFICATION_JSON_TYPE, NOTIFICATION_JSON_MESSAGE_TYPE_ROUTE);
|
||||
return launchIntentForPackage;
|
||||
}
|
||||
|
||||
public final PendingIntent createOpenRoutesViewPendingIntent(int requestCode, String originStationId, String destinationStationId, boolean isCercanias) {
|
||||
Intrinsics.checkNotNullParameter(originStationId, "originStationId");
|
||||
Intrinsics.checkNotNullParameter(destinationStationId, "destinationStationId");
|
||||
Intent createOpenRoutesViewIntent = createOpenRoutesViewIntent(originStationId, destinationStationId, isCercanias);
|
||||
if (createOpenRoutesViewIntent != null) {
|
||||
return NavigationIntentsKt.toPendingActivityIntent(createOpenRoutesViewIntent, this.context, requestCode);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final PendingIntent createOpenTrainViewPendingIntent(int requestCode, String commercialNumber) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
Intent createOpenTrainViewIntent = createOpenTrainViewIntent(commercialNumber);
|
||||
if (createOpenTrainViewIntent != null) {
|
||||
return NavigationIntentsKt.toPendingActivityIntent(createOpenTrainViewIntent, this.context, requestCode);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final NavigationIntentDestination decodePayload(Bundle bundle) {
|
||||
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
||||
String string = bundle.getString(NOTIFICATION_JSON_TYPE);
|
||||
if (string == null) {
|
||||
return null;
|
||||
}
|
||||
int hashCode = string.hashCode();
|
||||
if (hashCode == 48628) {
|
||||
if (string.equals(NOTIFICATION_JSON_MESSAGE_TYPE_ROUTE)) {
|
||||
return decodeRouteNotification(bundle);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
if (hashCode == 49588) {
|
||||
if (string.equals(NOTIFICATION_JSON_MESSAGE_TYPE_TRAIN)) {
|
||||
return decodeTrainNotification(bundle);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
if (hashCode == 50547 && string.equals("300")) {
|
||||
return decodeAvisaNotification(bundle);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\u001a\u001c\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\u0007"}, d2 = {"toPendingActivityIntent", "Landroid/app/PendingIntent;", "Landroid/content/Intent;", "context", "Landroid/content/Context;", "requestCode", "", "common-nav-graph_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class NavigationIntentsKt {
|
||||
public static final PendingIntent toPendingActivityIntent(Intent intent, Context context, int i) {
|
||||
Intrinsics.checkNotNullParameter(intent, "<this>");
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
return PendingIntent.getActivity(context, i, intent, 201326592);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.adif.elcanomovil.commonNavGraph.navigation;
|
||||
|
||||
import android.content.Context;
|
||||
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({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NavigationIntents_Factory implements Factory<NavigationIntents> {
|
||||
private final Provider<Context> contextProvider;
|
||||
|
||||
public NavigationIntents_Factory(Provider<Context> provider) {
|
||||
this.contextProvider = provider;
|
||||
}
|
||||
|
||||
public static NavigationIntents_Factory create(Provider<Context> provider) {
|
||||
return new NavigationIntents_Factory(provider);
|
||||
}
|
||||
|
||||
public static NavigationIntents newInstance(Context context) {
|
||||
return new NavigationIntents(context);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public NavigationIntents get() {
|
||||
return newInstance(this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user