导航菜单

页面标题

页面副标题

MedEd v5.3.6 - NeetPGAuthActivity.java 源代码

正在查看: MedEd v5.3.6 应用的 NeetPGAuthActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.penpencil.physicswallah.feature.auth.presentation.activity;

import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import androidx.activity.result.IntentSenderRequest;
import androidx.lifecycle.H;
import com.google.android.gms.auth.api.identity.GetPhoneNumberHintIntentRequest;
import com.google.android.gms.common.Feature;
import com.onboarding.activities.NeetPGOnboarding;
import com.penpencil.k8_timeless.ui.landingcomponents.result.kIQN.hcnACoYyf;
import com.penpencil.network.models.ReportQuestionResponse;
import com.penpencil.physicswallah.broadcast.SmsBroadcastReceiver;
import com.penpencil.physicswallah.feature.auth.presentation.composables.CountryCodeItem;
import com.penpencil.physicswallah.feature.auth.presentation.viewmodel.g;
import com.penpencil.physicswallah.feature.home.presentation.ui.AppNavigationContainerActivity;
import com.truecaller.android.sdk.oAuth.TcSdk;
import defpackage.B6;
import defpackage.C0676tk0;
import defpackage.C0755wv2;
import defpackage.C6;
import defpackage.CY;
import defpackage.GY3;
import defpackage.KO;
import defpackage.Tm0;
import defpackage.UE3;
import defpackage.WE3;
import defpackage.WL;
import defpackage.Y13;
import defpackage.jM1;
import defpackage.jV1;
import defpackage.pK0;
import defpackage.s40;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;

@Metadata
public final class NeetPGAuthActivity extends CQ0 {
    public static final int L0 = 0;
    public Uri B0;
    public String C0;
    public boolean D0;
    public boolean E0;
    public jM1 F0;
    public SmsBroadcastReceiver G0;
    public jV1 I0;
    public Tm0 J0;
    public final H H0 = new H(C0755wv2.a(g.class), new d(this), new c(this), new e(this));
    public final C6<IntentSenderRequest> K0 = registerForActivityResult(new B6(), new fM1(this));

    public static final class a implements Function2<KO, Integer, Unit> {
        public a() {
        }

        @Override
        public final Unit u(KO ko, Integer num) {
            KO ko2 = ko;
            if ((num.intValue() & 11) == 2 && ko2.r()) {
                ko2.w();
            } else {
                CY.a(false, null, qM.a(ko2, 1656880880, new b(NeetPGAuthActivity.this)), ko2, 390, 2);
            }
            return Unit.a;
        }
    }

    public final List<CountryCodeItem> Q0() {
        StringBuilder sb = new StringBuilder();
        InputStream inputStream = null;
        try {
            try {
                try {
                    inputStream = getResources().openRawResource(2131951640);
                    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
                    while (true) {
                        String readLine = bufferedReader.readLine();
                        if (readLine == null) {
                            break;
                        }
                        sb.append(readLine);
                    }
                } catch (IOException e) {
                    e.printStackTrace();
                    if (inputStream != null) {
                        inputStream.close();
                    }
                }
                if (inputStream != null) {
                    inputStream.close();
                }
            } catch (Throwable th) {
                if (inputStream != null) {
                    try {
                        inputStream.close();
                    } catch (IOException e2) {
                        e2.printStackTrace();
                    }
                }
                throw th;
            }
        } catch (IOException e3) {
            e3.printStackTrace();
        }
        String sb2 = sb.toString();
        Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
        List<CountryCodeItem> a2 = pK0.a(CountryCodeItem.class, sb2);
        return a2 == null ? C0676tk0.a : a2;
    }

    public final String R0() {
        Object systemService = getApplication().getSystemService("phone");
        Intrinsics.e(systemService, "null cannot be cast to non-null type android.telephony.TelephonyManager");
        String simCountryIso = ((TelephonyManager) systemService).getSimCountryIso();
        Intrinsics.d(simCountryIso);
        return simCountryIso;
    }

    public final Tm0 S0() {
        Tm0 tm0 = this.J0;
        if (tm0 != null) {
            return tm0;
        }
        Intrinsics.n("eventLogger");
        throw null;
    }

    public final jV1 T0() {
        jV1 jv1 = this.I0;
        if (jv1 != null) {
            return jv1;
        }
        Intrinsics.n("networkManager");
        throw null;
    }

