36 lines
1.7 KiB
Java
36 lines
1.7 KiB
Java
package com.google.firebase.messaging;
|
|
|
|
import com.google.firebase.FirebaseApp;
|
|
import com.google.firebase.components.ComponentContainer;
|
|
import com.google.firebase.components.ComponentFactory;
|
|
import com.google.firebase.heartbeatinfo.HeartBeatInfo;
|
|
import com.google.firebase.iid.FirebaseInstanceId;
|
|
import com.google.firebase.installations.FirebaseInstallationsApi;
|
|
import com.google.firebase.messaging.FirebaseMessagingRegistrar;
|
|
import com.google.firebase.platforminfo.UserAgentPublisher;
|
|
import o.C0379FgY;
|
|
import o.C1332aAy;
|
|
import o.FsM;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final /* synthetic */ class zzn implements ComponentFactory {
|
|
static final ComponentFactory zza = new zzn();
|
|
|
|
@Override // com.google.firebase.components.ComponentFactory
|
|
public final Object create(ComponentContainer componentContainer) {
|
|
FirebaseApp firebaseApp = (FirebaseApp) componentContainer.get(FirebaseApp.class);
|
|
FirebaseInstanceId firebaseInstanceId = (FirebaseInstanceId) componentContainer.get(FirebaseInstanceId.class);
|
|
UserAgentPublisher userAgentPublisher = (UserAgentPublisher) componentContainer.get(UserAgentPublisher.class);
|
|
HeartBeatInfo heartBeatInfo = (HeartBeatInfo) componentContainer.get(HeartBeatInfo.class);
|
|
FirebaseInstallationsApi firebaseInstallationsApi = (FirebaseInstallationsApi) componentContainer.get(FirebaseInstallationsApi.class);
|
|
FsM fsM = (FsM) componentContainer.get(FsM.class);
|
|
if (fsM == null || !C0379FgY.b.contains(new C1332aAy("json"))) {
|
|
fsM = new FirebaseMessagingRegistrar.zzb();
|
|
}
|
|
return new FirebaseMessaging(firebaseApp, firebaseInstanceId, userAgentPublisher, heartBeatInfo, firebaseInstallationsApi, fsM);
|
|
}
|
|
|
|
private zzn() {
|
|
}
|
|
}
|