72 lines
2.7 KiB
Java
72 lines
2.7 KiB
Java
package com.google.firebase;
|
|
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import com.google.android.gms.common.internal.Objects;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.common.internal.StringResourceValueReader;
|
|
import com.google.android.gms.common.util.Strings;
|
|
|
|
/* compiled from: com.google.firebase:firebase-common@@16.0.2 */
|
|
/* loaded from: classes.dex */
|
|
public final class FirebaseOptions {
|
|
private final String a;
|
|
private final String b;
|
|
private final String c;
|
|
private final String d;
|
|
private final String e;
|
|
private final String f;
|
|
private final String g;
|
|
|
|
private FirebaseOptions(String str, String str2, String str3, String str4, String str5, String str6, String str7) {
|
|
Preconditions.b(!Strings.a(str), "ApplicationId must be set.");
|
|
this.b = str;
|
|
this.a = str2;
|
|
this.c = str3;
|
|
this.d = str4;
|
|
this.e = str5;
|
|
this.f = str6;
|
|
this.g = str7;
|
|
}
|
|
|
|
public static FirebaseOptions a(Context context) {
|
|
StringResourceValueReader stringResourceValueReader = new StringResourceValueReader(context);
|
|
String a = stringResourceValueReader.a("google_app_id");
|
|
if (TextUtils.isEmpty(a)) {
|
|
return null;
|
|
}
|
|
return new FirebaseOptions(a, stringResourceValueReader.a("google_api_key"), stringResourceValueReader.a("firebase_database_url"), stringResourceValueReader.a("ga_trackingId"), stringResourceValueReader.a("gcm_defaultSenderId"), stringResourceValueReader.a("google_storage_bucket"), stringResourceValueReader.a("project_id"));
|
|
}
|
|
|
|
public final String b() {
|
|
return this.e;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (!(obj instanceof FirebaseOptions)) {
|
|
return false;
|
|
}
|
|
FirebaseOptions firebaseOptions = (FirebaseOptions) obj;
|
|
return Objects.a(this.b, firebaseOptions.b) && Objects.a(this.a, firebaseOptions.a) && Objects.a(this.c, firebaseOptions.c) && Objects.a(this.d, firebaseOptions.d) && Objects.a(this.e, firebaseOptions.e) && Objects.a(this.f, firebaseOptions.f) && Objects.a(this.g, firebaseOptions.g);
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return Objects.a(this.b, this.a, this.c, this.d, this.e, this.f, this.g);
|
|
}
|
|
|
|
public final String toString() {
|
|
Objects.ToStringHelper a = Objects.a(this);
|
|
a.a("applicationId", this.b);
|
|
a.a("apiKey", this.a);
|
|
a.a("databaseUrl", this.c);
|
|
a.a("gcmSenderId", this.e);
|
|
a.a("storageBucket", this.f);
|
|
a.a("projectId", this.g);
|
|
return a.toString();
|
|
}
|
|
|
|
public final String a() {
|
|
return this.b;
|
|
}
|
|
}
|