Normal Apk runs perfectly fine but when I select "Apk from app bundle". The app crashed when I tried to log in. When I reopen the app it signs me in but without creating a necessary node in firebase's real-time database.
When I try to "sign in with google" in my project it brings me back to login page but somehow it adds my email address in firebase auth and creates a node in fireabse relatime database
it only logs this error
2022-07-28 15:11:48.505 4713-4713/com.example.simplemoneytracking A/libc: fdsan: attempted to close file descriptor 98, expected to be unowned, actually owned by FILE* 0x75f14a80c0
2022-07-28 15:11:48.505 4713-4713/com.example.simplemoneytracking A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 4713 (lemoneytracking), pid 4713 (lemoneytracking)
When I remove the app from the background and clear the cache and reopen the app it loads the app with my gmail photo and name but it does not create a necessary node in the database and doesn't allow me to create one from the app. But I can write other data to database (like adding expenses and other stuff)
Things I have tried to make firebase work in release -> All 3 SHA-1 keys were added to the firebase project setting and .json file is up to date -> configured my proGuard.pro file as below -> also tried minifyEnabled false but nothing happend
My ProGuard File
-keepattributes Signature
-keepclassmembers class com.example.mypackage.model.** {
*;
}
-keep class com.firebase.** { *; }
App level build.gradle
buildTypes {
release {
debuggable false
minifyEnabled true
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}