what-the-bank/sources/com/google/firebase/abt/component/AbtComponent.java

36 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.abt.component;
import android.content.Context;
import com.google.firebase.abt.FirebaseABTesting;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes2.dex */
public class AbtComponent {
private final Map<String, FirebaseABTesting> abtOriginInstances = new HashMap();
private final AnalyticsConnector analyticsConnector;
private final Context appContext;
/* JADX INFO: Access modifiers changed from: protected */
public AbtComponent(Context context, AnalyticsConnector analyticsConnector) {
this.appContext = context;
this.analyticsConnector = analyticsConnector;
}
public FirebaseABTesting get(String str) {
FirebaseABTesting firebaseABTesting;
synchronized (this) {
if (!this.abtOriginInstances.containsKey(str)) {
this.abtOriginInstances.put(str, createAbtInstance(str));
}
firebaseABTesting = this.abtOriginInstances.get(str);
}
return firebaseABTesting;
}
protected FirebaseABTesting createAbtInstance(String str) {
return new FirebaseABTesting(this.appContext, this.analyticsConnector, str);
}
}