MD5 校验值:6bdafb1d58f3fe7a55bbf3e7446795c3
f.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package h6; import a6.d0; import a6.u0; import a6.x; import a6.y; import a6.z; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import java.util.Locale; import java.util.concurrent.Executor; import java.util.concurrent.atomic.AtomicReference; import org.json.JSONObject; public class f implements i { private final Context f25508a; private final j f25509b; private final g f25510c; private final x f25511d; private final h6.a f25512e; private final k f25513f; private final y f25514g; private final AtomicReference<d> f25515h; private final AtomicReference<l5.i<d>> f25516i; public class a implements l5.g<Void, Void> { a() { } @Override public l5.h<Void> a(Void r52) { JSONObject a10 = f.this.f25513f.a(f.this.f25509b, true); if (a10 != null) { d b10 = f.this.f25510c.b(a10); f.this.f25512e.c(b10.f25493c, a10); f.this.q(a10, "Loaded settings: "); f fVar = f.this; fVar.r(fVar.f25509b.f25524f); f.this.f25515h.set(b10); ((l5.i) f.this.f25516i.get()).e(b10); } return l5.k.e(null); } } f(Context context, j jVar, x xVar, g gVar, h6.a aVar, k kVar, y yVar) { AtomicReference<d> atomicReference = new AtomicReference<>(); this.f25515h = atomicReference; this.f25516i = new AtomicReference<>(new l5.i()); this.f25508a = context; this.f25509b = jVar; this.f25511d = xVar; this.f25510c = gVar; this.f25512e = aVar; this.f25513f = kVar; this.f25514g = yVar; atomicReference.set(b.b(xVar)); } public static f l(Context context, String str, d0 d0Var, e6.b bVar, String str2, String str3, f6.g gVar, y yVar) { String g10 = d0Var.g(); u0 u0Var = new u0(); return new f(context, new j(str, d0Var.h(), d0Var.i(), d0Var.j(), d0Var, a6.j.h(a6.j.m(context), str, str3, str2), str3, str2, z.m(g10).o()), u0Var, new g(u0Var), new h6.a(gVar), new c(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), yVar); } private d m(e eVar) { d dVar = null; try { if (!e.SKIP_CACHE_LOOKUP.equals(eVar)) { JSONObject b10 = this.f25512e.b(); if (b10 != null) { d b11 = this.f25510c.b(b10); if (b11 != null) { q(b10, "Loaded cached settings: "); long a10 = this.f25511d.a(); if (!e.IGNORE_CACHE_EXPIRATION.equals(eVar) && b11.a(a10)) { x5.h.f().i("Cached settings have expired."); } try { x5.h.f().i("Returning cached settings."); dVar = b11; } catch (Exception e10) { e = e10; dVar = b11; x5.h.f().e("Failed to get cached settings", e); return dVar; } } else { x5.h.f().e("Failed to parse cached settings data.", null); } } else { x5.h.f().b("No cached settings data found."); } } } catch (Exception e11) { e = e11; } return dVar; } private String n() { return a6.j.q(this.f25508a).getString("existing_instance_identifier", ""); } public void q(JSONObject jSONObject, String str) { x5.h.f().b(str + jSONObject.toString()); } @SuppressLint({"CommitPrefEdits"}) public boolean r(String str) { SharedPreferences.Editor edit = a6.j.q(this.f25508a).edit(); edit.putString("existing_instance_identifier", str); edit.apply(); return true; } @Override public l5.h<d> a() { return this.f25516i.get().a(); } @Override public d b() { return this.f25515h.get(); } boolean k() { return !n().equals(this.f25509b.f25524f); } public l5.h<Void> o(e eVar, Executor executor) { d m10; if (!k() && (m10 = m(eVar)) != null) { this.f25515h.set(m10); this.f25516i.get().e(m10); return l5.k.e(null); } d m11 = m(e.IGNORE_CACHE_EXPIRATION); if (m11 != null) { this.f25515h.set(m11); this.f25516i.get().e(m11); } return this.f25514g.k(executor).r(executor, new a()); } public l5.h<Void> p(Executor executor) { return o(e.USE_CACHE, executor); } }