@@ -66,14 +66,14 @@ class FirebaseAppDistributionImpl implements FirebaseAppDistribution {
66
66
private final ApkUpdater apkUpdater ;
67
67
private final AabUpdater aabUpdater ;
68
68
private final SignInStorage signInStorage ;
69
- private final SequentialReference <AppDistributionReleaseInternal > cachedNewRelease ;
70
69
private final ReleaseIdentifier releaseIdentifier ;
71
70
private final ScreenshotTaker screenshotTaker ;
72
- @ Blocking private final Executor blockingExecutor ;
73
71
@ Lightweight private Executor lightweightExecutor ;
74
- private final FirebaseAppDistributionNotificationsManager notificationsManager ;
75
- private UpdateTaskCache updateIfNewReleaseAvailableTaskCache ;
72
+ @ Blocking private final Executor blockingExecutor ;
73
+ private final SequentialReference < AppDistributionReleaseInternal > cachedNewRelease ;
76
74
private TaskCache <AppDistributionRelease > checkForNewReleaseTaskCache ;
75
+ private UpdateTaskCache updateIfNewReleaseAvailableTaskCache ;
76
+ private final FirebaseAppDistributionNotificationsManager notificationsManager ;
77
77
private AlertDialog updateConfirmationDialog ;
78
78
private AlertDialog signInConfirmationDialog ;
79
79
@ Nullable private Activity dialogHostActivity = null ;
@@ -95,7 +95,7 @@ class FirebaseAppDistributionImpl implements FirebaseAppDistribution {
95
95
@ NonNull ReleaseIdentifier releaseIdentifier ,
96
96
@ NonNull ScreenshotTaker screenshotTaker ,
97
97
@ NonNull @ Lightweight Executor lightweightExecutor ,
98
- @ NonNull Executor blockingExecutor ) {
98
+ @ NonNull @ Blocking Executor blockingExecutor ) {
99
99
this .firebaseApp = firebaseApp ;
100
100
this .testerSignInManager = testerSignInManager ;
101
101
this .newReleaseFetcher = newReleaseFetcher ;
@@ -104,14 +104,14 @@ class FirebaseAppDistributionImpl implements FirebaseAppDistribution {
104
104
this .signInStorage = signInStorage ;
105
105
this .releaseIdentifier = releaseIdentifier ;
106
106
this .lifecycleNotifier = lifecycleNotifier ;
107
- this .cachedNewRelease = new SequentialReference <>(lightweightExecutor );
108
- this .lightweightExecutor = lightweightExecutor ;
109
107
this .screenshotTaker = screenshotTaker ;
108
+ this .lightweightExecutor = lightweightExecutor ;
110
109
this .blockingExecutor = blockingExecutor ;
110
+ this .cachedNewRelease = new SequentialReference <>(lightweightExecutor );
111
+ this .checkForNewReleaseTaskCache = new TaskCache <>(lightweightExecutor );
112
+ this .updateIfNewReleaseAvailableTaskCache = new UpdateTaskCache (lightweightExecutor );
111
113
this .notificationsManager =
112
114
new FirebaseAppDistributionNotificationsManager (firebaseApp .getApplicationContext ());
113
- this .updateIfNewReleaseAvailableTaskCache = new UpdateTaskCache (lightweightExecutor );
114
- this .checkForNewReleaseTaskCache = new TaskCache <>(lightweightExecutor );
115
115
lifecycleNotifier .addOnActivityDestroyedListener (this ::onActivityDestroyed );
116
116
lifecycleNotifier .addOnActivityPausedListener (this ::onActivityPaused );
117
117
lifecycleNotifier .addOnActivityResumedListener (this ::onActivityResumed );
0 commit comments