File tree Expand file tree Collapse file tree 6 files changed +28
-16
lines changed
firebase-auth/src/iosMain/kotlin/dev/gitlive/firebase/auth
firebase-config/src/iosMain/kotlin/dev/gitlive/firebase/remoteconfig
firebase-database/src/iosMain/kotlin/dev/gitlive/firebase/database
firebase-firestore/src/iosMain/kotlin/dev/gitlive/firebase/firestore
firebase-functions/src/iosMain/kotlin/dev/gitlive/firebase/functions
firebase-installations/src/iosMain/kotlin/dev/gitlive/firebase/installations Expand file tree Collapse file tree 6 files changed +28
-16
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ import platform.Foundation.*
19
19
actual val Firebase .auth
20
20
get() = FirebaseAuth (FIRAuth .auth())
21
21
22
- actual fun Firebase.auth (app : FirebaseApp ): FirebaseAuth = FirebaseAuth (FIRAuth .authWithApp(app.ios))
22
+ actual fun Firebase.auth (app : FirebaseApp ): FirebaseAuth = FirebaseAuth (
23
+ FIRAuth .authWithApp(app.ios as objcnames.classes.FIRApp )
24
+ )
23
25
24
26
actual class FirebaseAuth internal constructor(val ios : FIRAuth ) {
25
27
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ import platform.Foundation.timeIntervalSince1970
19
19
actual val Firebase .remoteConfig: FirebaseRemoteConfig
20
20
get() = FirebaseRemoteConfig (FIRRemoteConfig .remoteConfig())
21
21
22
- actual fun Firebase.remoteConfig (app : FirebaseApp ): FirebaseRemoteConfig =
23
- FirebaseRemoteConfig (FIRRemoteConfig .remoteConfigWithApp(Firebase .app.ios))
22
+ actual fun Firebase.remoteConfig (app : FirebaseApp ): FirebaseRemoteConfig = FirebaseRemoteConfig (
23
+ FIRRemoteConfig .remoteConfigWithApp(Firebase .app.ios as objcnames.classes.FIRApp )
24
+ )
24
25
25
26
actual class FirebaseRemoteConfig internal constructor(val ios : FIRRemoteConfig ) {
26
27
actual val all: Map <String , FirebaseRemoteConfigValue >
Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ actual val Firebase.database
33
33
actual fun Firebase.database (url : String ) =
34
34
FirebaseDatabase (FIRDatabase .databaseWithURL(url))
35
35
36
- actual fun Firebase.database (app : FirebaseApp ): FirebaseDatabase =
37
- FirebaseDatabase (FIRDatabase .databaseForApp(app.ios))
36
+ actual fun Firebase.database (app : FirebaseApp ): FirebaseDatabase = FirebaseDatabase (
37
+ FIRDatabase .databaseForApp(app.ios as objcnames.classes.FIRApp )
38
+ )
38
39
39
- actual fun Firebase.database (app : FirebaseApp , url : String ): FirebaseDatabase =
40
- FirebaseDatabase (FIRDatabase .databaseForApp(app.ios, url))
40
+ actual fun Firebase.database (app : FirebaseApp , url : String ): FirebaseDatabase = FirebaseDatabase (
41
+ FIRDatabase .databaseForApp(app.ios as objcnames.classes.FIRApp , url)
42
+ )
41
43
42
44
actual class FirebaseDatabase internal constructor(val ios : FIRDatabase ) {
43
45
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ import platform.Foundation.NSNull
21
21
actual val Firebase .firestore get() =
22
22
FirebaseFirestore (FIRFirestore .firestore())
23
23
24
- actual fun Firebase.firestore (app : FirebaseApp ): FirebaseFirestore =
25
- FirebaseFirestore (FIRFirestore .firestoreForApp(app.ios))
24
+ actual fun Firebase.firestore (app : FirebaseApp ): FirebaseFirestore = FirebaseFirestore (
25
+ FIRFirestore .firestoreForApp(app.ios as objcnames.classes.FIRApp )
26
+ )
26
27
27
28
@Suppress(" UNCHECKED_CAST" )
28
29
actual class FirebaseFirestore (val ios : FIRFirestore ) {
Original file line number Diff line number Diff line change @@ -21,11 +21,16 @@ actual val Firebase.functions
21
21
actual fun Firebase.functions (region : String ) =
22
22
FirebaseFunctions (FIRFunctions .functionsForRegion(region))
23
23
24
- actual fun Firebase.functions (app : FirebaseApp ): FirebaseFunctions =
25
- FirebaseFunctions (FIRFunctions .functionsForApp(app.ios))
26
-
27
- actual fun Firebase.functions (app : FirebaseApp , region : String ): FirebaseFunctions =
28
- FirebaseFunctions (FIRFunctions .functionsForApp(app.ios, region = region))
24
+ actual fun Firebase.functions (app : FirebaseApp ): FirebaseFunctions = FirebaseFunctions (
25
+ FIRFunctions .functionsForApp(app.ios as objcnames.classes.FIRApp )
26
+ )
27
+
28
+ actual fun Firebase.functions (
29
+ app : FirebaseApp ,
30
+ region : String ,
31
+ ): FirebaseFunctions = FirebaseFunctions (
32
+ FIRFunctions .functionsForApp(app.ios as objcnames.classes.FIRApp , region = region)
33
+ )
29
34
30
35
actual class FirebaseFunctions internal constructor(val ios : FIRFunctions ) {
31
36
actual fun httpsCallable (name : String , timeout : Long? ) =
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ import platform.Foundation.*
10
10
actual val Firebase .installations
11
11
get() = FirebaseInstallations (FIRInstallations .installations())
12
12
13
- actual fun Firebase.installations (app : FirebaseApp ): FirebaseInstallations =
14
- FirebaseInstallations (FIRInstallations .installationsWithApp(app.ios))
13
+ actual fun Firebase.installations (app : FirebaseApp ): FirebaseInstallations = FirebaseInstallations (
14
+ FIRInstallations .installationsWithApp(app.ios as objcnames.classes.FIRApp )
15
+ )
15
16
16
17
actual class FirebaseInstallations internal constructor(val ios : FIRInstallations ) {
17
18
You can’t perform that action at this time.
0 commit comments