Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package com.adif.elcanomovil.repositories.providers;
import android.content.Context;
import com.adif.elcanomovil.domain.providers.AppVersionProvider;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultAppVersionProvider;", "Lcom/adif/elcanomovil/domain/providers/AppVersionProvider;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "version", "", "getVersion", "()Ljava/lang/String;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultAppVersionProvider implements AppVersionProvider {
private final String version;
public DefaultAppVersionProvider(Context context) {
String version;
Intrinsics.checkNotNullParameter(context, "context");
version = DefaultAppVersionProviderKt.getVersion(context);
this.version = version;
}
@Override // com.adif.elcanomovil.domain.providers.AppVersionProvider
public String getVersion() {
return this.version;
}
}

View File

@@ -0,0 +1,25 @@
package com.adif.elcanomovil.repositories.providers;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import m3.l;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"version", "", "Landroid/content/Context;", "getVersion", "(Landroid/content/Context;)Ljava/lang/String;", "repositories_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultAppVersionProviderKt {
/* JADX INFO: Access modifiers changed from: private */
public static final String getVersion(Context context) {
try {
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
Intrinsics.checkNotNullExpressionValue(packageInfo, "getPackageInfo(...)");
String str = packageInfo.versionName;
return str == null ? "" : str;
} catch (PackageManager.NameNotFoundException e4) {
l.g(e4);
return "";
}
}
}

View File

@@ -0,0 +1,24 @@
package com.adif.elcanomovil.repositories.providers;
import com.adif.elcanomovil.domain.providers.Check24hProvider;
import com.adif.elcanomovil.repositories.utils.DateExtensionKt;
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
import java.util.Date;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0006H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\b"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultCheck24hProvider;", "Lcom/adif/elcanomovil/domain/providers/Check24hProvider;", "preferenceStorage", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "(Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;)V", "checkfetchInfo", "", "shouldFetch", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultCheck24hProvider implements Check24hProvider {
private final PreferenceStorage preferenceStorage;
public DefaultCheck24hProvider(PreferenceStorage preferenceStorage) {
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
this.preferenceStorage = preferenceStorage;
}
@Override // com.adif.elcanomovil.domain.providers.Check24hProvider
public boolean checkfetchInfo(boolean shouldFetch) {
return shouldFetch || DateExtensionKt.check24Hours(new Date(), this.preferenceStorage.getLastFetchStationsDate());
}
}

View File

@@ -0,0 +1,39 @@
package com.adif.elcanomovil.repositories.providers;
import android.content.Context;
import android.provider.Settings;
import com.adif.elcanomovil.domain.providers.CredentialsProvider;
import java.util.Date;
import java.util.UUID;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0005\u001a\u00020\u0006H\u0016J\b\u0010\u0007\u001a\u00020\u0006H\u0016J\b\u0010\b\u001a\u00020\u0006H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultCredentialsProvider;", "Lcom/adif/elcanomovil/domain/providers/CredentialsProvider;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "generatePassword", "", "generateUserId", "getPersistentUserId", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultCredentialsProvider implements CredentialsProvider {
private final Context context;
public DefaultCredentialsProvider(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
this.context = context;
}
@Override // com.adif.elcanomovil.domain.providers.CredentialsProvider
public String generatePassword() {
String uuid = UUID.randomUUID().toString();
Intrinsics.checkNotNullExpressionValue(uuid, "toString(...)");
return uuid;
}
@Override // com.adif.elcanomovil.domain.providers.CredentialsProvider
public String generateUserId() {
return getPersistentUserId() + '_' + new Date().getTime();
}
@Override // com.adif.elcanomovil.domain.providers.CredentialsProvider
public String getPersistentUserId() {
String string = Settings.Secure.getString(this.context.getContentResolver(), "android_id");
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
return string;
}
}

View File

