15
15
* limitations under the License.
16
16
*/
17
17
18
- import firebase from '@firebase/app' ;
19
- import {
20
- _FirebaseNamespace ,
21
- FirebaseService
22
- } from '@firebase/app-types/private' ;
18
+ // import firebase from '@firebase/app-exp';
19
+ import { registerVersion , _registerComponent } from '@firebase/app-exp' ;
20
+ import { _FirebaseService } from '@firebase/app-types-exp' ;
23
21
import { Component , ComponentType } from '@firebase/component' ;
24
22
import { FirebaseInstallations } from '@firebase/installations-types' ;
25
23
import {
@@ -35,10 +33,10 @@ import { FirebaseDependencies } from './interfaces/firebase-dependencies';
35
33
36
34
import { name , version } from '../package.json' ;
37
35
38
- export function registerInstallations ( instance : _FirebaseNamespace ) : void {
36
+ export function registerInstallations ( ) : void {
39
37
const installationsName = 'installations' ;
40
38
41
- instance . INTERNAL . registerComponent (
39
+ _registerComponent (
42
40
new Component (
43
41
installationsName ,
44
42
container => {
@@ -52,7 +50,7 @@ export function registerInstallations(instance: _FirebaseNamespace): void {
52
50
platformLoggerProvider
53
51
} ;
54
52
55
- const installations : FirebaseInstallations & FirebaseService = {
53
+ const installations : FirebaseInstallations & _FirebaseService = {
56
54
app,
57
55
getId : ( ) => getId ( dependencies ) ,
58
56
getToken : ( forceRefresh ?: boolean ) =>
@@ -67,10 +65,10 @@ export function registerInstallations(instance: _FirebaseNamespace): void {
67
65
)
68
66
) ;
69
67
70
- instance . registerVersion ( name , version ) ;
68
+ registerVersion ( name , version ) ;
71
69
}
72
70
73
- registerInstallations ( firebase as _FirebaseNamespace ) ;
71
+ registerInstallations ( ) ;
74
72
75
73
/**
76
74
* Define extension behavior of `registerInstallations`
0 commit comments