Skip to content

Commit 960ed56

Browse files
committed
Update registrar
1 parent d9331f8 commit 960ed56

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionRegistrar.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ public class FirebaseAppDistributionRegistrar implements ComponentRegistrar {
5757
.add(Dependency.requiredProvider(FirebaseInstallationsApi.class))
5858
.add(Dependency.required(blockingExecutor))
5959
.add(Dependency.required(lightweightExecutor))
60-
.factory(
61-
c ->
62-
buildFirebaseAppDistribution(
63-
c, c.get(blockingExecutor), c.get(lightweightExecutor)))
60+
.factory(c -> buildFirebaseAppDistribution(c, blockingExecutor, lightweightExecutor))
6461
// construct FirebaseAppDistribution instance on startup so we can register for
6562
// activity lifecycle callbacks before the API is called
6663
.alwaysEager()
@@ -69,8 +66,12 @@ public class FirebaseAppDistributionRegistrar implements ComponentRegistrar {
6966
}
7067

7168
private FirebaseAppDistribution buildFirebaseAppDistribution(
72-
ComponentContainer container, Executor blockingExecutor, Executor lightweightExecutor) {
69+
ComponentContainer container,
70+
Qualified<Executor> blockingExecutorType,
71+
Qualified<Executor> lightweightExecutorType) {
7372
FirebaseApp firebaseApp = container.get(FirebaseApp.class);
73+
Executor blockingExecutor = container.get(blockingExecutorType);
74+
Executor lightweightExecutor = container.get(lightweightExecutorType);
7475
Context context = firebaseApp.getApplicationContext();
7576
Provider<FirebaseInstallationsApi> firebaseInstallationsApiProvider =
7677
container.getProvider(FirebaseInstallationsApi.class);

0 commit comments

Comments
 (0)