PhotoRoom v4.8.2版本的 MD5 值为:c40a01bb3380c0f75c0cb6ac6760f295
以下内容为反编译后的 a.java 源代码,内容仅作参考
package qu;
import android.app.Application;
import com.google.firebase.auth.a0;
import com.photoroom.models.User;
import com.shakebugs.shake.Shake;
import com.shakebugs.shake.form.ShakeEmail;
import com.shakebugs.shake.form.ShakeForm;
import com.shakebugs.shake.report.ShakeOpenListener;
import em.l;
import io.intercom.android.sdk.models.Participant;
import iu.c;
import java.util.ArrayList;
import java.util.HashMap;
import kotlin.collections.r0;
import kotlin.jvm.internal.t;
import org.json.JSONObject;
import px.u0;
public final class a {
public static final a f67194a = new a();
public static final class C2157a implements ShakeOpenListener {
final a0 f67195a;
C2157a(a0 a0Var) {
this.f67195a = a0Var;
}
@Override
public void onShakeOpen() {
JSONObject jSONObject = new JSONObject();
jSONObject.put("userId", this.f67195a.u0());
jSONObject.put("email", this.f67195a.l0());
jSONObject.put("isLogged", !this.f67195a.v0());
String jSONObject2 = jSONObject.toString(4);
Shake.setMetadata(Participant.USER_TYPE, "```\n" + jSONObject2 + "\n```");
String u02 = this.f67195a.u0();
Shake.setMetadata("datadog", "https://app.datadoghq.eu/logs?query=%40usr.id%3A" + u02);
String u03 = this.f67195a.u0();
Shake.setMetadata("amplitude", "https://app.amplitude.com/analytics/photoroom/project/226750/search/user_id%3D" + u03);
String jSONObject3 = c.f51740b.l().toString(4);
Shake.setMetadata("experiments", "```\n" + jSONObject3 + "\n```");
}
}
private a() {
}
private final boolean b() {
return User.INSTANCE.isPhotoRoomTester();
}
public final void a(Application application) {
t.i(application, "application");
if (b()) {
Shake.start(application, "5oHHJOYlh1T0YgG47cLQNH8k89TY7h8NRWU9laJe", "zBHZ3ioNGXMJtZDf8zNwuHmlfEBMJuVB2pqdGkSg768UmIGyQjFPWFr");
}
}
public final void c(a0 user) {
HashMap k11;
t.i(user, "user");
if (b()) {
Shake.registerUser(user.u0());
k11 = r0.k(u0.a("email", user.l0()));
Shake.updateUserMetadata(k11);
Shake.getReportConfiguration().setShakeOpenListener(new C2157a(user));
ArrayList arrayList = new ArrayList(Shake.getReportConfiguration().getShakeForm().getComponents().size() + 1);
int i11 = l.f42727u3;
String l02 = user.l0();
if (l02 == null) {
l02 = "";
}
t.f(l02);
arrayList.add(new ShakeEmail("Email to contact you on", i11, l02, false));
arrayList.addAll(Shake.getReportConfiguration().getShakeForm().getComponents());
Shake.getReportConfiguration().setShakeForm(new ShakeForm(arrayList));
}
}
}