    public final void U0() {
        Intent intent = new Intent((Context) this, (Class<?>) AppNavigationContainerActivity.class);
        Uri uri = this.B0;
        if (uri != null) {
            s40 s40Var = s40.b;
            intent.putExtra("deepLink", uri.toString());
        }
        intent.setFlags(268468224);
        startActivity(intent);
    }

    public final void V0() {
        Intent intent = new Intent((Context) this, (Class<?>) NeetPGOnboarding.class);
        Uri uri = this.B0;
        if (uri != null) {
            s40 s40Var = s40.b;
            intent.putExtra("deepLink", uri.toString());
        }
        intent.setFlags(268468224);
        startActivity(intent);
    }

    public final void X0() {
        pG3 j = Rz0.j(this);
        Intrinsics.checkNotNullExpressionValue(j, "getClient(...)");
        j.c();
    }

    public final void Y0(String issue, String userName, String email, Function1<? super Boolean, Unit> updateLoading) {
        Intrinsics.checkNotNullParameter(issue, "issue");
        Intrinsics.checkNotNullParameter(userName, "userName");
        Intrinsics.checkNotNullParameter(email, "email");
        Intrinsics.checkNotNullParameter(updateLoading, "updateLoading");
        updateLoading.invoke(Boolean.TRUE);
        String r = T0().c().r();
        Intrinsics.checkNotNullExpressionValue(r, "getMobile(...)");
        ReportQuestionResponse reportQuestionResponse = new ReportQuestionResponse(userName, r, email, "OTP not Received or not Working", issue, "63b52963e72e8b00186c11f3");
        Object value = T0().g.getValue();
        Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
        ((ul0) value).b(reportQuestionResponse).f(this, new b(new CK0(updateLoading, 2, this)));
    }

    public final void onActivityResult(int i, int i2, Intent intent) {
        super/*androidx.fragment.app.e*/.onActivityResult(i, i2, intent);
        try {
            if (i == 100) {
                TcSdk.getInstance().onActivityResultObtained(this, i, i2, intent);
            } else {
                rm2.c("NeetPGAuthActivity -> onActivityResult: TrueCaller error - " + intent);
            }
        } catch (Exception e) {
            rm2.b("NeetPGAuthActivity -> onActivityResult: Exception - ", e);
        }
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        hi.c(this);
        Intent intent = getIntent();
        s40 s40Var = s40.b;
        String stringExtra = intent.getStringExtra("deepLink");
        if (stringExtra != null) {
            this.B0 = Uri.parse(stringExtra);
        }
        this.D0 = getIntent().getBooleanExtra("REDIRECT_TO_PASSWORD", false);
        this.E0 = getIntent().getBooleanExtra("REDIRECT_TO_COLLEGE", false);
        g gVar = (g) this.H0.getValue();
        PackageManager packageManager = getApplicationContext().getPackageManager();
        Intrinsics.checkNotNullExpressionValue(packageManager, "getPackageManager(...)");
        gVar.Q = Y62.d(packageManager);
        WL.a(this, qM.b(-1226219326, new a()));
    }

    public final void onDestroy() {
        TcSdk.clear();
        super.onDestroy();
    }

    public final void W0(Function1 phoneNumberCallback, Function0 function0) {
        Intrinsics.checkNotNullParameter(function0, hcnACoYyf.FFSjQND);
        Intrinsics.checkNotNullParameter(phoneNumberCallback, "phoneNumberCallback");
        this.F0 = new jM1(phoneNumberCallback, function0);
        GetPhoneNumberHintIntentRequest getPhoneNumberHintIntentRequest = new GetPhoneNumberHintIntentRequest(0);
        Intrinsics.checkNotNullExpressionValue(getPhoneNumberHintIntentRequest, "build(...)");
        UE3 k = U3.k(this);
        a a2 = T13.a();
        a2.c = new Feature[]{WE3.a};
        a2.a = new RE3(k, getPhoneNumberHintIntentRequest);
        a2.d = 1653;
        GY3 b = k.b(0, a2.a());
        bD bDVar = new bD(new ht2(this, function0, phoneNumberCallback, 1), 6);
        b.getClass();
        b.g(Y13.a, bDVar);
        b.e(new Ol3(function0, phoneNumberCallback));
    }
}