@@ -0,0 +1,146 @@
package com.adif.elcanomovil.repositories.providers;
import com.adif.elcanomovil.domain.providers.DynamicLinkFacade;
import com.google.firebase.dynamiclinks.DynamicLink;
import com.google.firebase.dynamiclinks.FirebaseDynamicLinks;
import com.google.firebase.messaging.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004JH\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\b2\u0006\u0010\r\u001a\u00020\b2\u0006\u0010\u000e\u001a\u00020\u000fH\u0096@¢\u0006\u0002\u0010\u0010J\u0018\u0010\u0011\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0012\u001a\u00020\u0013H\u0096@¢\u0006\u0002\u0010\u0014R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultDynamicLinkFacade;", "Lcom/adif/elcanomovil/domain/providers/DynamicLinkFacade;", "firebaseDynamicLinks", "Lcom/google/firebase/dynamiclinks/FirebaseDynamicLinks;", "(Lcom/google/firebase/dynamiclinks/FirebaseDynamicLinks;)V", "create", "Landroid/net/Uri;", Constants.MessagePayloadKeys.FROM, "", "domainURIPrefix", "falloutLink", "appStoreId", "androidPackage", "bundleId", "metatag", "Lcom/adif/elcanomovil/domain/entities/deeplink/SocialMetaTag;", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/domain/entities/deeplink/SocialMetaTag;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", DynamicLink.Builder.KEY_DYNAMIC_LINK, "intent", "Landroid/content/Intent;", "(Landroid/content/Intent;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultDynamicLinkFacade implements DynamicLinkFacade {
private final FirebaseDynamicLinks firebaseDynamicLinks;
public DefaultDynamicLinkFacade(FirebaseDynamicLinks firebaseDynamicLinks) {
Intrinsics.checkNotNullParameter(firebaseDynamicLinks, "firebaseDynamicLinks");
this.firebaseDynamicLinks = firebaseDynamicLinks;
}
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@Override // com.adif.elcanomovil.domain.providers.DynamicLinkFacade
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.Object create(java.lang.String r6, java.lang.String r7, java.lang.String r8, java.lang.String r9, java.lang.String r10, java.lang.String r11, com.adif.elcanomovil.domain.entities.deeplink.SocialMetaTag r12, kotlin.coroutines.Continuation<? super android.net.Uri> r13) {
/*
r5 = this;
boolean r0 = r13 instanceof com.adif.elcanomovil.repositories.providers.a
if (r0 == 0) goto L13
r0 = r13
com.adif.elcanomovil.repositories.providers.a r0 = (com.adif.elcanomovil.repositories.providers.a) r0
int r1 = r0.f4636c
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.f4636c = r1
goto L18
L13:
com.adif.elcanomovil.repositories.providers.a r0 = new com.adif.elcanomovil.repositories.providers.a
r0.<init>(r5, r13)
L18:
java.lang.Object r13 = r0.f4634a
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.f4636c
r3 = 1
if (r2 == 0) goto L31
if (r2 != r3) goto L29
kotlin.ResultKt.throwOnFailure(r13)
goto L55
L29:
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
r5.<init>(r6)
throw r5
L31:
kotlin.ResultKt.throwOnFailure(r13)
java.lang.String r13 = "UTF-8"
java.lang.String r6 = java.net.URLEncoder.encode(r6, r13)
com.google.firebase.dynamiclinks.FirebaseDynamicLinks r13 = r5.firebaseDynamicLinks
com.adif.elcanomovil.repositories.providers.e r5 = new com.adif.elcanomovil.repositories.providers.e
r4 = r7
r7 = r6
r6 = r4
r4 = r11
r11 = r9
r9 = r10
r10 = r4
r5.<init>(r6, r7, r8, r9, r10, r11, r12)
com.google.android.gms.tasks.Task r5 = com.google.firebase.dynamiclinks.ktx.FirebaseDynamicLinksKt.shortLinkAsync(r13, r5)
r0.f4636c = r3
java.lang.Object r13 = kotlinx.coroutines.tasks.TasksKt.await(r5, r0)
if (r13 != r1) goto L55
return r1
L55:
com.google.firebase.dynamiclinks.ShortDynamicLink r13 = (com.google.firebase.dynamiclinks.ShortDynamicLink) r13
android.net.Uri r5 = r13.getShortLink()
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.providers.DefaultDynamicLinkFacade.create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.adif.elcanomovil.domain.entities.deeplink.SocialMetaTag, kotlin.coroutines.Continuation):java.lang.Object");
}
/* JADX WARN: Removed duplicated region for block: B:12:0x004c A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:14:0x004e */
/* JADX WARN: Removed duplicated region for block: B:18:0x0031 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@Override // com.adif.elcanomovil.domain.providers.DynamicLinkFacade
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.Object dynamicLink(android.content.Intent r5, kotlin.coroutines.Continuation<? super android.net.Uri> r6) {
/*
r4 = this;
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.providers.f
if (r0 == 0) goto L13
r0 = r6
com.adif.elcanomovil.repositories.providers.f r0 = (com.adif.elcanomovil.repositories.providers.f) r0
int r1 = r0.f4649c
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.f4649c = r1
goto L18
L13:
com.adif.elcanomovil.repositories.providers.f r0 = new com.adif.elcanomovil.repositories.providers.f
r0.<init>(r4, r6)
L18:
java.lang.Object r6 = r0.f4647a
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.f4649c
r3 = 1
if (r2 == 0) goto L31
if (r2 != r3) goto L29
kotlin.ResultKt.throwOnFailure(r6)
goto L48
L29:
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
r4.<init>(r5)
throw r4
L31:
kotlin.ResultKt.throwOnFailure(r6)
com.google.firebase.dynamiclinks.FirebaseDynamicLinks r4 = r4.firebaseDynamicLinks
com.google.android.gms.tasks.Task r4 = r4.getDynamicLink(r5)
java.lang.String r5 = "getDynamicLink(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r5)
r0.f4649c = r3
java.lang.Object r6 = kotlinx.coroutines.tasks.TasksKt.await(r4, r0)
if (r6 != r1) goto L48
return r1
L48:
com.google.firebase.dynamiclinks.PendingDynamicLinkData r6 = (com.google.firebase.dynamiclinks.PendingDynamicLinkData) r6
if (r6 != 0) goto L4e
r4 = 0
return r4
L4e:
android.net.Uri r4 = r6.getLink()
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.providers.DefaultDynamicLinkFacade.dynamicLink(android.content.Intent, kotlin.coroutines.Continuation):java.lang.Object");
}
}

View File

@@ -0,0 +1,30 @@
package com.adif.elcanomovil.repositories.providers;
import android.content.Context;
import com.adif.elcanomovil.domain.providers.GooglePlayVersionProvider;
import com.google.android.gms.common.GoogleApiAvailability;
import dagger.hilt.android.qualifiers.ApplicationContext;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\u0018\u00002\u00020\u0001B\u000f\u0012\b\b\u0001\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0007R\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultGooglePlayStatusProvider;", "Lcom/adif/elcanomovil/domain/providers/GooglePlayVersionProvider;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "isActive", "", "()Z", "statusGooglePlayService", "", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultGooglePlayStatusProvider implements GooglePlayVersionProvider {
private final Context context;
private final boolean isActive;
private final int statusGooglePlayService;
public DefaultGooglePlayStatusProvider(@ApplicationContext Context context) {
Intrinsics.checkNotNullParameter(context, "context");
this.context = context;
int isGooglePlayServicesAvailable = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context);
this.statusGooglePlayService = isGooglePlayServicesAvailable;
this.isActive = isGooglePlayServicesAvailable == 0;
}
@Override // com.adif.elcanomovil.domain.providers.GooglePlayVersionProvider
/* renamed from: isActive, reason: from getter */
public boolean getIsActive() {
return this.isActive;
}
}

View File

