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

I used R8 android, it do google sign-in not working. #18

Open
thanhhoai162963 opened this issue Apr 11, 2024 · 3 comments
Open

I used R8 android, it do google sign-in not working. #18

thanhhoai162963 opened this issue Apr 11, 2024 · 3 comments

Comments

@thanhhoai162963
Copy link

I used R8 android, it do google sign-in not working.
I added keep but not working.

-keep public interface com.mmk.kmpauth.google.GoogleAuthProvider { *; }
-dontwarn com.mmk.kmpauth.google.GoogleAuthProvider.**
-keep class com.mmk.kmpauth.google.GoogleAuthProvider$Companion
-keep class com.mmk.kmpauth.google.GoogleAuthUiProviderImpl
-keep class com.mmk.kmpauth.core.di.KMPKoinComponent
-keep class com.mmk.kmpauth.google.GoogleAuthProvider  { *; }
@mirzemehdi
Copy link
Owner

@thanhhoai162963 Could you please add error log, what happens when try it with R8 enabled?

@mirzemehdi
Copy link
Owner

@thanhhoai162963

https://developer.android.com/training/sign-in/passkeys#proguard

From official documentation: "In your module's proguard-rules.pro file, add the following directives:"

-if class androidx.credentials.CredentialManager
-keep class androidx.credentials.playservices.** {
  *;
}

@mirzemehdi
Copy link
Owner

Also please check this proguard rules as well

googlesamples/google-signin-unity#159 (comment)
googlesamples/google-signin-unity#144 (comment)

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

2 participants