firebase-kotlin-sdk
firebase-kotlin-sdk copied to clipboard
OAuthProvider android property is unaccessible in 2.0.0
I can't access android property of OAuthProvider anymore, guess the #504 did break it.
import dev.gitlive.firebase.auth.OAuthProvider
import dev.gitlive.firebase.auth.android // Greyed out
fun test(provider: OAuthProvider) {
val androidProvider = provider.android // Error: Cannot access 'android': it is internal in 'OAuthProvider'
}
@Reedyuk did we miss this one?
Looks to be here: https://github.com/GitLiveApp/firebase-kotlin-sdk/blob/650ff89e15e5dae28afde4c22c65721374a5bb3c/firebase-auth/src/androidMain/kotlin/dev/gitlive/firebase/auth/credentials.kt#L55
I wonder if the import is not right?
import dev.gitlive.firebase.auth.OAuthProvider.android
I wonder if the import is not right?
import dev.gitlive.firebase.auth.OAuthProvider.android
It just says directly on the import:
Cannot import 'android', functions and properties can be imported only from packages or object
@Reedyuk The intellisense also seems to see it, but the import does not work for some reason. It almost feels like some kind of compiler bug
I'm working on a fix for you
https://github.com/GitLiveApp/firebase-kotlin-sdk/pull/603
its in version 2.1.0
Thank you, I am already using 2.1.0 and it works like a charm