@@ -0,0 +1,161 @@
package com.adif.elcanomovil.repositories.providers;
import android.annotation.SuppressLint;
import android.content.Context;
import android.location.Location;
import android.os.Looper;
import com.adif.elcanomovil.domain.providers.LocationProvider;
import com.google.android.gms.location.FusedLocationProviderClient;
import com.google.android.gms.location.LocationCallback;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationResult;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import dagger.hilt.android.qualifiers.ApplicationContext;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.flow.MutableStateFlow;
import kotlinx.coroutines.flow.StateFlowKt;
@Metadata(d1 = {"\u0000E\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0000*\u0001\u000b\b\u0007\u0018\u00002\u00020\u0001B\u0019\b\u0007\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0001\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0010\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\tH\u0016J\u0016\u0010\u0010\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\t0\u0011H\u0096@¢\u0006\u0002\u0010\u0012J\n\u0010\u0013\u001a\u0004\u0018\u00010\tH\u0016J\b\u0010\u0014\u001a\u00020\u0015H\u0016J\b\u0010\u0016\u001a\u00020\u0017H\u0002R\u0016\u0010\u0007\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\t0\bX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\n\u001a\u00020\u000bX\u0082\u0004¢\u0006\u0004\n\u0002\u0010\\u0006\u0018"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultLocationProvider;", "Lcom/adif/elcanomovil/domain/providers/LocationProvider;", "fusedLocationClient", "Lcom/google/android/gms/location/FusedLocationProviderClient;", "context", "Landroid/content/Context;", "(Lcom/google/android/gms/location/FusedLocationProviderClient;Landroid/content/Context;)V", "_lastLocation", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Landroid/location/Location;", "locationCallback", "com/adif/elcanomovil/repositories/providers/DefaultLocationProvider$locationCallback$1", "Lcom/adif/elcanomovil/repositories/providers/DefaultLocationProvider$locationCallback$1;", "distanceTo", "", FirebaseAnalytics.Param.LOCATION, "fetchLastLocation", "Lkotlinx/coroutines/flow/Flow;", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "fetchLastSyncLocation", "isLocated", "", "requestLocationUpdates", "", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SuppressLint({"MissingPermission"})
/* loaded from: classes.dex */
public final class DefaultLocationProvider implements LocationProvider {
private final MutableStateFlow<Location> _lastLocation;
private final Context context;
private final FusedLocationProviderClient fusedLocationClient;
private final DefaultLocationProvider$locationCallback$1 locationCallback;
/* JADX WARN: Type inference failed for: r2v3, types: [com.adif.elcanomovil.repositories.providers.DefaultLocationProvider$locationCallback$1] */
@Inject
public DefaultLocationProvider(FusedLocationProviderClient fusedLocationClient, @ApplicationContext Context context) {
Intrinsics.checkNotNullParameter(fusedLocationClient, "fusedLocationClient");
Intrinsics.checkNotNullParameter(context, "context");
this.fusedLocationClient = fusedLocationClient;
this.context = context;
this._lastLocation = StateFlowKt.MutableStateFlow(null);
this.locationCallback = new LocationCallback() { // from class: com.adif.elcanomovil.repositories.providers.DefaultLocationProvider$locationCallback$1
@Override // com.google.android.gms.location.LocationCallback
public void onLocationResult(LocationResult locationResult) {
FusedLocationProviderClient fusedLocationProviderClient;
MutableStateFlow mutableStateFlow;
Intrinsics.checkNotNullParameter(locationResult, "locationResult");
fusedLocationProviderClient = DefaultLocationProvider.this.fusedLocationClient;
fusedLocationProviderClient.removeLocationUpdates(this);
mutableStateFlow = DefaultLocationProvider.this._lastLocation;
mutableStateFlow.setValue(locationResult.getLastLocation());
}
};
}
private final void requestLocationUpdates() {
LocationRequest create = LocationRequest.create();
create.setInterval(30000L);
create.setFastestInterval(30000L);
create.setPriority(102);
Intrinsics.checkNotNullExpressionValue(create, "apply(...)");
this.fusedLocationClient.requestLocationUpdates(create, this.locationCallback, Looper.getMainLooper());
}
@Override // com.adif.elcanomovil.domain.providers.LocationProvider
public float distanceTo(Location location) {
Intrinsics.checkNotNullParameter(location, "location");
Location value = this._lastLocation.getValue();
return value != null ? value.distanceTo(location) : BitmapDescriptorFactory.HUE_RED;
}
/* JADX WARN: Removed duplicated region for block: B:12:0x0072 */
/* JADX WARN: Removed duplicated region for block: B:19:0x0033 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@Override // com.adif.elcanomovil.domain.providers.LocationProvider
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.Object fetchLastLocation(kotlin.coroutines.Continuation<? super kotlinx.coroutines.flow.Flow<? extends android.location.Location>> r8) {
/*
r7 = this;
boolean r0 = r8 instanceof com.adif.elcanomovil.repositories.providers.g
if (r0 == 0) goto L13
r0 = r8
com.adif.elcanomovil.repositories.providers.g r0 = (com.adif.elcanomovil.repositories.providers.g) r0
int r1 = r0.f4653d
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.f4653d = r1
goto L18
L13:
com.adif.elcanomovil.repositories.providers.g r0 = new com.adif.elcanomovil.repositories.providers.g
r0.<init>(r7, r8)
L18:
java.lang.Object r8 = r0.f4651b
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.f4653d
r3 = 1
if (r2 == 0) goto L33
if (r2 != r3) goto L2b
com.adif.elcanomovil.repositories.providers.DefaultLocationProvider r7 = r0.f4650a
kotlin.ResultKt.throwOnFailure(r8)
goto L6e
L2b:
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
r7.<init>(r8)
throw r7
L33:
kotlin.ResultKt.throwOnFailure(r8)
android.content.Context r8 = r7.context
int r2 = android.os.Binder.getCallingPid()
int r4 = android.os.Process.myPid()
if (r2 != r4) goto L47
java.lang.String r2 = r8.getPackageName()
goto L48
L47:
r2 = 0
L48:
int r4 = android.os.Binder.getCallingPid()
int r5 = android.os.Binder.getCallingUid()
java.lang.String r6 = "android.permission.ACCESS_COARSE_LOCATION"
int r8 = m3.l.h(r8, r6, r2, r4, r5)
if (r8 != 0) goto L7a
com.google.android.gms.location.FusedLocationProviderClient r8 = r7.fusedLocationClient
com.google.android.gms.tasks.Task r8 = r8.getLastLocation()
java.lang.String r2 = "getLastLocation(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r8, r2)
r0.f4650a = r7
r0.f4653d = r3
java.lang.Object r8 = kotlinx.coroutines.tasks.TasksKt.await(r8, r0)
if (r8 != r1) goto L6e
return r1
L6e:
android.location.Location r8 = (android.location.Location) r8
if (r8 == 0) goto L77
kotlinx.coroutines.flow.MutableStateFlow<android.location.Location> r0 = r7._lastLocation
r0.setValue(r8)
L77:
r7.requestLocationUpdates()
L7a:
kotlinx.coroutines.flow.MutableStateFlow<android.location.Location> r7 = r7._lastLocation
return r7
*/
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.providers.DefaultLocationProvider.fetchLastLocation(kotlin.coroutines.Continuation):java.lang.Object");
}
@Override // com.adif.elcanomovil.domain.providers.LocationProvider
public Location fetchLastSyncLocation() {
return this._lastLocation.getValue();
}
@Override // com.adif.elcanomovil.domain.providers.LocationProvider
public boolean isLocated() {
Location value = this._lastLocation.getValue();
if (value != null) {
return (value.getLatitude() == FirebaseRemoteConfig.DEFAULT_VALUE_FOR_DOUBLE && value.getLongitude() == FirebaseRemoteConfig.DEFAULT_VALUE_FOR_DOUBLE) ? false : true;
}
return false;
}
}

View File

@@ -0,0 +1,10 @@
package com.adif.elcanomovil.repositories.providers;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0003"}, d2 = {"LOCATION_REQUEST_FASTEST_INTERVAL", "", "LOCATION_REQUEST_INTERVAL", "repositories_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultLocationProviderKt {
private static final long LOCATION_REQUEST_FASTEST_INTERVAL = 30000;
private static final long LOCATION_REQUEST_INTERVAL = 30000;
}

View File

@@ -0,0 +1,36 @@
package com.adif.elcanomovil.repositories.providers;
import android.content.Context;
import com.google.android.gms.location.FusedLocationProviderClient;
import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
import dagger.internal.QualifierMetadata;
import dagger.internal.ScopeMetadata;
import javax.inject.Provider;
@ScopeMetadata
@DaggerGenerated
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
/* loaded from: classes.dex */
public final class DefaultLocationProvider_Factory implements Factory<DefaultLocationProvider> {
private final Provider<Context> contextProvider;
private final Provider<FusedLocationProviderClient> fusedLocationClientProvider;
public DefaultLocationProvider_Factory(Provider<FusedLocationProviderClient> provider, Provider<Context> provider2) {
this.fusedLocationClientProvider = provider;
this.contextProvider = provider2;
}
public static DefaultLocationProvider_Factory create(Provider<FusedLocationProviderClient> provider, Provider<Context> provider2) {
return new DefaultLocationProvider_Factory(provider, provider2);
}
public static DefaultLocationProvider newInstance(FusedLocationProviderClient fusedLocationProviderClient, Context context) {
return new DefaultLocationProvider(fusedLocationProviderClient, context);
}
@Override // javax.inject.Provider
public DefaultLocationProvider get() {
return newInstance(this.fusedLocationClientProvider.get(), this.contextProvider.get());
}
}

View File

@@ -0,0 +1,70 @@
package com.adif.elcanomovil.repositories.providers;
import android.content.IntentFilter;
import android.location.LocationManager;
import com.adif.elcanomovil.domain.providers.LocationStatusProvider;
import com.google.firebase.analytics.FirebaseAnalytics;
import d1.InterfaceC0307a;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
import kotlinx.coroutines.CompletableJob;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.CoroutineStart;
import kotlinx.coroutines.Dispatchers;
import kotlinx.coroutines.Job;
import kotlinx.coroutines.SupervisorKt;
import kotlinx.coroutines.flow.MutableStateFlow;
import kotlinx.coroutines.flow.SharedFlow;
import kotlinx.coroutines.flow.StateFlowKt;
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u00012\u00020\u0002B!\b\u0007\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u0012\u0006\u0010\b\u001a\u00020\u0007¢\u0006\u0004\b\t\u0010\nJ\u000f\u0010\f\u001a\u00020\u000bH\u0002¢\u0006\u0004\b\f\u0010\rR\u0014\u0010\u0004\u001a\u00020\u00038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u000eR\u001a\u0010\u0010\u001a\u00020\u000f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013R\u0016\u0010\u0015\u001a\u00020\u00148\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0015\u0010\u0016R\u001a\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00140\u00178\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0018\u0010\u0019R\u001a\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00140\u001a8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001c¨\u0006\u001e"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultLocationStatusProvider;", "Lcom/adif/elcanomovil/domain/providers/LocationStatusProvider;", "Lkotlinx/coroutines/CoroutineScope;", "LZ0/c;", "locationStatusReceiver", "LZ0/a;", "isLocationEnabled", "Ld1/a;", "appDispatcher", "<init>", "(LZ0/c;LZ0/a;Ld1/a;)V", "", "onAccessed", "()V", "LZ0/c;", "Lkotlin/coroutines/CoroutineContext;", "coroutineContext", "Lkotlin/coroutines/CoroutineContext;", "getCoroutineContext", "()Lkotlin/coroutines/CoroutineContext;", "", "receiverRegistered", "Z", "Lkotlinx/coroutines/flow/MutableStateFlow;", "_locationStatus", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Lkotlinx/coroutines/flow/SharedFlow;", "getLocationStatus", "()Lkotlinx/coroutines/flow/SharedFlow;", "locationStatus", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultLocationStatusProvider implements LocationStatusProvider, CoroutineScope {
private final MutableStateFlow<Boolean> _locationStatus;
private final CoroutineContext coroutineContext;
private final Z0.c locationStatusReceiver;
private boolean receiverRegistered;
@Inject
public DefaultLocationStatusProvider(Z0.c locationStatusReceiver, Z0.a isLocationEnabled, InterfaceC0307a appDispatcher) {
Intrinsics.checkNotNullParameter(locationStatusReceiver, "locationStatusReceiver");
Intrinsics.checkNotNullParameter(isLocationEnabled, "isLocationEnabled");
Intrinsics.checkNotNullParameter(appDispatcher, "appDispatcher");
this.locationStatusReceiver = locationStatusReceiver;
CompletableJob SupervisorJob$default = SupervisorKt.SupervisorJob$default((Job) null, 1, (Object) null);
((d1.d) appDispatcher).getClass();
this.coroutineContext = SupervisorJob$default.plus(Dispatchers.getMain());
Object systemService = isLocationEnabled.f2160a.getSystemService(FirebaseAnalytics.Param.LOCATION);
Intrinsics.checkNotNull(systemService, "null cannot be cast to non-null type android.location.LocationManager");
this._locationStatus = StateFlowKt.MutableStateFlow(Boolean.valueOf(((LocationManager) systemService).isLocationEnabled()));
}
public static final /* synthetic */ MutableStateFlow access$get_locationStatus$p(DefaultLocationStatusProvider defaultLocationStatusProvider) {
return defaultLocationStatusProvider._locationStatus;
}
private final void onAccessed() {
if (this.receiverRegistered) {
return;
}
this.receiverRegistered = true;
BuildersKt__Builders_commonKt.launch$default(this, null, CoroutineStart.UNDISPATCHED, new h(this, null), 1, null);
Z0.c cVar = this.locationStatusReceiver;
cVar.getClass();
cVar.f2164a.registerReceiver(cVar, new IntentFilter("android.location.PROVIDERS_CHANGED"));
}
@Override // kotlinx.coroutines.CoroutineScope
public CoroutineContext getCoroutineContext() {
return this.coroutineContext;
}
@Override // com.adif.elcanomovil.domain.providers.LocationStatusProvider
public SharedFlow<Boolean> getLocationStatus() {
onAccessed();
return this._locationStatus;
}
}

