I am using firebase in my app, in debug apk (using emulator) everything works fine but when I built a release in google play and downloaded the app, data not loaded or showed in the app and I'm not able to add or delete anything in firebase firestore. I've added the release SHA1 fingerprint in firebase as in this link SHA1 fingerprint but without downloading google-services.json again, I also find similar question here and tried to set ProGuard configuration as in this question ProGuard configuration but I couldn't find proguard-rules.pro file in my app so I just added this to build.gradle(app)
buildTypes {
debug {
minifyEnabled true // shrink
useProguard false // don't obfuscate
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
signingConfig signingConfigs.release
minifyEnabled true // shrink
useProguard true // obfuscate
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}