@@ -138,26 +138,6 @@ public static FirebasePerformance getInstance() {
138
138
private FirebaseInstallationsApi firebaseInstallationsApi ;
139
139
private Provider <TransportFactory > transportFactoryProvider ;
140
140
141
- @ Inject
142
- FirebasePerformance (
143
- @ NonNull FirebaseApp firebaseApp ,
144
- @ NonNull Provider <RemoteConfigComponent > firebaseRemoteConfigProvider ,
145
- @ NonNull FirebaseInstallationsApi firebaseInstallationsApi ,
146
- @ NonNull Provider <TransportFactory > transportFactoryProvider ) {
147
- this (
148
- firebaseApp ,
149
- firebaseRemoteConfigProvider ,
150
- firebaseInstallationsApi ,
151
- transportFactoryProvider ,
152
- RemoteConfigManager .getInstance (),
153
- ConfigResolver .getInstance (),
154
- GaugeManager .getInstance ());
155
- this .firebaseApp = firebaseApp ;
156
- this .firebaseRemoteConfigProvider = firebaseRemoteConfigProvider ;
157
- this .firebaseInstallationsApi = firebaseInstallationsApi ;
158
- this .transportFactoryProvider = transportFactoryProvider ;
159
- }
160
-
161
141
/**
162
142
* Constructs the FirebasePerformance class and allows injecting dependencies.
163
143
*
@@ -173,6 +153,7 @@ public static FirebasePerformance getInstance() {
173
153
* @param gaugeManager The GaugeManager instance.
174
154
*/
175
155
@ VisibleForTesting
156
+ @ Inject
176
157
FirebasePerformance (
177
158
FirebaseApp firebaseApp ,
178
159
Provider <RemoteConfigComponent > firebaseRemoteConfigProvider ,
@@ -182,6 +163,11 @@ public static FirebasePerformance getInstance() {
182
163
ConfigResolver configResolver ,
183
164
GaugeManager gaugeManager ) {
184
165
166
+ this .firebaseApp = firebaseApp ;
167
+ this .firebaseRemoteConfigProvider = firebaseRemoteConfigProvider ;
168
+ this .firebaseInstallationsApi = firebaseInstallationsApi ;
169
+ this .transportFactoryProvider = transportFactoryProvider ;
170
+
185
171
if (firebaseApp == null ) {
186
172
this .mPerformanceCollectionForceEnabledState = false ;
187
173
this .configResolver = configResolver ;
0 commit comments