View File

@@ -0,0 +1,37 @@
package com.adif.elcanomovil.repositories.providers;
import d1.InterfaceC0307a;
import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
import dagger.internal.QualifierMetadata;
import dagger.internal.ScopeMetadata;
import javax.inject.Provider;
@ScopeMetadata
@DaggerGenerated
@QualifierMetadata
/* loaded from: classes.dex */
public final class DefaultLocationStatusProvider_Factory implements Factory<DefaultLocationStatusProvider> {
private final Provider<InterfaceC0307a> appDispatcherProvider;
private final Provider<Z0.a> isLocationEnabledProvider;
private final Provider<Z0.c> locationStatusReceiverProvider;
public DefaultLocationStatusProvider_Factory(Provider<Z0.c> provider, Provider<Z0.a> provider2, Provider<InterfaceC0307a> provider3) {
this.locationStatusReceiverProvider = provider;
this.isLocationEnabledProvider = provider2;
this.appDispatcherProvider = provider3;
}
public static DefaultLocationStatusProvider_Factory create(Provider<Z0.c> provider, Provider<Z0.a> provider2, Provider<InterfaceC0307a> provider3) {
return new DefaultLocationStatusProvider_Factory(provider, provider2, provider3);
}
public static DefaultLocationStatusProvider newInstance(Z0.c cVar, Z0.a aVar, InterfaceC0307a interfaceC0307a) {
return new DefaultLocationStatusProvider(cVar, aVar, interfaceC0307a);
}
@Override // javax.inject.Provider
public DefaultLocationStatusProvider get() {
return newInstance(this.locationStatusReceiverProvider.get(), this.isLocationEnabledProvider.get(), this.appDispatcherProvider.get());
}
}

