FLIX VISION v2.8.2版本的 MD5 值为:4d33b143293b36f23ce5a6a5834e6993
以下内容为反编译后的 w.java 源代码,内容仅作参考
package e7;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
import com.google.firebase.crashlytics.internal.common.CommonUtils;
import java.lang.Thread;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
public final class w {
public final Context f11167a;
public final d0 f11168b;
public y f11171e;
public y f11172f;
public r f11173g;
public final h0 f11174h;
public final j7.b f11175i;
public final d7.b f11176j;
public final c7.a f11177k;
public final ExecutorService f11178l;
public final l f11179m;
public final k f11180n;
public final b7.a f11181o;
public final b7.h f11182p;
public final long f11170d = System.currentTimeMillis();
public final l0 f11169c = new l0();
public class a implements Callable<Task<Void>> {
public final l7.g f11183b;
public a(l7.g gVar) {
this.f11183b = gVar;
}
@Override
public Task<Void> call() throws Exception {
return w.a(w.this, this.f11183b);
}
}
public class b implements Runnable {
public final l7.g f11185b;
public b(l7.g gVar) {
this.f11185b = gVar;
}
@Override
public void run() {
w.a(w.this, this.f11185b);
}
}
public class c implements Callable<Boolean> {
public c() {
}
@Override
public Boolean call() throws Exception {
try {
boolean remove = w.this.f11171e.remove();
if (!remove) {
b7.e.getLogger().w("Initialization marker file was not properly removed.");
}
return Boolean.valueOf(remove);
} catch (Exception e10) {
b7.e.getLogger().e("Problem encountered deleting Crashlytics initialization marker.", e10);
return Boolean.FALSE;
}
}
}
public w(t6.f fVar, h0 h0Var, b7.a aVar, d0 d0Var, d7.b bVar, c7.a aVar2, j7.b bVar2, ExecutorService executorService, k kVar, b7.h hVar) {
this.f11168b = d0Var;
this.f11167a = fVar.getApplicationContext();
this.f11174h = h0Var;
this.f11181o = aVar;
this.f11176j = bVar;
this.f11177k = aVar2;
this.f11178l = executorService;
this.f11175i = bVar2;
this.f11179m = new l(executorService);
this.f11180n = kVar;
this.f11182p = hVar;
}
public static Task a(final w wVar, l7.g gVar) {
Task<Void> forException;
wVar.f11179m.checkRunningOnThread();
wVar.f11171e.create();
b7.e.getLogger().v("Initialization marker file was created.");
try {
try {
wVar.f11176j.registerBreadcrumbHandler(new d7.a() {
@Override
public final void handleBreadcrumb(String str) {
w.this.log(str);
}
});
wVar.f11173g.g();
com.google.firebase.crashlytics.internal.settings.a aVar = (com.google.firebase.crashlytics.internal.settings.a) gVar;
if (aVar.getSettingsSync().f16236b.f16241a) {
if (!wVar.f11173g.e(aVar)) {
b7.e.getLogger().w("Previous sessions could not be finalized.");
}
forException = wVar.f11173g.h(aVar.getSettingsAsync());
} else {
b7.e.getLogger().d("Collection of crash reports disabled in Crashlytics settings.");
forException = Tasks.forException(new RuntimeException("Collection of crash reports disabled in Crashlytics settings."));
}
} catch (Exception e10) {
b7.e.getLogger().e("Crashlytics encountered a problem during asynchronous initialization.", e10);
forException = Tasks.forException(e10);
}
return forException;
} finally {
wVar.c();
}
}
public static String getVersion() {
return "18.6.3";
}
public final void b(l7.g gVar) {
Future<?> submit = this.f11178l.submit(new b(gVar));
b7.e.getLogger().d("Crashlytics detected incomplete initialization on previous app launch. Will initialize synchronously.");
try {
submit.get(3L, TimeUnit.SECONDS);
} catch (InterruptedException e10) {
b7.e.getLogger().e("Crashlytics was interrupted during initialization.", e10);
} catch (ExecutionException e11) {
b7.e.getLogger().e("Crashlytics encountered a problem during initialization.", e11);
} catch (TimeoutException e12) {
b7.e.getLogger().e("Crashlytics timed out during initialization.", e12);
}
}
public final void c() {
this.f11179m.submit(new c());
}
public Task<Void> doBackgroundInitializationAsync(l7.g gVar) {
return p0.callTask(this.f11178l, new a(gVar));
}
public void log(String str) {
long currentTimeMillis = System.currentTimeMillis() - this.f11170d;
r rVar = this.f11173g;
rVar.getClass();
rVar.f11140e.submit(new s(rVar, currentTimeMillis, str));
}
public boolean onPreExecute(e7.a aVar, l7.g gVar) {
boolean z10;
l lVar = this.f11179m;
j7.b bVar = this.f11175i;
Context context = this.f11167a;
boolean booleanResourceValue = CommonUtils.getBooleanResourceValue(context, "com.crashlytics.RequireBuildId", true);
String str = aVar.f11049b;
if (!booleanResourceValue) {
b7.e.getLogger().v("Configured not to require a build ID.");
} else if (TextUtils.isEmpty(str)) {
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", ".");
z10 = false;
if (z10) {
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");
}
String hVar = new h(this.f11174h).toString();
try {
this.f11172f = new y("crash_marker", bVar);
this.f11171e = new y("initialization_marker", bVar);
f7.m mVar = new f7.m(hVar, bVar, lVar);
f7.e eVar = new f7.e(bVar);
m7.a aVar2 = new m7.a(1024, new m7.c(10));
this.f11182p.setupListener(mVar);
this.f11173g = new r(this.f11167a, this.f11179m, this.f11174h, this.f11168b, this.f11175i, this.f11172f, aVar, mVar, eVar, m0.create(this.f11167a, this.f11174h, this.f11175i, aVar, eVar, mVar, aVar2, gVar, this.f11169c, this.f11180n), this.f11181o, this.f11177k, this.f11180n);
boolean isPresent = this.f11171e.isPresent();
try {
Boolean.TRUE.equals((Boolean) p0.awaitEvenIfOnMainThread(lVar.submit(new x(this))));
} catch (Exception unused) {
}
r rVar = this.f11173g;
Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
rVar.getClass();
rVar.f11140e.submit(new t(rVar, hVar));
b0 b0Var = new b0(new o(rVar), gVar, defaultUncaughtExceptionHandler, rVar.f11145j);
rVar.f11149n = b0Var;
Thread.setDefaultUncaughtExceptionHandler(b0Var);
if (!isPresent || !CommonUtils.canTryConnection(context)) {
b7.e.getLogger().d("Successfully configured exception handler.");
return true;
}
b7.e.getLogger().d("Crashlytics did not finish previous background initialization. Initializing synchronously.");
b(gVar);
return false;
} catch (Exception e10) {
b7.e.getLogger().e("Crashlytics was not started due to an exception during initialization", e10);
this.f11173g = null;
return false;
}
}
z10 = true;
if (z10) {
}
}
}