正在查看: BetterTogether v3.0.0 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ze;
import al.g;
import android.content.Context;
import cd.s0;
import cn.b;
import com.adapty.Adapty;
import com.adapty.ui.internal.mapping.viewconfig.ViewConfigurationMapper;
import com.appsflyer.AFInAppEventParameterName;
import com.appsflyer.share.LinkGenerator;
import com.appsflyer.share.ShareInviteHelper;
import com.bettertogether.remote.model.common.UserData;
import com.bettertogether.remote.model.response.BaseResponse;
import com.bettertogether.screens.login.LoginActivity;
import com.google.android.material.imageview.ShapeableImageView;
import fe.k;
import ih.t;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.p;
import o9.l0;
import pl.c1;
import tf.o;
import y2.m;
import z8.r;
public final class f extends p implements Function1 {
public final int f23188d;
public final g f23189e;
public f(g gVar, int i10) {
super(1);
this.f23188d = i10;
this.f23189e = gVar;
}
public final void a(UserData userData) {
String photo;
vl.h hVar;
int i10 = this.f23188d;
g gVar = this.f23189e;
boolean z4 = true;
switch (i10) {
case 1:
h hVar2 = (h) gVar.f583a;
String source = userData.getSource();
d dVar = (d) hVar2;
dVar.getClass();
Intrinsics.checkNotNullParameter(source, "userSource");
if (!b.e().d("useAppsFlyerForDynamicLinks")) {
dVar.showLoadingDialog();
Intrinsics.checkNotNullParameter(kh.a.N, "<this>");
synchronized (vl.h.class) {
g c10 = g.c();
synchronized (vl.h.class) {
hVar = (vl.h) c10.b(vl.h.class);
}
Intrinsics.checkNotNullExpressionValue(hVar, "getInstance()");
c1.F(hVar, new r(28, source, dVar)).addOnSuccessListener(new a9.h(18, new b(dVar, 2))).addOnFailureListener(new k(dVar, 3));
return;
}
Intrinsics.checkNotNullExpressionValue(hVar, "getInstance()");
c1.F(hVar, new r(28, source, dVar)).addOnSuccessListener(new a9.h(18, new b(dVar, 2))).addOnFailureListener(new k(dVar, 3));
return;
}
Context requireContext = dVar.requireContext();
Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext()");
c cVar = new c(dVar, 1);
c cVar2 = new c(dVar, 2);
Intrinsics.checkNotNullParameter(requireContext, "<this>");
Intrinsics.checkNotNullParameter(source, "userSource");
Intrinsics.checkNotNullParameter(cVar, "showLoadingDialog");
Intrinsics.checkNotNullParameter(cVar2, "hideLoadingDialog");
cVar.invoke();
LinkGenerator generateInviteUrl = ShareInviteHelper.generateInviteUrl(requireContext);
generateInviteUrl.addParameter("source", source);
generateInviteUrl.addParameter("af_sub1", source);
generateInviteUrl.addParameter("deep_link_value", jh.h.c("betterapp://luz2win.com/getstarted", source).toString());
generateInviteUrl.addParameter("deep_link_sub1", source);
generateInviteUrl.addParameter("af_dp", jh.h.c("betterapp://luz2win.com/getstarted", source).toString());
generateInviteUrl.addParameter("request_from", "appsFlyer");
generateInviteUrl.addParameter("af_siteid", "BetterTogether");
generateInviteUrl.addParameter("af_web_dp", "https://www.bettertogether-app.com/mobile-link/");
generateInviteUrl.addParameter("af_title", requireContext.getString(2131951687));
generateInviteUrl.addParameter(AFInAppEventParameterName.DESCRIPTION, requireContext.getString(2131951686));
generateInviteUrl.addParameter("af_android_url", "https://play.google.com/store/apps/details?id=com.bettertogether.us");
generateInviteUrl.addParameter("af_ios_url", "https://apps.apple.com/app/id1503465416");
generateInviteUrl.addParameter("af_ios_fallback_url", "https://apps.apple.com/app/id1503465416");
generateInviteUrl.addParameter("af_ios_image_url", "https://cdn.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_250/https://www.bettertogether-app.com/wp-content/uploads/2020/04/BT-Logo-with-background-small.jpg");
generateInviteUrl.setBrandDomain("links.bettertogether-app.com");
generateInviteUrl.generateLink(t.a(), new ag.e(requireContext, cVar2));
return;
default:
h hVar3 = (h) gVar.f583a;
Intrinsics.checkNotNullExpressionValue(userData, "it");
d dVar2 = (d) hVar3;
dVar2.getClass();
Intrinsics.checkNotNullParameter(userData, ViewConfigurationMapper.DATA);
s0 s0Var = dVar2.f23185v;
if (s0Var != null) {
String photo2 = userData.getPhoto();
if (photo2 != null && photo2.length() != 0) {
z4 = false;
}
if (z4) {
o oVar = zf.d.f23195a;
photo = "https://d376fyzjbo9nop.cloudfront.net/storyly/avatar.png";
} else {
photo = userData.getPhoto();
}
m activity = dVar2.getActivity();
if (activity != null) {
bg.b bVar = (bg.b) dVar2.f23184i.getValue();
Intrinsics.checkNotNullExpressionValue(activity, "activity");
ShapeableImageView shapeableImageView = s0Var.f4468f;
Intrinsics.checkNotNullExpressionValue(shapeableImageView, "ivAvatar");
bVar.getClass();
bg.b.a(activity, shapeableImageView, photo, 0.0f, -1);
}
s0Var.f4478p.setText(dVar2.getString(2131952016, new Object[]{userData.getFirstName(), userData.getLastName()}));
s0Var.f4477o.setText(userData.getEmail());
return;
}
return;
}
}
public final Object invoke(Object obj) {
int i10 = this.f23188d;
g gVar = this.f23189e;
switch (i10) {
case 0:
BaseResponse baseResponse = (BaseResponse) obj;
Intrinsics.checkNotNullParameter(baseResponse, "response");
UserData userData = (UserData) baseResponse.getData();
gVar.d.a(userData);
break;
case 1:
a((UserData) obj);
break;
case 2:
Adapty.logout(new l0(4));
d dVar = (d) ((h) gVar.f583a);
m activity = dVar.getActivity();
if (activity != null) {
rh.k.b(activity);
dVar.startActivity(LoginActivity.f5000y.p(activity, true));
}
break;
case 3:
d dVar2 = (d) ((h) gVar.f583a);
m activity2 = dVar2.getActivity();
if (activity2 != null) {
rh.k.b(activity2);
dVar2.startActivity(LoginActivity.f5000y.p(activity2, true));
}
break;
default:
a((UserData) obj);
break;
}
return Unit.f12192a;
}
}