View File

@@ -0,0 +1,27 @@
package com.adif.elcanomovil.repositories.providers;
import android.content.Context;
import android.graphics.drawable.Drawable;
import com.adif.elcanomovil.domain.providers.LogoProvider;
import com.google.android.gms.common.internal.ImagesContract;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.Dispatchers;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0018\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0096@¢\u0006\u0002\u0010\tR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultLogoProvider;", "Lcom/adif/elcanomovil/domain/providers/LogoProvider;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "download", "Landroid/graphics/drawable/Drawable;", ImagesContract.URL, "", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultLogoProvider implements LogoProvider {
private final Context context;
public DefaultLogoProvider(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
this.context = context;
}
@Override // com.adif.elcanomovil.domain.providers.LogoProvider
public Object download(String str, Continuation<? super Drawable> continuation) {
return BuildersKt.withContext(Dispatchers.getIO(), new i(this, str, null), continuation);
}
}

View File

@@ -0,0 +1,40 @@
package com.adif.elcanomovil.repositories.providers;
import com.adif.elcanomovil.domain.providers.PushIdTokenProvider;
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0016J\b\u0010\t\u001a\u00020\bH\u0016J\b\u0010\n\u001a\u00020\u000bH\u0016J\b\u0010\f\u001a\u00020\u0006H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\r"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultPushIdTokenProvider;", "Lcom/adif/elcanomovil/domain/providers/PushIdTokenProvider;", "preferenceStorage", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "(Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;)V", "saveToken", "", "newToken", "", "token", "tokenHasChanged", "", "tokenRead", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultPushIdTokenProvider implements PushIdTokenProvider {
private final PreferenceStorage preferenceStorage;
public DefaultPushIdTokenProvider(PreferenceStorage preferenceStorage) {
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
this.preferenceStorage = preferenceStorage;
}
@Override // com.adif.elcanomovil.domain.providers.PushIdTokenProvider
public void saveToken(String newToken) {
Intrinsics.checkNotNullParameter(newToken, "newToken");
PreferenceStorage preferenceStorage = this.preferenceStorage;
preferenceStorage.setPushTokenChanged(Intrinsics.areEqual(preferenceStorage.getPushToken(), newToken));
this.preferenceStorage.setPushToken(newToken);
}
@Override // com.adif.elcanomovil.domain.providers.PushIdTokenProvider
public String token() {
return this.preferenceStorage.getPushToken();
}
@Override // com.adif.elcanomovil.domain.providers.PushIdTokenProvider
public boolean tokenHasChanged() {
return this.preferenceStorage.isPushTokenChanged();
}
@Override // com.adif.elcanomovil.domain.providers.PushIdTokenProvider
public void tokenRead() {
this.preferenceStorage.setPushTokenChanged(false);
}
}

View File

