Skip to content

Commit f5845b2

Browse files
authored
App Check as a heartbeat Consumer since backend works now (#3520)
* declare app check as heartbeat consumer since app check backend is now integrated * fix tests
1 parent b9fba82 commit f5845b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

appcheck/firebase-appcheck/src/main/java/com/google/firebase/appcheck/FirebaseAppCheckRegistrar.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import com.google.firebase.components.Component;
2222
import com.google.firebase.components.ComponentRegistrar;
2323
import com.google.firebase.components.Dependency;
24+
import com.google.firebase.heartbeatinfo.HeartBeatConsumerComponent;
2425
import com.google.firebase.heartbeatinfo.HeartBeatController;
2526
import com.google.firebase.platforminfo.LibraryVersionComponent;
2627
import java.util.Arrays;
@@ -48,6 +49,7 @@ public List<Component<?>> getComponents() {
4849
container.getProvider(HeartBeatController.class)))
4950
.alwaysEager()
5051
.build(),
52+
HeartBeatConsumerComponent.create(),
5153
LibraryVersionComponent.create("fire-app-check", BuildConfig.VERSION_NAME));
5254
}
5355
}

appcheck/firebase-appcheck/src/test/java/com/google/firebase/appcheck/FirebaseAppCheckRegistrarTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void testGetComponents() {
3434
FirebaseAppCheckRegistrar firebaseAppCheckRegistrar = new FirebaseAppCheckRegistrar();
3535
List<Component<?>> components = firebaseAppCheckRegistrar.getComponents();
3636
assertThat(components).isNotEmpty();
37-
assertThat(components).hasSize(2);
37+
assertThat(components).hasSize(3);
3838
Component<?> firebaseAppCheckComponent = components.get(0);
3939
assertThat(firebaseAppCheckComponent.getDependencies())
4040
.containsExactly(

0 commit comments

Comments
 (0)