firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

Request to modify databaseUrl optional in firebase-app ios module

Open pistolcaffe opened this issue 1 year ago • 1 comments

https://github.com/GitLiveApp/firebase-kotlin-sdk/blob/master/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt

actual class FirebaseApp internal constructor(val ios: FIRApp) {
    actual val name: String
        get() = ios.name
    actual val options: FirebaseOptions
        get() = ios.options.run { FirebaseOptions(bundleID, APIKey!!, databaseURL!!, trackingID, storageBucket, projectID) }

    actual fun delete() { }
}

In the firebase-app ios module, even though databaseUrl is nullable when creating FirebaseOption There are situations where an !! operator causes force close. I know that databaseUrl is a value used when using Realtime Database, but it must be treated as an optional value.

pistolcaffe avatar May 30 '23 07:05 pistolcaffe