Files
rr3-apk/decompiled/sources/com/google/firebase/FirebaseOptions.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

116 lines
4.5 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;
/* loaded from: classes3.dex */
public final class FirebaseOptions {
public final String apiKey;
public final String applicationId;
public final String databaseUrl;
public final String gaTrackingId;
public final String gcmSenderId;
public final String projectId;
public final String storageBucket;
public String getApiKey() {
return this.apiKey;
}
public String getApplicationId() {
return this.applicationId;
}
public String getGcmSenderId() {
return this.gcmSenderId;
}
public String getProjectId() {
return this.projectId;
}
public static final class Builder {
public String apiKey;
public String applicationId;
public String databaseUrl;
public String gaTrackingId;
public String gcmSenderId;
public String projectId;
public String storageBucket;
public Builder setDatabaseUrl(String str) {
this.databaseUrl = str;
return this;
}
public Builder setGcmSenderId(String str) {
this.gcmSenderId = str;
return this;
}
public Builder setProjectId(String str) {
this.projectId = str;
return this;
}
public Builder setStorageBucket(String str) {
this.storageBucket = str;
return this;
}
public Builder setApiKey(String str) {
this.apiKey = Preconditions.checkNotEmpty(str, "ApiKey must be set.");
return this;
}
public Builder setApplicationId(String str) {
this.applicationId = Preconditions.checkNotEmpty(str, "ApplicationId must be set.");
return this;
}
public FirebaseOptions build() {
return new FirebaseOptions(this.applicationId, this.apiKey, this.databaseUrl, this.gaTrackingId, this.gcmSenderId, this.storageBucket, this.projectId);
}
}
public FirebaseOptions(String str, String str2, String str3, String str4, String str5, String str6, String str7) {
Preconditions.checkState(!Strings.isEmptyOrWhitespace(str), "ApplicationId must be set.");
this.applicationId = str;
this.apiKey = str2;
this.databaseUrl = str3;
this.gaTrackingId = str4;
this.gcmSenderId = str5;
this.storageBucket = str6;
this.projectId = str7;
}
public static FirebaseOptions fromResource(Context context) {
StringResourceValueReader stringResourceValueReader = new StringResourceValueReader(context);
String string = stringResourceValueReader.getString("google_app_id");
if (TextUtils.isEmpty(string)) {
return null;
}
return new FirebaseOptions(string, stringResourceValueReader.getString("google_api_key"), stringResourceValueReader.getString("firebase_database_url"), stringResourceValueReader.getString("ga_trackingId"), stringResourceValueReader.getString("gcm_defaultSenderId"), stringResourceValueReader.getString("google_storage_bucket"), stringResourceValueReader.getString("project_id"));
}
public boolean equals(Object obj) {
if (!(obj instanceof FirebaseOptions)) {
return false;
}
FirebaseOptions firebaseOptions = (FirebaseOptions) obj;
return Objects.equal(this.applicationId, firebaseOptions.applicationId) && Objects.equal(this.apiKey, firebaseOptions.apiKey) && Objects.equal(this.databaseUrl, firebaseOptions.databaseUrl) && Objects.equal(this.gaTrackingId, firebaseOptions.gaTrackingId) && Objects.equal(this.gcmSenderId, firebaseOptions.gcmSenderId) && Objects.equal(this.storageBucket, firebaseOptions.storageBucket) && Objects.equal(this.projectId, firebaseOptions.projectId);
}
public int hashCode() {
return Objects.hashCode(this.applicationId, this.apiKey, this.databaseUrl, this.gaTrackingId, this.gcmSenderId, this.storageBucket, this.projectId);
}
public String toString() {
return Objects.toStringHelper(this).add("applicationId", this.applicationId).add("apiKey", this.apiKey).add("databaseUrl", this.databaseUrl).add("gcmSenderId", this.gcmSenderId).add("storageBucket", this.storageBucket).add("projectId", this.projectId).toString();
}
}