Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuthProvider android property is unaccessible in 2.0.0 #602

Closed
mr-kew opened this issue Aug 28, 2024 · 10 comments
Closed

OAuthProvider android property is unaccessible in 2.0.0 #602

mr-kew opened this issue Aug 28, 2024 · 10 comments

Comments

@mr-kew
Copy link
Contributor

mr-kew commented Aug 28, 2024

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'
}
@nbransby
Copy link
Member

@Reedyuk did we miss this one?

@Reedyuk
Copy link
Collaborator

Reedyuk commented Aug 28, 2024

wtf-monkey

@Reedyuk
Copy link
Collaborator

Reedyuk commented Aug 28, 2024

Looks to be here:

public val OAuthProvider.android: OAuthProvider get() = android

@Reedyuk
Copy link
Collaborator

Reedyuk commented Aug 28, 2024

I wonder if the import is not right?

import dev.gitlive.firebase.auth.OAuthProvider.android

@mr-kew
Copy link
Contributor Author

mr-kew commented Aug 28, 2024

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

@mr-kew
Copy link
Contributor Author

mr-kew commented Aug 28, 2024

@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
image

@Reedyuk
Copy link
Collaborator

Reedyuk commented Aug 29, 2024

I'm working on a fix for you

@Reedyuk
Copy link
Collaborator

Reedyuk commented Aug 29, 2024

#603

@mr-kew mr-kew closed this as completed Aug 30, 2024
@Reedyuk
Copy link
Collaborator

Reedyuk commented Sep 2, 2024

its in version 2.1.0

@mr-kew
Copy link
Contributor Author

mr-kew commented Sep 3, 2024

Thank you, I am already using 2.1.0 and it works like a charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants