Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,217 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.y0;
|
||||
import b1.InterfaceC0266a;
|
||||
import b1.f;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.commonViews.data.InfoHeaderData;
|
||||
import com.adif.elcanomovil.uiMoreAdif.R;
|
||||
import com.adif.elcanomovil.uiMoreAdif.databinding.FragmentAboutBinding;
|
||||
import dagger.hilt.android.AndroidEntryPoint;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import l0.C0435a;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0013\u0010\u0006\u001a\u00020\u0005*\u00020\u0004H\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0013\u0010\b\u001a\u00020\u0005*\u00020\u0004H\u0002¢\u0006\u0004\b\b\u0010\u0007J!\u0010\r\u001a\u00020\u00052\u0006\u0010\n\u001a\u00020\t2\b\u0010\f\u001a\u0004\u0018\u00010\u000bH\u0016¢\u0006\u0004\b\r\u0010\u000eR\u0016\u0010\u000f\u001a\u00020\u00048\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010R\u001b\u0010\u0016\u001a\u00020\u00118BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u0017"}, d2 = {"Lcom/adif/elcanomovil/uiMoreAdif/about/AboutFragment;", "Landroidx/fragment/app/K;", "<init>", "()V", "Lcom/adif/elcanomovil/uiMoreAdif/databinding/FragmentAboutBinding;", "", "configureHeaderView", "(Lcom/adif/elcanomovil/uiMoreAdif/databinding/FragmentAboutBinding;)V", "configureListeners", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "binding", "Lcom/adif/elcanomovil/uiMoreAdif/databinding/FragmentAboutBinding;", "Lcom/adif/elcanomovil/uiMoreAdif/about/AboutViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiMoreAdif/about/AboutViewModel;", "viewModel", "ui-more-adif_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nAboutFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AboutFragment.kt\ncom/adif/elcanomovil/uiMoreAdif/about/AboutFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n*L\n1#1,45:1\n106#2,15:46\n*S KotlinDebug\n*F\n+ 1 AboutFragment.kt\ncom/adif/elcanomovil/uiMoreAdif/about/AboutFragment\n*L\n16#1:46,15\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class AboutFragment extends Hilt_AboutFragment {
|
||||
private FragmentAboutBinding binding;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
public AboutFragment() {
|
||||
super(R.layout.fragment_about);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiMoreAdif.about.AboutFragment$special$$inlined$viewModels$default$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final K invoke() {
|
||||
return K.this;
|
||||
}
|
||||
};
|
||||
final Lazy lazy = LazyKt.lazy(LazyThreadSafetyMode.NONE, (Function0) new Function0<D0>() { // from class: com.adif.elcanomovil.uiMoreAdif.about.AboutFragment$special$$inlined$viewModels$default$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final D0 invoke() {
|
||||
return (D0) Function0.this.invoke();
|
||||
}
|
||||
});
|
||||
final Function0 function02 = null;
|
||||
this.viewModel = m3.d.n(this, Reflection.getOrCreateKotlinClass(AboutViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiMoreAdif.about.AboutFragment$special$$inlined$viewModels$default$3
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final C0 invoke() {
|
||||
return ((D0) Lazy.this.getValue()).getViewModelStore();
|
||||
}
|
||||
}, new Function0<l0.c>() { // from class: com.adif.elcanomovil.uiMoreAdif.about.AboutFragment$special$$inlined$viewModels$default$4
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final l0.c invoke() {
|
||||
l0.c cVar;
|
||||
Function0 function03 = Function0.this;
|
||||
if (function03 != null && (cVar = (l0.c) function03.invoke()) != null) {
|
||||
return cVar;
|
||||
}
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
return interfaceC0200v != null ? interfaceC0200v.getDefaultViewModelCreationExtras() : C0435a.f7312b;
|
||||
}
|
||||
}, new Function0<y0>() { // from class: com.adif.elcanomovil.uiMoreAdif.about.AboutFragment$special$$inlined$viewModels$default$5
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final y0 invoke() {
|
||||
y0 defaultViewModelProviderFactory;
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
if (interfaceC0200v != null && (defaultViewModelProviderFactory = interfaceC0200v.getDefaultViewModelProviderFactory()) != null) {
|
||||
return defaultViewModelProviderFactory;
|
||||
}
|
||||
y0 defaultViewModelProviderFactory2 = K.this.getDefaultViewModelProviderFactory();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory2, "defaultViewModelProviderFactory");
|
||||
return defaultViewModelProviderFactory2;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final void configureHeaderView(FragmentAboutBinding fragmentAboutBinding) {
|
||||
fragmentAboutBinding.headerViewAbout.updateHeaderInfo(new InfoHeaderData(getString(R.string.about_title), Integer.valueOf(R.drawable.ic_arrow_back), null, 4, null));
|
||||
fragmentAboutBinding.headerViewAbout.setOnBackActionListener(new b(this, 0));
|
||||
fragmentAboutBinding.headerViewAbout.setOnCloseActionListener(new b(this, 1));
|
||||
}
|
||||
|
||||
private final void configureListeners(FragmentAboutBinding fragmentAboutBinding) {
|
||||
final int i = 0;
|
||||
fragmentAboutBinding.conditionsButton.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiMoreAdif.about.a
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AboutFragment f5156b;
|
||||
|
||||
{
|
||||
this.f5156b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i4 = i;
|
||||
AboutFragment aboutFragment = this.f5156b;
|
||||
switch (i4) {
|
||||
case 0:
|
||||
AboutFragment.configureListeners$lambda$0(aboutFragment, view);
|
||||
return;
|
||||
default:
|
||||
AboutFragment.configureListeners$lambda$1(aboutFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
final int i4 = 1;
|
||||
fragmentAboutBinding.termsButton.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiMoreAdif.about.a
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AboutFragment f5156b;
|
||||
|
||||
{
|
||||
this.f5156b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i4;
|
||||
AboutFragment aboutFragment = this.f5156b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
AboutFragment.configureListeners$lambda$0(aboutFragment, view);
|
||||
return;
|
||||
default:
|
||||
AboutFragment.configureListeners$lambda$1(aboutFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final void configureListeners$lambda$0(AboutFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.getViewModel().legalConditionsButtonTapped(this$0.getContext());
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final void configureListeners$lambda$1(AboutFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.getViewModel().termsButtonTapped(this$0.getContext());
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final AboutViewModel getViewModel() {
|
||||
return (AboutViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentAboutBinding bind = FragmentAboutBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
FragmentAboutBinding fragmentAboutBinding = null;
|
||||
if (bind == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
bind = null;
|
||||
}
|
||||
configureHeaderView(bind);
|
||||
FragmentAboutBinding fragmentAboutBinding2 = this.binding;
|
||||
if (fragmentAboutBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAboutBinding2 = null;
|
||||
}
|
||||
configureListeners(fragmentAboutBinding2);
|
||||
FragmentAboutBinding fragmentAboutBinding3 = this.binding;
|
||||
if (fragmentAboutBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAboutBinding = fragmentAboutBinding3;
|
||||
}
|
||||
fragmentAboutBinding.versionTextview.setText(getString(R.string.about_version, getViewModel().getAppVersion()));
|
||||
InterfaceC0266a navigation = getViewModel().getNavigation();
|
||||
J viewLifecycleOwner = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
((f) navigation).a(viewLifecycleOwner, new NavigationHandler(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = AboutFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public interface AboutFragment_GeneratedInjector {
|
||||
void injectAboutFragment(AboutFragment aboutFragment);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import D.h;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import androidx.lifecycle.w0;
|
||||
import b1.InterfaceC0266a;
|
||||
import b1.f;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertType;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.domain.usecases.GetAppVersionUseCase;
|
||||
import com.adif.elcanomovil.main.BottomNavFragmentDirections;
|
||||
import com.adif.elcanomovil.uiMoreAdif.R;
|
||||
import com.adif.elcanomovil.uiMoreAdif.wizard.WizardActivity;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigConstants;
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel;
|
||||
import javax.inject.Inject;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@HiltViewModel
|
||||
@Metadata(d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001B\u0011\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J-\u0010\f\u001a\u00020\u000b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\b\b\u0001\u0010\t\u001a\u00020\b2\b\b\u0001\u0010\n\u001a\u00020\bH\u0002¢\u0006\u0004\b\f\u0010\rJ\u0017\u0010\u000f\u001a\u00020\u000e2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006¢\u0006\u0004\b\u000f\u0010\u0010J\u0017\u0010\u0011\u001a\u00020\u000b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006¢\u0006\u0004\b\u0011\u0010\u0012J\u0017\u0010\u0013\u001a\u00020\u000b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006¢\u0006\u0004\b\u0013\u0010\u0012R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0014R\u001a\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00160\u00158\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0017\u0010\u0018R\u001d\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\u00160\u00198\u0006¢\u0006\f\n\u0004\b\u001a\u0010\u001b\u001a\u0004\b\u001c\u0010\u001dR\u0011\u0010!\u001a\u00020\u001e8F¢\u0006\u0006\u001a\u0004\b\u001f\u0010 ¨\u0006$²\u0006\f\u0010#\u001a\u00020\"8\nX\u008a\u0084\u0002"}, d2 = {"Lcom/adif/elcanomovil/uiMoreAdif/about/AboutViewModel;", "Landroidx/lifecycle/w0;", "Lcom/adif/elcanomovil/domain/usecases/GetAppVersionUseCase;", "getAppVersionUseCase", "<init>", "(Lcom/adif/elcanomovil/domain/usecases/GetAppVersionUseCase;)V", "Landroid/content/Context;", "context", "", "title", "message", "", "showAlertMessage", "(Landroid/content/Context;II)V", "", "wizardTapped", "(Landroid/content/Context;)Z", "termsButtonTapped", "(Landroid/content/Context;)V", "legalConditionsButtonTapped", "Lcom/adif/elcanomovil/domain/usecases/GetAppVersionUseCase;", "Lb1/f;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "navigationFlow", "Lb1/f;", "Lb1/a;", "navigation", "Lb1/a;", "getNavigation", "()Lb1/a;", "", "getAppVersion", "()Ljava/lang/String;", RemoteConfigConstants.RequestFieldKey.APP_VERSION, "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;", "observationActions", "ui-more-adif_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class AboutViewModel extends w0 {
|
||||
private final GetAppVersionUseCase getAppVersionUseCase;
|
||||
private final InterfaceC0266a navigation;
|
||||
private final f navigationFlow;
|
||||
|
||||
@Inject
|
||||
public AboutViewModel(GetAppVersionUseCase getAppVersionUseCase) {
|
||||
Intrinsics.checkNotNullParameter(getAppVersionUseCase, "getAppVersionUseCase");
|
||||
this.getAppVersionUseCase = getAppVersionUseCase;
|
||||
f fVar = new f();
|
||||
this.navigationFlow = fVar;
|
||||
this.navigation = fVar;
|
||||
}
|
||||
|
||||
private final void showAlertMessage(Context context, int title, int message) {
|
||||
if (context != null) {
|
||||
Lazy lazy = LazyKt.lazy(new c(context));
|
||||
BottomNavFragmentDirections.Companion companion = BottomNavFragmentDirections.INSTANCE;
|
||||
String string = context.getString(title);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
String string2 = context.getString(message);
|
||||
Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
|
||||
this.navigationFlow.b(new Navigation.RootDirection(companion.toAlertDialog(false, true, string, string2, showAlertMessage$lambda$2$lambda$1(lazy), AlertType.INFO), null, 2, null));
|
||||
}
|
||||
}
|
||||
|
||||
private static final AlertActions showAlertMessage$lambda$2$lambda$1(Lazy<AlertActions> lazy) {
|
||||
return lazy.getValue();
|
||||
}
|
||||
|
||||
public final String getAppVersion() {
|
||||
return this.getAppVersionUseCase.invoke();
|
||||
}
|
||||
|
||||
public final InterfaceC0266a getNavigation() {
|
||||
return this.navigation;
|
||||
}
|
||||
|
||||
public final void legalConditionsButtonTapped(Context context) {
|
||||
showAlertMessage(context, R.string.about_conditions, R.string.about_conditions_content);
|
||||
}
|
||||
|
||||
public final void termsButtonTapped(Context context) {
|
||||
showAlertMessage(context, R.string.about_terms, R.string.about_terms_content);
|
||||
}
|
||||
|
||||
public final boolean wizardTapped(Context context) {
|
||||
if (context == null) {
|
||||
return false;
|
||||
}
|
||||
h.startActivity(context, new Intent(context, (Class<?>) WizardActivity.class), null);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0080T¢\u0006\u0002\n\u0000¨\u0006\u0002"}, d2 = {"ALERT_KEY_OBSERVATION", "", "ui-more-adif_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class AboutViewModelKt {
|
||||
public static final String ALERT_KEY_OBSERVATION = "observation";
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import com.adif.elcanomovil.domain.usecases.GetAppVersionUseCase;
|
||||
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: classes2.dex */
|
||||
public final class AboutViewModel_Factory implements Factory<AboutViewModel> {
|
||||
private final Provider<GetAppVersionUseCase> getAppVersionUseCaseProvider;
|
||||
|
||||
public AboutViewModel_Factory(Provider<GetAppVersionUseCase> provider) {
|
||||
this.getAppVersionUseCaseProvider = provider;
|
||||
}
|
||||
|
||||
public static AboutViewModel_Factory create(Provider<GetAppVersionUseCase> provider) {
|
||||
return new AboutViewModel_Factory(provider);
|
||||
}
|
||||
|
||||
public static AboutViewModel newInstance(GetAppVersionUseCase getAppVersionUseCase) {
|
||||
return new AboutViewModel(getAppVersionUseCase);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public AboutViewModel get() {
|
||||
return newInstance(this.getAppVersionUseCaseProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = AboutViewModel.class)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class AboutViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiMoreAdif.about.AboutViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(AboutViewModel aboutViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiMoreAdif.about.AboutViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private AboutViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import com.adif.elcanomovil.uiMoreAdif.about.AboutViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class AboutViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static AboutViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return d.f5160a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(AboutViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.y0;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories;
|
||||
import dagger.hilt.android.internal.managers.FragmentComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class Hilt_AboutFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_AboutFragment() {
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
private void initializeComponentContext() {
|
||||
if (this.componentContext == null) {
|
||||
this.componentContext = FragmentComponentManager.createContextWrapper(super.getContext(), this);
|
||||
this.disableGetContextFix = FragmentGetContextFix.isFragmentGetContextFixDisabled(super.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
public FragmentComponentManager createComponentManager() {
|
||||
return new FragmentComponentManager(this);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Context getContext() {
|
||||
if (super.getContext() == null && !this.disableGetContextFix) {
|
||||
return null;
|
||||
}
|
||||
initializeComponentContext();
|
||||
return this.componentContext;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K, androidx.lifecycle.InterfaceC0200v
|
||||
public y0 getDefaultViewModelProviderFactory() {
|
||||
return DefaultViewModelFactories.getFragmentFactory(this, super.getDefaultViewModelProviderFactory());
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((AboutFragment_GeneratedInjector) generatedComponent()).injectAboutFragment((AboutFragment) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public LayoutInflater onGetLayoutInflater(Bundle bundle) {
|
||||
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
|
||||
return onGetLayoutInflater.cloneInContext(FragmentComponentManager.createContextWrapper(onGetLayoutInflater, this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final FragmentComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
synchronized (this.componentManagerLock) {
|
||||
try {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_AboutFragment(int i) {
|
||||
super(i);
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
ContextWrapper contextWrapper = this.componentContext;
|
||||
Preconditions.checkState(contextWrapper == null || FragmentComponentManager.findActivity(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.ButtonsEvents;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class b extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5157a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AboutFragment f5158b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public /* synthetic */ b(AboutFragment aboutFragment, int i) {
|
||||
super(1);
|
||||
this.f5157a = i;
|
||||
this.f5158b = aboutFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
AboutViewModel viewModel;
|
||||
switch (this.f5157a) {
|
||||
case 0:
|
||||
ButtonsEvents it = (ButtonsEvents) obj;
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
this.f5158b.requireActivity().onBackPressed();
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
ButtonsEvents it2 = (ButtonsEvents) obj;
|
||||
Intrinsics.checkNotNullParameter(it2, "it");
|
||||
AboutFragment aboutFragment = this.f5158b;
|
||||
viewModel = aboutFragment.getViewModel();
|
||||
viewModel.wizardTapped(aboutFragment.getContext());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.uiMoreAdif.R;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class c extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ Context f5159a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(Context context) {
|
||||
super(0);
|
||||
this.f5159a = context;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
String string = this.f5159a.getString(R.string.dialog_action_close);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
return new AlertActions("observation", new AlertAction(string, AlertAction.Style.POSITIVE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiMoreAdif.about;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class d {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final AboutViewModel_HiltModules_KeyModule_ProvideFactory f5160a = new AboutViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
Reference in New Issue
Block a user