Shinigami ID v1.1.3版本的 MD5 值为:c381e85feac697f048c400ae89b7b92d
以下内容为反编译后的 d.java 源代码,内容仅作参考
package r5;
import a0.g;
import aa.p;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewParent;
import androidx.appcompat.widget.m;
import androidx.fragment.app.f0;
import bb.u;
import c4.y3;
import com.google.android.material.sidesheet.SideSheetBehavior;
import com.google.firebase.crashlytics.CrashlyticsRegistrar;
import com.wonderpush.sdk.inappmessaging.InAppMessaging;
import d.w;
import de.t;
import fb.h;
import fb.n;
import h6.f;
import i0.e0;
import i0.y;
import j0.j;
import java.lang.Thread;
import java.lang.ref.Reference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.WeakHashMap;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import kb.y;
import n4.v;
import q6.r;
import q7.p0;
import v7.i;
import v7.l;
import va.k;
import w6.c0;
import w6.d0;
import w6.g0;
import w6.h0;
import w6.o;
import w6.q;
import w6.z;
public final class d implements j, n4.a, l, i, q6.d, fc.b {
public final int f10688o;
public final Object f10689p;
public d(Object obj, int i10) {
this.f10689p = obj;
this.f10688o = i10;
}
@Override
public void accept(Object obj) {
switch (this.f10688o) {
case 0:
((InAppMessaging) this.f10689p).a((n) obj);
return;
case 1:
bb.a aVar = (bb.a) this.f10689p;
Objects.requireNonNull(aVar);
y.k("Updating contextual triggers for the following analytics events: " + aVar.f2777b);
HashSet hashSet = new HashSet();
Iterator it = ((List) obj).iterator();
while (it.hasNext()) {
Iterator it2 = ((ArrayList) ((fb.c) it.next()).b()).iterator();
while (it2.hasNext()) {
h hVar = (h) it2.next();
if (hVar.a() != null && !TextUtils.isEmpty(hVar.a().f5860a)) {
hashSet.add(hVar.a().f5860a);
}
}
}
aVar.f2777b = hashSet;
return;
case 2:
u uVar = (u) this.f10689p;
List list = (List) obj;
if (uVar.f2849b) {
return;
}
if (uVar.c) {
int i10 = uVar.f2850d + 1;
uVar.f2850d = i10;
if (i10 >= 5) {
uVar.c = false;
uVar.f2848a.b("fresh_install", false);
}
}
Iterator it3 = list.iterator();
while (it3.hasNext()) {
Objects.requireNonNull((fb.c) it3.next());
}
return;
default:
y.n(String.format("Campaign %s capped ? : %s", ((fb.c) this.f10689p).f5841b.f12001a, (Boolean) obj));
return;
}
}
@Override
public Object apply(Object obj) {
p0 p0Var = (p0) this.f10689p;
int i10 = this.f10688o;
Objects.requireNonNull(p0Var);
return p0Var.j(i10, ((Cursor) obj).getBlob(0));
}
@Override
public boolean b(View view) {
boolean z10;
SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) this.f10689p;
int i10 = this.f10688o;
Objects.requireNonNull(sideSheetBehavior);
int i11 = 1;
if (i10 == 1 || i10 == 2) {
throw new IllegalArgumentException(m3.b.o(p.w("STATE_"), i10 == 1 ? "DRAGGING" : "SETTLING", " should not be set externally."));
}
Reference reference = sideSheetBehavior.f4180n;
if (reference == null || reference.get() == null) {
sideSheetBehavior.s(i10);
} else {
View view2 = (View) sideSheetBehavior.f4180n.get();
g gVar = new g(sideSheetBehavior, i10, i11);
ViewParent parent = view2.getParent();
if (parent != null && parent.isLayoutRequested()) {
WeakHashMap<View, e0> weakHashMap = i0.y.f6620a;
if (y.g.b(view2)) {
z10 = true;
if (z10) {
gVar.run();
} else {
view2.post(gVar);
}
}
}
z10 = false;
if (z10) {
}
}
return true;
}
@Override
public Object f(q6.b bVar) {
v vVar;
n4.i p10;
boolean z10;
boolean z11;
boolean z12;
boolean exists;
boolean z13;
NetworkInfo activeNetworkInfo;
Resources resources;
d7.b a10;
String[] strArr;
switch (this.f10688o) {
case 0:
Objects.requireNonNull((CrashlyticsRegistrar) this.f10689p);
r rVar = (r) bVar;
f fVar = (f) rVar.a(f.class);
y7.a g10 = rVar.g(t6.a.class);
y7.a g11 = rVar.g(j6.a.class);
z7.d dVar = (z7.d) rVar.a(z7.d.class);
fVar.a();
Context context = fVar.f6488a;
String packageName = context.getPackageName();
Log.i("FirebaseCrashlytics", "Initializing Firebase Crashlytics 18.3.6 for " + packageName, null);
b7.b bVar2 = new b7.b(context);
z zVar = new z(fVar);
d0 d0Var = new d0(context, packageName, dVar, zVar);
t6.b bVar3 = new t6.b(g10);
s6.b bVar4 = new s6.b(g11);
w6.u uVar = new w6.u(fVar, d0Var, bVar3, zVar, new s6.a(bVar4), new s6.a(bVar4), bVar2, c0.a("Crashlytics Exception Handler"));
fVar.a();
String str = fVar.c.f6501b;
String e10 = w6.f.e(context);
ArrayList arrayList = new ArrayList();
int f10 = w6.f.f(context, "com.google.firebase.crashlytics.build_ids_lib", "array");
int f11 = w6.f.f(context, "com.google.firebase.crashlytics.build_ids_arch", "array");
int f12 = w6.f.f(context, "com.google.firebase.crashlytics.build_ids_build_id", "array");
if (f10 == 0 || f11 == 0 || f12 == 0) {
String format = String.format("Could not find resources: %d %d %d", Integer.valueOf(f10), Integer.valueOf(f11), Integer.valueOf(f12));
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", format, null);
}
} else {
String[] stringArray = context.getResources().getStringArray(f10);
String[] stringArray2 = context.getResources().getStringArray(f11);
String[] stringArray3 = context.getResources().getStringArray(f12);
if (stringArray.length == stringArray3.length && stringArray2.length == stringArray3.length) {
for (int i10 = 0; i10 < stringArray3.length; i10++) {
arrayList.add(new w6.d(stringArray[i10], stringArray2[i10], stringArray3[i10]));
}
} else {
String format2 = String.format("Lengths did not match: %d %d %d", Integer.valueOf(stringArray.length), Integer.valueOf(stringArray2.length), Integer.valueOf(stringArray3.length));
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", format2, null);
}
}
}
String v = p.v("Mapping file ID is: ", e10);
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", v, null);
}
Iterator it = arrayList.iterator();
while (it.hasNext()) {
w6.d dVar2 = (w6.d) it.next();
String format3 = String.format("Build id for %s on %s: %s", dVar2.f13662a, dVar2.f13663b, dVar2.c);
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", format3, null);
}
}
t6.c cVar = new t6.c(context);
try {
String packageName2 = context.getPackageName();
String d10 = d0Var.d();
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName2, 0);
String num = Integer.toString(packageInfo.versionCode);
String str2 = packageInfo.versionName;
if (str2 == null) {
str2 = "0.0";
}
String str3 = str2;
w6.a aVar = new w6.a(str, e10, arrayList, d10, packageName2, num, str3, cVar);
String v10 = p.v("Installer package name is: ", d10);
if (Log.isLoggable("FirebaseCrashlytics", 2)) {
Log.v("FirebaseCrashlytics", v10, null);
}
ExecutorService a11 = c0.a("com.google.firebase.crashlytics.startup");
q5.e eVar = new q5.e();
String d11 = d0Var.d();
h1.u uVar2 = new h1.u();
d7.e eVar2 = new d7.e(uVar2, 0);
w wVar = new w(bVar2);
Locale locale = Locale.US;
f0 f0Var = new f0(String.format(locale, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), eVar);
String format4 = String.format(locale, "%s/%s", d0Var.e(Build.MANUFACTURER), d0Var.e(Build.MODEL));
String e11 = d0Var.e(Build.VERSION.INCREMENTAL);
String e12 = d0Var.e(Build.VERSION.RELEASE);
int i11 = 4;
String[] strArr2 = {w6.f.e(context), str, str3, num};
ArrayList arrayList2 = new ArrayList();
int i12 = 0;
while (i12 < i11) {
String str4 = strArr2[i12];
if (str4 != null) {
strArr = strArr2;
arrayList2.add(str4.replace("-", "").toLowerCase(Locale.US));
} else {
strArr = strArr2;
}
i12++;
i11 = 4;
strArr2 = strArr;
}
Collections.sort(arrayList2);
StringBuilder sb2 = new StringBuilder();
Iterator it2 = arrayList2.iterator();
while (it2.hasNext()) {
sb2.append((String) it2.next());
}
String sb3 = sb2.toString();
d7.d dVar3 = new d7.d(context, new d7.h(str, format4, e11, e12, d0Var, sb3.length() > 0 ? w6.f.l(sb3) : null, str3, num, k.d(d11 != null ? 4 : 1)), uVar2, eVar2, wVar, f0Var, zVar);
if ((!w6.f.g(dVar3.f5322a).getString("existing_instance_identifier", "").equals(dVar3.f5323b.f5336f)) || (a10 = dVar3.a(1)) == null) {
d7.b a12 = dVar3.a(3);
if (a12 != null) {
dVar3.f5328h.set(a12);
dVar3.f5329i.get().d(a12);
}
z zVar2 = dVar3.f5327g;
v vVar2 = zVar2.f13762f.f8726a;
synchronized (zVar2.f13759b) {
vVar = zVar2.c.f8726a;
}
ExecutorService executorService = h0.f13689a;
n4.j jVar = new n4.j();
g0 g0Var = new g0(jVar, 0);
vVar2.f(a11, g0Var);
vVar.f(a11, g0Var);
p10 = jVar.f8726a.p(a11, new d7.c(dVar3));
} else {
dVar3.f5328h.set(a10);
dVar3.f5329i.get().d(a10);
p10 = n4.l.e(null);
}
p10.f(a11, new h1.u());
Context context2 = uVar.f13732a;
if (context2 != null && (resources = context2.getResources()) != null) {
int f13 = w6.f.f(context2, "com.crashlytics.RequireBuildId", "bool");
if (f13 > 0) {
z10 = resources.getBoolean(f13);
} else {
int f14 = w6.f.f(context2, "com.crashlytics.RequireBuildId", "string");
if (f14 > 0) {
z10 = Boolean.parseBoolean(context2.getString(f14));
}
}
String str5 = aVar.f13647b;
if (z10) {
if (Log.isLoggable("FirebaseCrashlytics", 2)) {
Log.v("FirebaseCrashlytics", "Configured not to require a build ID.", null);
}
} else if (TextUtils.isEmpty(str5)) {
Log.e("FirebaseCrashlytics", ".");
Log.e("FirebaseCrashlytics", ". | | ");
Log.e("FirebaseCrashlytics", ". | |");
Log.e("FirebaseCrashlytics", ". | |");
Log.e("FirebaseCrashlytics", ". \\ | | /");
Log.e("FirebaseCrashlytics", ". \\ /");
Log.e("FirebaseCrashlytics", ". \\ /");
Log.e("FirebaseCrashlytics", ". \\/");
Log.e("FirebaseCrashlytics", ".");
Log.e("FirebaseCrashlytics", "The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
Log.e("FirebaseCrashlytics", ".");
Log.e("FirebaseCrashlytics", ". /\\");
Log.e("FirebaseCrashlytics", ". / \\");
Log.e("FirebaseCrashlytics", ". / \\");
Log.e("FirebaseCrashlytics", ". / | | \\");
Log.e("FirebaseCrashlytics", ". | |");
Log.e("FirebaseCrashlytics", ". | |");
Log.e("FirebaseCrashlytics", ". | |");
Log.e("FirebaseCrashlytics", ".");
z11 = false;
if (!z11) {
throw new IllegalStateException("The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
}
new w6.e(uVar.f13738h);
String str6 = w6.e.f13672b;
try {
b7.b bVar5 = uVar.f13739i;
int i13 = 17;
p pVar = null;
uVar.f13736f = new m("crash_marker", bVar5, i13, pVar);
uVar.f13735e = new m("initialization_marker", bVar5, i13, pVar);
x6.h hVar = new x6.h();
x6.c cVar2 = new x6.c(uVar.f13739i);
uVar.f13737g = new o(uVar.f13732a, uVar.f13742m, uVar.f13738h, uVar.f13733b, uVar.f13739i, uVar.f13736f, aVar, cVar2, w6.f0.b(uVar.f13732a, uVar.f13738h, uVar.f13739i, aVar, cVar2, hVar, new e7.a(new e7.c[]{new e7.b(10, 1)}), dVar3, uVar.c), uVar.f13743n, uVar.f13741k);
exists = uVar.f13735e.o().exists();
try {
Boolean.TRUE.equals((Boolean) h0.a(uVar.f13742m.b(new w6.v(uVar))));
} catch (Exception unused) {
}
o oVar = uVar.f13737g;
Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
oVar.f13709d.b(new q(oVar, str6));
w6.y yVar = new w6.y(new w6.j(oVar), dVar3, defaultUncaughtExceptionHandler, oVar.f13714i);
oVar.l = yVar;
Thread.setDefaultUncaughtExceptionHandler(yVar);
} catch (Exception e13) {
Log.e("FirebaseCrashlytics", "Crashlytics was not started due to an exception during initialization", e13);
uVar.f13737g = null;
}
if (exists) {
Context context3 = uVar.f13732a;
if ((context3.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == 0) && ((activeNetworkInfo = ((ConnectivityManager) context3.getSystemService("connectivity")).getActiveNetworkInfo()) == null || !activeNetworkInfo.isConnectedOrConnecting())) {
z13 = false;
if (z13) {
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", "Crashlytics did not finish previous background initialization. Initializing synchronously.", null);
}
uVar.b(dVar3);
z12 = false;
n4.l.c(a11, new s6.d(z12, uVar, dVar3));
return new s6.e();
}
}
z13 = true;
if (z13) {
}
}
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", "Successfully configured exception handler.", null);
}
z12 = true;
n4.l.c(a11, new s6.d(z12, uVar, dVar3));
return new s6.e();
}
z11 = true;
if (!z11) {
}
}
z10 = true;
String str52 = aVar.f13647b;
if (z10) {
}
z11 = true;
if (!z11) {
}
} catch (PackageManager.NameNotFoundException e14) {
Log.e("FirebaseCrashlytics", "Error retrieving app package info.", e14);
return null;
}
break;
default:
r rVar2 = (r) bVar;
return new w7.c((Context) rVar2.a(Context.class), ((f) rVar2.a(f.class)).f(), rVar2.d(q6.q.a(w7.d.class)), rVar2.f(h8.g.class), (Executor) rVar2.b((q6.q) this.f10689p));
}
}
@Override
public Object g(n4.i iVar) {
n4.i<String> e10;
n7.d dVar = (n7.d) this.f10689p;
int i10 = this.f10688o;
synchronized (dVar) {
if (i10 != dVar.f8766t) {
y3.b("FirebaseAuthCredentialsProvider", "getToken aborted due to token change", new Object[0]);
e10 = dVar.X();
} else {
e10 = iVar.o() ? n4.l.e(((o6.j) iVar.k()).f9080a) : n4.l.d(iVar.j());
}
}
return e10;
}
@Override
public Object get() {
q7.k kVar = (q7.k) this.f10689p;
int i10 = this.f10688o;
s7.g e10 = kVar.c.e(i10);
t.E(e10 != null, "Attempt to reject nonexistent batch!", new Object[0]);
kVar.c.b(e10);
kVar.c.a();
kVar.f10251d.b(i10);
kVar.f10253f.i(e10.a());
return kVar.f10253f.c(e10.a());
}
}