正在查看: Aisle v12.32 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aisle v12.32 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package A8;
import android.content.Context;
import android.content.SharedPreferences;
import com.google.android.gms.tasks.SuccessContinuation;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.gms.tasks.Tasks;
import java.util.Locale;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONObject;
import q8.C1041g;
import t8.AbstractC1086i;
import t8.C;
import t8.C1100x;
import t8.EnumC1101y;
import t8.InterfaceC1099w;
import t8.T;
import x8.C1159b;
import y8.C1244g;
public class f implements i {
private final Context a;
private final j b;
private final g c;
private final InterfaceC1099w d;
private final A8.a e;
private final k f;
private final C1100x g;
private final AtomicReference h;
private final AtomicReference i;
class a implements SuccessContinuation {
a() {
}
@Override
public Task then(Void r52) {
JSONObject a = f.this.f.a(f.this.b, true);
if (a != null) {
d b = f.this.c.b(a);
f.this.e.c(b.c, a);
f.this.q(a, "Loaded settings: ");
f fVar = f.this;
fVar.r(fVar.b.f);
f.this.h.set(b);
((TaskCompletionSource) f.this.i.get()).trySetResult(b);
}
return Tasks.forResult(null);
}
}
f(Context context, j jVar, InterfaceC1099w interfaceC1099w, g gVar, A8.a aVar, k kVar, C1100x c1100x) {
AtomicReference atomicReference = new AtomicReference();
this.h = atomicReference;
this.i = new AtomicReference(new TaskCompletionSource());
this.a = context;
this.b = jVar;
this.d = interfaceC1099w;
this.c = gVar;
this.e = aVar;
this.f = kVar;
this.g = c1100x;
atomicReference.set(b.b(interfaceC1099w));
}
public static f l(Context context, String str, C c, C1159b c1159b, String str2, String str3, C1244g c1244g, C1100x c1100x) {
String g = c.g();
T t = new T();
return new f(context, new j(str, c.h(), c.i(), c.j(), c, AbstractC1086i.h(AbstractC1086i.m(context), str, str3, str2), str3, str2, EnumC1101y.c(g).d()), t, new g(t), new A8.a(c1244g), new c(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), c1159b), c1100x);
}
private d m(e eVar) {
d dVar = null;
try {
if (!e.SKIP_CACHE_LOOKUP.equals(eVar)) {
JSONObject b = this.e.b();
if (b != null) {
d b2 = this.c.b(b);
if (b2 == null) {
C1041g.f().e("Failed to parse cached settings data.", null);
return null;
}
q(b, "Loaded cached settings: ");
long a2 = this.d.a();
if (!e.IGNORE_CACHE_EXPIRATION.equals(eVar) && b2.a(a2)) {
C1041g.f().i("Cached settings have expired.");
return null;
}
try {
C1041g.f().i("Returning cached settings.");
return b2;
} catch (Exception e) {
e = e;
dVar = b2;
C1041g.f().e("Failed to get cached settings", e);
return dVar;
}
}
C1041g.f().b("No cached settings data found.");
}
return null;
} catch (Exception e2) {
e = e2;
}
}
private String n() {
return AbstractC1086i.q(this.a).getString("existing_instance_identifier", "");
}
public void q(JSONObject jSONObject, String str) {
C1041g.f().b(str + jSONObject.toString());
}
public boolean r(String str) {
SharedPreferences.Editor edit = AbstractC1086i.q(this.a).edit();
edit.putString("existing_instance_identifier", str);
edit.apply();
return true;
}
@Override
public Task a() {
return ((TaskCompletionSource) this.i.get()).getTask();
}
@Override
public d b() {
return (d) this.h.get();
}
boolean k() {
return !n().equals(this.b.f);
}
public Task o(e eVar, Executor executor) {
d m;
if (!k() && (m = m(eVar)) != null) {
this.h.set(m);
((TaskCompletionSource) this.i.get()).trySetResult(m);
return Tasks.forResult(null);
}
d m2 = m(e.IGNORE_CACHE_EXPIRATION);
if (m2 != null) {
this.h.set(m2);
((TaskCompletionSource) this.i.get()).trySetResult(m2);
}
return this.g.i(executor).onSuccessTask(executor, new a());
}
public Task p(Executor executor) {
return o(e.USE_CACHE, executor);
}
}