MD5 校验值:7cd346351ab05a28e42aff65173e0141
d.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package y5; 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; import r5.d0; import r5.q; import r5.r; import r5.s; import r5.v; import u4.i; public class d implements e { private final Context f14416a; private final z5.f f14417b; private final f f14418c; private final q f14419d; private final y5.a f14420e; private final a6.b f14421f; private final r f14422g; private final AtomicReference<z5.d> f14423h; private final AtomicReference<com.google.android.gms.tasks.b<z5.a>> f14424i; public class a implements u4.h<Void, Void> { a() { } @Override public i<Void> then(Void r52) { JSONObject a10 = d.this.f14421f.a(d.this.f14417b, true); if (a10 != null) { z5.e b10 = d.this.f14418c.b(a10); d.this.f14420e.c(b10.d(), a10); d.this.p(a10, "Loaded settings: "); d dVar = d.this; dVar.q(dVar.f14417b.f14553f); d.this.f14423h.set(b10); ((com.google.android.gms.tasks.b) d.this.f14424i.get()).e(b10.c()); com.google.android.gms.tasks.b bVar = new com.google.android.gms.tasks.b(); bVar.e(b10.c()); d.this.f14424i.set(bVar); } return com.google.android.gms.tasks.d.f(null); } } d(Context context, z5.f fVar, q qVar, f fVar2, y5.a aVar, a6.b bVar, r rVar) { AtomicReference<z5.d> atomicReference = new AtomicReference<>(); this.f14423h = atomicReference; this.f14424i = new AtomicReference<>(new com.google.android.gms.tasks.b()); this.f14416a = context; this.f14417b = fVar; this.f14419d = qVar; this.f14418c = fVar2; this.f14420e = aVar; this.f14421f = bVar; this.f14422g = rVar; atomicReference.set(b.e(qVar)); } public static d k(Context context, String str, v vVar, v5.b bVar, String str2, String str3, w5.f fVar, r rVar) { String g10 = vVar.g(); d0 d0Var = new d0(); return new d(context, new z5.f(str, vVar.h(), vVar.i(), vVar.j(), vVar, r5.g.h(r5.g.n(context), str, str3, str2), str3, str2, s.a(g10).h()), d0Var, new f(d0Var), new y5.a(fVar), new a6.a(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), rVar); } private z5.e l(c cVar) { z5.e eVar = null; try { if (!c.SKIP_CACHE_LOOKUP.equals(cVar)) { JSONObject b10 = this.f14420e.b(); if (b10 != null) { z5.e b11 = this.f14418c.b(b10); if (b11 != null) { p(b10, "Loaded cached settings: "); long a10 = this.f14419d.a(); if (!c.IGNORE_CACHE_EXPIRATION.equals(cVar) && b11.e(a10)) { o5.f.f().i("Cached settings have expired."); } try { o5.f.f().i("Returning cached settings."); eVar = b11; } catch (Exception e10) { e = e10; eVar = b11; o5.f.f().e("Failed to get cached settings", e); return eVar; } } else { o5.f.f().e("Failed to parse cached settings data.", null); } } else { o5.f.f().b("No cached settings data found."); } } } catch (Exception e11) { e = e11; } return eVar; } private String m() { return r5.g.r(this.f14416a).getString("existing_instance_identifier", ""); } public void p(JSONObject jSONObject, String str) { o5.f.f().b(str + jSONObject.toString()); } @SuppressLint({"CommitPrefEdits"}) public boolean q(String str) { SharedPreferences.Editor edit = r5.g.r(this.f14416a).edit(); edit.putString("existing_instance_identifier", str); edit.apply(); return true; } @Override public i<z5.a> a() { return this.f14424i.get().a(); } @Override public z5.d getSettings() { return this.f14423h.get(); } boolean j() { return !m().equals(this.f14417b.f14553f); } public i<Void> n(Executor executor) { return o(c.USE_CACHE, executor); } public i<Void> o(c cVar, Executor executor) { z5.e l10; if (!j() && (l10 = l(cVar)) != null) { this.f14423h.set(l10); this.f14424i.get().e(l10.c()); return com.google.android.gms.tasks.d.f(null); } z5.e l11 = l(c.IGNORE_CACHE_EXPIRATION); if (l11 != null) { this.f14423h.set(l11); this.f14424i.get().e(l11.c()); } return this.f14422g.h(executor).t(executor, new a()); } }