38 lines
1.8 KiB
Java
38 lines
1.8 KiB
Java
package com.google.firebase.iid;
|
|
|
|
import com.google.firebase.FirebaseApp;
|
|
import com.google.firebase.components.Component;
|
|
import com.google.firebase.components.ComponentRegistrar;
|
|
import com.google.firebase.components.Dependency;
|
|
import com.google.firebase.events.Subscriber;
|
|
import com.google.firebase.heartbeatinfo.HeartBeatInfo;
|
|
import com.google.firebase.iid.internal.FirebaseInstanceIdInternal;
|
|
import com.google.firebase.installations.FirebaseInstallationsApi;
|
|
import com.google.firebase.platforminfo.LibraryVersionComponent;
|
|
import com.google.firebase.platforminfo.UserAgentPublisher;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class Registrar implements ComponentRegistrar {
|
|
|
|
/* loaded from: classes2.dex */
|
|
static final class zza implements FirebaseInstanceIdInternal {
|
|
private final FirebaseInstanceId zza;
|
|
|
|
public zza(FirebaseInstanceId firebaseInstanceId) {
|
|
this.zza = firebaseInstanceId;
|
|
}
|
|
|
|
@Override // com.google.firebase.iid.internal.FirebaseInstanceIdInternal
|
|
public final String getId() {
|
|
return this.zza.getId();
|
|
}
|
|
}
|
|
|
|
@Override // com.google.firebase.components.ComponentRegistrar
|
|
public final List<Component<?>> getComponents() {
|
|
return Arrays.asList(Component.builder(FirebaseInstanceId.class).add(Dependency.required(FirebaseApp.class)).add(Dependency.required(Subscriber.class)).add(Dependency.required(UserAgentPublisher.class)).add(Dependency.required(HeartBeatInfo.class)).add(Dependency.required(FirebaseInstallationsApi.class)).factory(zzaq.zza).alwaysEager().build(), Component.builder(FirebaseInstanceIdInternal.class).add(Dependency.required(FirebaseInstanceId.class)).factory(zzar.zza).build(), LibraryVersionComponent.create("fire-iid", "20.2.0"));
|
|
}
|
|
}
|