My app makes use of Firebase Realtime Database and Sign-In with Google authentication. In the test version of the app, everything ran smoothly. However, the sign in fails in the release version. I tried running the signingReport to get a different SHA-1, but it's the same key. I have minifiyEnabled "false" in my release version as someone suggested proguard might be interfering with some files. I have re-downloaded the google-services.json file too.
EDIT 1
I don't intend to publish the app on Google Play store. I just want to share the .apk itself with the users, could that be causing problems?
I don't know which files or code do I attach for reference.