@@ -0,0 +1,197 @@
package com.adif.elcanomovil.repositories.providers;
import com.adif.elcanomovil.domain.entities.RemoteConfiguration;
import com.adif.elcanomovil.domain.repositories.RemoteConfigVersionRepository;
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.flow.Flow;
import kotlinx.coroutines.flow.FlowKt;
import kotlinx.coroutines.flow.MutableStateFlow;
import kotlinx.coroutines.flow.StateFlowKt;
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u000e\u0010\u001b\u001a\u00020\u001cH\u0096@¢\u0006\u0002\u0010\u001dJ\u0010\u0010\u001e\u001a\u00020\u001c2\u0006\u0010\u001f\u001a\u00020\u0011H\u0016R\u0016\u0010\u0007\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\t0\bX\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\n\u001a\u00020\u000bX\u0096\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR$\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u00118V@VX\u0096\u000e¢\u0006\f\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\t0\u0018X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001a¨\u0006 "}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultRemoteConfigVersionRepository;", "Lcom/adif/elcanomovil/domain/repositories/RemoteConfigVersionRepository;", "remoteConfig", "Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;", "preferences", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;)V", "_remoteConfiguration", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Lcom/adif/elcanomovil/domain/entities/RemoteConfiguration;", "circulationsFetchInterval", "", "getCirculationsFetchInterval", "()J", "setCirculationsFetchInterval", "(J)V", "value", "", "lastNotifiedVersion", "getLastNotifiedVersion", "()Ljava/lang/String;", "setLastNotifiedVersion", "(Ljava/lang/String;)V", "remoteConfiguration", "Lkotlinx/coroutines/flow/Flow;", "getRemoteConfiguration", "()Lkotlinx/coroutines/flow/Flow;", "fetchRemoteConfiguration", "", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "storeLastNotifiedVersion", "version", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultRemoteConfigVersionRepository implements RemoteConfigVersionRepository {
private final MutableStateFlow<RemoteConfiguration> _remoteConfiguration;
private long circulationsFetchInterval;
private final PreferenceStorage preferences;
private final FirebaseRemoteConfig remoteConfig;
private final Flow<RemoteConfiguration> remoteConfiguration;
public DefaultRemoteConfigVersionRepository(FirebaseRemoteConfig remoteConfig, PreferenceStorage preferences) {
Intrinsics.checkNotNullParameter(remoteConfig, "remoteConfig");
Intrinsics.checkNotNullParameter(preferences, "preferences");
this.remoteConfig = remoteConfig;
this.preferences = preferences;
this.circulationsFetchInterval = 30L;
MutableStateFlow<RemoteConfiguration> MutableStateFlow = StateFlowKt.MutableStateFlow(null);
this._remoteConfiguration = MutableStateFlow;
this.remoteConfiguration = FlowKt.filterNotNull(MutableStateFlow);
}
/* JADX WARN: Can't wrap try/catch for region: R(7:1|(2:3|(5:5|6|7|(1:(1:(7:11|12|13|(1:15)|16|17|18)(2:21|22))(2:23|24))(3:28|29|(2:31|27))|25))|34|6|7|(0)(0)|25) */
/* JADX WARN: Code restructure failed: missing block: B:26:0x0070, code lost:
if (kotlinx.coroutines.tasks.TasksKt.await(r9, r1) != r2) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:32:0x0030, code lost:
r9 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x00c9, code lost:
m3.l.g(r9);
r8._remoteConfiguration.setValue(new com.adif.elcanomovil.domain.entities.RemoteConfiguration("2.0.0", "2.0.0", "https://play.google.com/store/apps/details?id=com.adif.elcanomovil"));
*/
/* JADX WARN: Removed duplicated region for block: B:28:0x0041 */
/* JADX WARN: Removed duplicated region for block: B:9:0x0026 */
@Override // com.adif.elcanomovil.domain.repositories.RemoteConfigVersionRepository
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.Object fetchRemoteConfiguration(kotlin.coroutines.Continuation<? super kotlin.Unit> r9) {
/*
r8 = this;
java.lang.String r0 = "asString(...)"
boolean r1 = r9 instanceof com.adif.elcanomovil.repositories.providers.j
if (r1 == 0) goto L15
r1 = r9
com.adif.elcanomovil.repositories.providers.j r1 = (com.adif.elcanomovil.repositories.providers.j) r1
int r2 = r1.f4662d
r3 = -2147483648(0xffffffff80000000, float:-0.0)
r4 = r2 & r3
if (r4 == 0) goto L15
int r2 = r2 - r3
r1.f4662d = r2
goto L1a
L15:
com.adif.elcanomovil.repositories.providers.j r1 = new com.adif.elcanomovil.repositories.providers.j
r1.<init>(r8, r9)
L1a:
java.lang.Object r9 = r1.f4660b
java.lang.Object r2 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r3 = r1.f4662d
r4 = 2
r5 = 1
if (r3 == 0) goto L41
if (r3 == r5) goto L3b
if (r3 != r4) goto L33
com.adif.elcanomovil.repositories.providers.DefaultRemoteConfigVersionRepository r8 = r1.f4659a
kotlin.ResultKt.throwOnFailure(r9) // Catch: java.lang.Exception -> L30
goto L73
L30:
r9 = move-exception
goto Lc9
L33:
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
r8.<init>(r9)
throw r8
L3b:
com.adif.elcanomovil.repositories.providers.DefaultRemoteConfigVersionRepository r8 = r1.f4659a
kotlin.ResultKt.throwOnFailure(r9) // Catch: java.lang.Exception -> L30
goto L5d
L41:
kotlin.ResultKt.throwOnFailure(r9)
com.google.firebase.remoteconfig.FirebaseRemoteConfig r9 = r8.remoteConfig // Catch: java.lang.Exception -> L30
r6 = 86400(0x15180, double:4.26873E-319)
com.google.android.gms.tasks.Task r9 = r9.fetch(r6) // Catch: java.lang.Exception -> L30
java.lang.String r3 = "fetch(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r9, r3) // Catch: java.lang.Exception -> L30
r1.f4659a = r8 // Catch: java.lang.Exception -> L30
r1.f4662d = r5 // Catch: java.lang.Exception -> L30
java.lang.Object r9 = kotlinx.coroutines.tasks.TasksKt.await(r9, r1) // Catch: java.lang.Exception -> L30
if (r9 != r2) goto L5d
goto L72
L5d:
com.google.firebase.remoteconfig.FirebaseRemoteConfig r9 = r8.remoteConfig // Catch: java.lang.Exception -> L30
com.google.android.gms.tasks.Task r9 = r9.activate() // Catch: java.lang.Exception -> L30
java.lang.String r3 = "activate(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r9, r3) // Catch: java.lang.Exception -> L30
r1.f4659a = r8 // Catch: java.lang.Exception -> L30
r1.f4662d = r4 // Catch: java.lang.Exception -> L30
java.lang.Object r9 = kotlinx.coroutines.tasks.TasksKt.await(r9, r1) // Catch: java.lang.Exception -> L30
if (r9 != r2) goto L73
L72:
return r2
L73:
com.google.firebase.remoteconfig.FirebaseRemoteConfig r9 = r8.remoteConfig // Catch: java.lang.Exception -> L30
java.lang.String r1 = "app_version_recommended_update"
com.google.firebase.remoteconfig.FirebaseRemoteConfigValue r9 = com.google.firebase.remoteconfig.ktx.RemoteConfigKt.get(r9, r1) // Catch: java.lang.Exception -> L30
java.lang.String r9 = r9.asString() // Catch: java.lang.Exception -> L30
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r9, r0) // Catch: java.lang.Exception -> L30
com.google.firebase.remoteconfig.FirebaseRemoteConfig r1 = r8.remoteConfig // Catch: java.lang.Exception -> L30
java.lang.String r2 = "app_version_force_update"
com.google.firebase.remoteconfig.FirebaseRemoteConfigValue r1 = com.google.firebase.remoteconfig.ktx.RemoteConfigKt.get(r1, r2) // Catch: java.lang.Exception -> L30
java.lang.String r1 = r1.asString() // Catch: java.lang.Exception -> L30
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r0) // Catch: java.lang.Exception -> L30
com.google.firebase.remoteconfig.FirebaseRemoteConfig r2 = r8.remoteConfig // Catch: java.lang.Exception -> L30
java.lang.String r3 = "app_version_update_url"
com.google.firebase.remoteconfig.FirebaseRemoteConfigValue r2 = com.google.firebase.remoteconfig.ktx.RemoteConfigKt.get(r2, r3) // Catch: java.lang.Exception -> L30
java.lang.String r2 = r2.asString() // Catch: java.lang.Exception -> L30
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r0) // Catch: java.lang.Exception -> L30
com.google.firebase.remoteconfig.FirebaseRemoteConfig r0 = r8.remoteConfig // Catch: java.lang.Exception -> L30
java.lang.String r3 = "traffic_results_refresh_time"
com.google.firebase.remoteconfig.FirebaseRemoteConfigValue r0 = com.google.firebase.remoteconfig.ktx.RemoteConfigKt.get(r0, r3) // Catch: java.lang.Exception -> L30
long r3 = r0.asLong() // Catch: java.lang.Exception -> L30
r8.setCirculationsFetchInterval(r3) // Catch: java.lang.Exception -> L30
long r3 = r8.getCirculationsFetchInterval() // Catch: java.lang.Exception -> L30
r5 = 0
int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))
if (r0 > 0) goto Lbe
r3 = 30
r8.setCirculationsFetchInterval(r3) // Catch: java.lang.Exception -> L30
Lbe:
kotlinx.coroutines.flow.MutableStateFlow<com.adif.elcanomovil.domain.entities.RemoteConfiguration> r0 = r8._remoteConfiguration // Catch: java.lang.Exception -> L30
com.adif.elcanomovil.domain.entities.RemoteConfiguration r3 = new com.adif.elcanomovil.domain.entities.RemoteConfiguration // Catch: java.lang.Exception -> L30
r3.<init>(r9, r1, r2) // Catch: java.lang.Exception -> L30
r0.setValue(r3) // Catch: java.lang.Exception -> L30
goto Lda
Lc9:
m3.l.g(r9)
kotlinx.coroutines.flow.MutableStateFlow<com.adif.elcanomovil.domain.entities.RemoteConfiguration> r8 = r8._remoteConfiguration
com.adif.elcanomovil.domain.entities.RemoteConfiguration r9 = new com.adif.elcanomovil.domain.entities.RemoteConfiguration
java.lang.String r0 = "https://play.google.com/store/apps/details?id=com.adif.elcanomovil"
java.lang.String r1 = "2.0.0"
r9.<init>(r1, r1, r0)
r8.setValue(r9)
Lda:
kotlin.Unit r8 = kotlin.Unit.INSTANCE
return r8
*/
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.providers.DefaultRemoteConfigVersionRepository.fetchRemoteConfiguration(kotlin.coroutines.Continuation):java.lang.Object");
}
@Override // com.adif.elcanomovil.domain.repositories.RemoteConfigVersionRepository
public long getCirculationsFetchInterval() {
return this.circulationsFetchInterval;
}
@Override // com.adif.elcanomovil.domain.repositories.RemoteConfigVersionRepository
public String getLastNotifiedVersion() {
return this.preferences.getLastCheckedVersion();
}
@Override // com.adif.elcanomovil.domain.repositories.RemoteConfigVersionRepository
public Flow<RemoteConfiguration> getRemoteConfiguration() {
return this.remoteConfiguration;
}
public void setCirculationsFetchInterval(long j4) {
this.circulationsFetchInterval = j4;
}
public void setLastNotifiedVersion(String value) {
Intrinsics.checkNotNullParameter(value, "value");
this.preferences.setLastCheckedVersion(value);
}
@Override // com.adif.elcanomovil.domain.repositories.RemoteConfigVersionRepository
public void storeLastNotifiedVersion(String version) {
Intrinsics.checkNotNullParameter(version, "version");
setLastNotifiedVersion(version);
}
}

