package l3;

import android.content.Context;

/* JADX INFO: loaded from: classes.dex */
public final class d {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Context f30103a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public String f30104b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public c f30105c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f30106d;

    public d(Context context) {
        nb.g.i(context, "context");
        this.f30103a = context;
    }

    public final e a() {
        String str;
        c cVar = this.f30105c;
        if (cVar == null) {
            throw new IllegalArgumentException("Must set a callback to create the configuration.".toString());
        }
        if (this.f30106d && ((str = this.f30104b) == null || str.length() == 0)) {
            throw new IllegalArgumentException("Must set a non-null database name to a configuration that uses the no backup directory.".toString());
        }
        return new e(this.f30103a, this.f30104b, cVar, this.f30106d);
    }
}
