FlixOlé v4.4.0版本的 MD5 值为:50e7f767ca3e8715936523e9ef089581

以下内容为反编译后的 d.java 源代码,内容仅作参考


package i.d.d.m.h.p;

import android.content.Context;
import android.content.SharedPreferences;
import i.d.a.d.p.i;
import i.d.a.d.p.j;
import i.d.a.d.p.l;
import i.d.d.m.h.j.a0;
import i.d.d.m.h.j.i0;
import i.d.d.m.h.j.n;
import i.d.d.m.h.j.v;
import i.d.d.m.h.j.w;
import i.d.d.m.h.j.x;
import java.util.Locale;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
public class d implements e {
    public final Context a;
    public final i.d.d.m.h.p.i.f b;
    public final f c;
    public final v d;
    public final i.d.d.m.h.p.a e;
    public final i.d.d.m.h.p.j.b f7739f;
    public final w f7740g;
    public final AtomicReference<i.d.d.m.h.p.i.d> f7741h;
    public final AtomicReference<j<i.d.d.m.h.p.i.a>> f7742i;

    public class a implements i.d.a.d.p.h<Void, Void> {
        public a() {
        }

        @Override
        public i<Void> a(Void r5) throws Exception {
            o.b.c a = d.this.f7739f.a(d.this.b, true);
            if (a != null) {
                i.d.d.m.h.p.i.e b = d.this.c.b(a);
                d.this.e.c(b.d(), a);
                d.this.q(a, "Loaded settings: ");
                d dVar = d.this;
                dVar.r(dVar.b.f7743f);
                d.this.f7741h.set(b);
                ((j) d.this.f7742i.get()).e(b.c());
                j jVar = new j();
                jVar.e(b.c());
                d.this.f7742i.set(jVar);
            }
            return l.e(null);
        }
    }

    public d(Context context, i.d.d.m.h.p.i.f fVar, v vVar, f fVar2, i.d.d.m.h.p.a aVar, i.d.d.m.h.p.j.b bVar, w wVar) {
        AtomicReference<i.d.d.m.h.p.i.d> atomicReference = new AtomicReference<>();
        this.f7741h = atomicReference;
        this.f7742i = new AtomicReference<>(new j());
        this.a = context;
        this.b = fVar;
        this.d = vVar;
        this.c = fVar2;
        this.e = aVar;
        this.f7739f = bVar;
        this.f7740g = wVar;
        atomicReference.set(b.e(vVar));
    }

    public static d l(Context context, String str, a0 a0Var, i.d.d.m.h.m.b bVar, String str2, String str3, i.d.d.m.h.n.f fVar, w wVar) {
        String g2 = a0Var.g();
        i0 i0Var = new i0();
        return new d(context, new i.d.d.m.h.p.i.f(str, a0Var.h(), a0Var.i(), a0Var.j(), a0Var, n.h(n.n(context), str, str3, str2), str3, str2, x.c(g2).d()), i0Var, new f(i0Var), new i.d.d.m.h.p.a(fVar), new i.d.d.m.h.p.j.a(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), wVar);
    }

    @Override
    public i<i.d.d.m.h.p.i.a> a() {
        return this.f7742i.get().a();
    }

    @Override
    public i.d.d.m.h.p.i.d b() {
        return this.f7741h.get();
    }

    public boolean k() {
        return !n().equals(this.b.f7743f);
    }

    public final i.d.d.m.h.p.i.e m(c cVar) {
        i.d.d.m.h.p.i.e eVar = null;
        try {
            if (!c.SKIP_CACHE_LOOKUP.equals(cVar)) {
                o.b.c b = this.e.b();
                if (b != null) {
                    i.d.d.m.h.p.i.e b2 = this.c.b(b);
                    if (b2 != null) {
                        q(b, "Loaded cached settings: ");
                        long a2 = this.d.a();
                        if (!c.IGNORE_CACHE_EXPIRATION.equals(cVar) && b2.e(a2)) {
                            i.d.d.m.h.f.f().i("Cached settings have expired.");
                        }
                        try {
                            i.d.d.m.h.f.f().i("Returning cached settings.");
                            eVar = b2;
                        } catch (Exception e) {
                            e = e;
                            eVar = b2;
                            i.d.d.m.h.f.f().e("Failed to get cached settings", e);
                            return eVar;
                        }
                    } else {
                        i.d.d.m.h.f.f().e("Failed to parse cached settings data.", null);
                    }
                } else {
                    i.d.d.m.h.f.f().b("No cached settings data found.");
                }
            }
        } catch (Exception e2) {
            e = e2;
        }
        return eVar;
    }

    public final String n() {
        return n.r(this.a).getString("existing_instance_identifier", "");
    }

    public i<Void> o(c cVar, Executor executor) {
        i.d.d.m.h.p.i.e m2;
        if (!k() && (m2 = m(cVar)) != null) {
            this.f7741h.set(m2);
            this.f7742i.get().e(m2.c());
            return l.e(null);
        }
        i.d.d.m.h.p.i.e m3 = m(c.IGNORE_CACHE_EXPIRATION);
        if (m3 != null) {
            this.f7741h.set(m3);
            this.f7742i.get().e(m3.c());
        }
        return this.f7740g.h(executor).t(executor, new a());
    }

    public i<Void> p(Executor executor) {
        return o(c.USE_CACHE, executor);
    }

    public final void q(o.b.c cVar, String str) throws o.b.b {
        i.d.d.m.h.f f2 = i.d.d.m.h.f.f();
        f2.b(str + cVar.toString());
    }

    public final boolean r(String str) {
        SharedPreferences.Editor edit = n.r(this.a).edit();
        edit.putString("existing_instance_identifier", str);
        edit.apply();
        return true;
    }
}