QR Scanner v2.8.7版本的 MD5 值为:9dcdcf654454b02f97d5fcd68f9f4629
以下内容为反编译后的 f.java 源代码,内容仅作参考
package b6;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import com.github.appintro.BuildConfig;
import java.util.Locale;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONObject;
import u5.e0;
import u5.q;
import u5.r;
import u5.s;
import u5.v;
public class f implements i {
private final Context f3877a;
private final j f3878b;
private final g f3879c;
private final q f3880d;
private final b6.a f3881e;
private final k f3882f;
private final r f3883g;
private final AtomicReference<d> f3884h;
private final AtomicReference<c4.h<d>> f3885i;
public class a implements c4.f<Void, Void> {
a() {
}
@Override
public c4.g<Void> a(Void r52) {
JSONObject a10 = f.this.f3882f.a(f.this.f3878b, true);
if (a10 != null) {
d b10 = f.this.f3879c.b(a10);
f.this.f3881e.c(b10.f3863c, a10);
f.this.q(a10, "Loaded settings: ");
f fVar = f.this;
fVar.r(fVar.f3878b.f3893f);
f.this.f3884h.set(b10);
((c4.h) f.this.f3885i.get()).e(b10);
}
return c4.j.e(null);
}
}
f(Context context, j jVar, q qVar, g gVar, b6.a aVar, k kVar, r rVar) {
AtomicReference<d> atomicReference = new AtomicReference<>();
this.f3884h = atomicReference;
this.f3885i = new AtomicReference<>(new c4.h());
this.f3877a = context;
this.f3878b = jVar;
this.f3880d = qVar;
this.f3879c = gVar;
this.f3881e = aVar;
this.f3882f = kVar;
this.f3883g = rVar;
atomicReference.set(b.b(qVar));
}
public static f l(Context context, String str, v vVar, y5.b bVar, String str2, String str3, z5.f fVar, r rVar) {
String g10 = vVar.g();
e0 e0Var = new e0();
return new f(context, new j(str, vVar.h(), vVar.i(), vVar.j(), vVar, u5.g.h(u5.g.n(context), str, str3, str2), str3, str2, s.i(g10).j()), e0Var, new g(e0Var), new b6.a(fVar), new c(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), rVar);
}
private d m(e eVar) {
d dVar = null;
try {
if (!e.SKIP_CACHE_LOOKUP.equals(eVar)) {
JSONObject b10 = this.f3881e.b();
if (b10 != null) {
d b11 = this.f3879c.b(b10);
if (b11 != null) {
q(b10, "Loaded cached settings: ");
long a10 = this.f3880d.a();
if (!e.IGNORE_CACHE_EXPIRATION.equals(eVar) && b11.a(a10)) {
r5.f.f().i("Cached settings have expired.");
}
try {
r5.f.f().i("Returning cached settings.");
dVar = b11;
} catch (Exception e10) {
e = e10;
dVar = b11;
r5.f.f().e("Failed to get cached settings", e);
return dVar;
}
} else {
r5.f.f().e("Failed to parse cached settings data.", null);
}
} else {
r5.f.f().b("No cached settings data found.");
}
}
} catch (Exception e11) {
e = e11;
}
return dVar;
}
private String n() {
return u5.g.r(this.f3877a).getString("existing_instance_identifier", BuildConfig.FLAVOR);
}
public void q(JSONObject jSONObject, String str) {
r5.f f10 = r5.f.f();
f10.b(str + jSONObject.toString());
}
@SuppressLint({"CommitPrefEdits"})
public boolean r(String str) {
SharedPreferences.Editor edit = u5.g.r(this.f3877a).edit();
edit.putString("existing_instance_identifier", str);
edit.apply();
return true;
}
@Override
public c4.g<d> a() {
return this.f3885i.get().a();
}
@Override
public d b() {
return this.f3884h.get();
}
boolean k() {
return !n().equals(this.f3878b.f3893f);
}
public c4.g<Void> o(e eVar, Executor executor) {
d m10;
if (!k() && (m10 = m(eVar)) != null) {
this.f3884h.set(m10);
this.f3885i.get().e(m10);
return c4.j.e(null);
}
d m11 = m(e.IGNORE_CACHE_EXPIRATION);
if (m11 != null) {
this.f3884h.set(m11);
this.f3885i.get().e(m11);
}
return this.f3883g.h(executor).q(executor, new a());
}
public c4.g<Void> p(Executor executor) {
return o(e.USE_CACHE, executor);
}
}