View File

@@ -0,0 +1,14 @@
package com.adif.elcanomovil.repositories.providers;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0003\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0003\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0004\u001a\u00020\u0005X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0006\u001a\u00020\u0005X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0007\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000¨\u0006\b"}, d2 = {"APP_VERSION_FORCE_KEY", "", "APP_VERSION_RECOMMENDED_KEY", "APP_VERSION_UPDATE_URL_KEY", "FETCH_INTERVAL_IN_SECONDS", "", "TRAFFIC_REFRESH_TIME_DEFAULT", "TRAFFIC_REFRESH_TIME_KEY", "repositories_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultRemoteConfigVersionRepositoryKt {
private static final String APP_VERSION_FORCE_KEY = "app_version_force_update";
private static final String APP_VERSION_RECOMMENDED_KEY = "app_version_recommended_update";
private static final String APP_VERSION_UPDATE_URL_KEY = "app_version_update_url";
private static final long FETCH_INTERVAL_IN_SECONDS = 86400;
private static final long TRAFFIC_REFRESH_TIME_DEFAULT = 30;
private static final String TRAFFIC_REFRESH_TIME_KEY = "traffic_results_refresh_time";
}

View File

@@ -0,0 +1,15 @@
package com.adif.elcanomovil.repositories.providers;
import com.adif.elcanomovil.domain.providers.TokenJwtProvider;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/repositories/providers/DefaultTokenJwtProvider;", "Lcom/adif/elcanomovil/domain/providers/TokenJwtProvider;", "()V", "tokenJwt", "", "getTokenJwt", "()Ljava/lang/String;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultTokenJwtProvider implements TokenJwtProvider {
private final String tokenJwt = "Bearer b9034774-c6e4-4663-a1a8-74bf7102651b";
@Override // com.adif.elcanomovil.domain.providers.TokenJwtProvider
public String getTokenJwt() {
return this.tokenJwt;
}
}

View File

@@ -0,0 +1,31 @@
package com.adif.elcanomovil.repositories.providers;
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 /* synthetic */ Object f4634a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ DefaultDynamicLinkFacade f4635b;
/* renamed from: c, reason: collision with root package name */
public int f4636c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public a(DefaultDynamicLinkFacade defaultDynamicLinkFacade, Continuation continuation) {
super(continuation);
this.f4635b = defaultDynamicLinkFacade;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.f4634a = obj;
this.f4636c |= IntCompanionObject.MIN_VALUE;
return this.f4635b.create(null, null, null, null, null, null, null, this);
}
}

View File

@@ -0,0 +1,21 @@
package com.adif.elcanomovil.repositories.providers;
import com.google.firebase.dynamiclinks.DynamicLink;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
/* loaded from: classes.dex */
public final class b extends Lambda implements Function1 {
/* renamed from: a, reason: collision with root package name */
public static final b f4637a = new Lambda(1);
@Override // kotlin.jvm.functions.Function1
public final Object invoke(Object obj) {
DynamicLink.AndroidParameters.Builder androidParameters = (DynamicLink.AndroidParameters.Builder) obj;
Intrinsics.checkNotNullParameter(androidParameters, "$this$androidParameters");
return Unit.INSTANCE;
}
}

View File

@@ -0,0 +1,28 @@
package com.adif.elcanomovil.repositories.providers;
import com.google.firebase.dynamiclinks.DynamicLink;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
/* loaded from: classes.dex */
public final class c extends Lambda implements Function1 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ String f4638a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public c(String str) {
super(1);
this.f4638a = str;
}
@Override // kotlin.jvm.functions.Function1
public final Object invoke(Object obj) {
DynamicLink.IosParameters.Builder iosParameters = (DynamicLink.IosParameters.Builder) obj;
Intrinsics.checkNotNullParameter(iosParameters, "$this$iosParameters");
iosParameters.setAppStoreId(this.f4638a);
return Unit.INSTANCE;
}
}

View File

@@ -0,0 +1,33 @@
package com.adif.elcanomovil.repositories.providers;
import android.net.Uri;
import com.adif.elcanomovil.domain.entities.deeplink.SocialMetaTag;
import com.google.firebase.dynamiclinks.DynamicLink;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
/* loaded from: classes.dex */
public final class d extends Lambda implements Function1 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ SocialMetaTag f4639a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public d(SocialMetaTag socialMetaTag) {
super(1);
this.f4639a = socialMetaTag;
}
@Override // kotlin.jvm.functions.Function1
public final Object invoke(Object obj) {
DynamicLink.SocialMetaTagParameters.Builder socialMetaTagParameters = (DynamicLink.SocialMetaTagParameters.Builder) obj;
Intrinsics.checkNotNullParameter(socialMetaTagParameters, "$this$socialMetaTagParameters");
SocialMetaTag socialMetaTag = this.f4639a;
socialMetaTagParameters.setTitle(socialMetaTag.getTitle());
socialMetaTagParameters.setDescription(socialMetaTag.getMessage());
socialMetaTagParameters.setImageUrl(Uri.parse(socialMetaTag.getImageUrl()));
return Unit.INSTANCE;
}
}

View File

