gives: PlatformException(sign_in_failed,com.google.android.gms.common.api.ApiException: 10: , null)
I have a flutter app that has ci/cd & Google sign in which fails because of SHA1
change Because of the change of the machine that builds the apk in debug mode so how to make the google sign in work on the ci/cd apk or How to add the ci/cd machine SHA1
to firebase to. make the google sign in work?
2
Answers
generate keystore like this answer here
open the keystore with keystore explorer here
copy SHA1 & add it to firebase android app
add the keystore to code magic
You should create a separate signing key for the debug build type or copy the existing one which was created by your development machine.
Copy the debug signing key into your project folder and configure it in gradle.
Example: Create a signing key namend
debug.keystore
with the aliasandroiddebugkey
and passwordandroid
. Then create a folder namedkeystore
in your android project directory and copy the keystore into it. You can assign a debug signing key in the app module’sbuild.gradle
file like this:This way all developers and the CI/CD systems use the same debug signign key.