@@ -0,0 +1,73 @@
package com.adif.elcanomovil.repositories.providers;
import android.net.Uri;
import com.adif.elcanomovil.domain.entities.deeplink.SocialMetaTag;
import com.google.firebase.dynamiclinks.DynamicLink;
import com.google.firebase.dynamiclinks.ktx.FirebaseDynamicLinksKt;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
/* loaded from: classes.dex */
public final class e extends Lambda implements Function1 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ String f4640a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ String f4641b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ String f4642c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ String f4643d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ String f4644e;
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ String f4645f;
/* renamed from: g, reason: collision with root package name */
public final /* synthetic */ SocialMetaTag f4646g;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public e(String str, String str2, String str3, String str4, String str5, String str6, SocialMetaTag socialMetaTag) {
super(1);
this.f4640a = str;
this.f4641b = str2;
this.f4642c = str3;
this.f4643d = str4;
this.f4644e = str5;
this.f4645f = str6;
this.f4646g = socialMetaTag;
}
@Override // kotlin.jvm.functions.Function1
public final Object invoke(Object obj) {
DynamicLink.Builder shortLinkAsync = (DynamicLink.Builder) obj;
Intrinsics.checkNotNullParameter(shortLinkAsync, "$this$shortLinkAsync");
StringBuilder sb = new StringBuilder();
sb.append(this.f4640a);
sb.append("/?link=");
sb.append(this.f4641b);
sb.append("&ofl=");
sb.append(this.f4642c);
sb.append("&apn=");
String str = this.f4643d;
sb.append(str);
sb.append("&ibi=");
String str2 = this.f4644e;
sb.append(str2);
sb.append("&isi=");
String str3 = this.f4645f;
sb.append(str3);
shortLinkAsync.setLongLink(Uri.parse(sb.toString()));
FirebaseDynamicLinksKt.androidParameters(shortLinkAsync, str, b.f4637a);
FirebaseDynamicLinksKt.iosParameters(shortLinkAsync, str2, new c(str3));
FirebaseDynamicLinksKt.socialMetaTagParameters(shortLinkAsync, new d(this.f4646g));
return Unit.INSTANCE;
}
}

View File

@@ -0,0 +1,31 @@
package com.adif.elcanomovil.repositories.providers;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class f extends ContinuationImpl {
/* renamed from: a, reason: collision with root package name */
public /* synthetic */ Object f4647a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ DefaultDynamicLinkFacade f4648b;
/* renamed from: c, reason: collision with root package name */
public int f4649c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public f(DefaultDynamicLinkFacade defaultDynamicLinkFacade, Continuation continuation) {
super(continuation);
this.f4648b = defaultDynamicLinkFacade;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.f4647a = obj;
this.f4649c |= IntCompanionObject.MIN_VALUE;
return this.f4648b.dynamicLink(null, this);
}
}

View File

@@ -0,0 +1,34 @@
package com.adif.elcanomovil.repositories.providers;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class g extends ContinuationImpl {
/* renamed from: a, reason: collision with root package name */
public DefaultLocationProvider f4650a;
/* renamed from: b, reason: collision with root package name */
public /* synthetic */ Object f4651b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ DefaultLocationProvider f4652c;
/* renamed from: d, reason: collision with root package name */
public int f4653d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public g(DefaultLocationProvider defaultLocationProvider, Continuation continuation) {
super(continuation);
this.f4652c = defaultLocationProvider;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.f4651b = obj;
this.f4653d |= IntCompanionObject.MIN_VALUE;
return this.f4652c.fetchLastLocation(this);
}
}

View File

@@ -0,0 +1,61 @@
package com.adif.elcanomovil.repositories.providers;
import kotlin.KotlinNothingValueException;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.flow.MutableSharedFlow;
/* loaded from: classes.dex */
public final class h extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public int f4654a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ DefaultLocationStatusProvider f4655b;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public h(DefaultLocationStatusProvider defaultLocationStatusProvider, Continuation continuation) {
super(2, continuation);
this.f4655b = defaultLocationStatusProvider;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new h(this.f4655b, continuation);
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((h) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
Z0.c cVar;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.f4654a;
if (i == 0) {
ResultKt.throwOnFailure(obj);
DefaultLocationStatusProvider defaultLocationStatusProvider = this.f4655b;
cVar = defaultLocationStatusProvider.locationStatusReceiver;
MutableSharedFlow mutableSharedFlow = cVar.f2166c;
C1.b bVar = new C1.b(defaultLocationStatusProvider, 6);
this.f4654a = 1;
if (mutableSharedFlow.collect(bVar, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
throw new KotlinNothingValueException();
}
}

View File

@@ -0,0 +1,113 @@
package com.adif.elcanomovil.repositories.providers;
import I0.l;
import I0.p;
import S0.k;
import android.content.Context;
import f0.C0338b;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.Boxing;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.CoroutineScopeKt;
import r3.C0579k;
/* loaded from: classes.dex */
public final class i extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public int f4656a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ DefaultLogoProvider f4657b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ String f4658c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public i(DefaultLogoProvider defaultLogoProvider, String str, Continuation continuation) {
super(2, continuation);
this.f4657b = defaultLogoProvider;
this.f4658c = str;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new i(this.f4657b, this.f4658c, 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) {
Context context;
Context context2;
Context context3;
Context context4;
boolean z3;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.f4656a;
if (i == 0) {
ResultKt.throwOnFailure(obj);
context = this.f4657b.context;
K0.j jVar = (K0.j) ((p) I0.a.a(context)).f785c.getValue();
if (jVar != null) {
String str = this.f4658c;
K0.g gVar = jVar.f1014b;
C0579k c0579k = C0579k.f8285d;
String e4 = C0338b.n(str).c("SHA-256").e();
synchronized (gVar) {
gVar.e();
K0.g.f0(e4);
gVar.O();
K0.c cVar = (K0.c) gVar.f1002f.get(e4);
if (cVar == null) {
z3 = false;
} else {
gVar.d0(cVar);
if (gVar.h <= gVar.f998b) {
gVar.f1008n = false;
}
z3 = true;
}
}
Boxing.boxBoolean(z3);
}
context2 = this.f4657b.context;
Q0.d dVar = (Q0.d) ((p) I0.a.a(context2)).f784b.getValue();
if (dVar != null) {
Q0.b bVar = new Q0.b(this.f4658c);
Boxing.boxBoolean(dVar.f1358a.a(bVar) || dVar.f1359b.a(bVar));
}
context3 = this.f4657b.context;
S0.i iVar = new S0.i(context3);
String str2 = this.f4658c;
iVar.f1464c = str2;
iVar.f1467f = str2;
iVar.b(str2);
S0.j a2 = iVar.a();
context4 = this.f4657b.context;
I0.h a4 = I0.a.a(context4);
this.f4656a = 1;
p pVar = (p) a4;
pVar.getClass();
obj = CoroutineScopeKt.coroutineScope(new l(pVar, a2, null), this);
if (obj == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return ((k) obj).a();
}
}

View File

@@ -0,0 +1,34 @@
package com.adif.elcanomovil.repositories.providers;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class j extends ContinuationImpl {
/* renamed from: a, reason: collision with root package name */
public DefaultRemoteConfigVersionRepository f4659a;
/* renamed from: b, reason: collision with root package name */
public /* synthetic */ Object f4660b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ DefaultRemoteConfigVersionRepository f4661c;
/* renamed from: d, reason: collision with root package name */
public int f4662d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public j(DefaultRemoteConfigVersionRepository defaultRemoteConfigVersionRepository, Continuation continuation) {
super(continuation);
this.f4661c = defaultRemoteConfigVersionRepository;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.f4660b = obj;
this.f4662d |= IntCompanionObject.MIN_VALUE;
return this.f4661c.fetchRemoteConfiguration(this);
}
}