New to this field Can anyone help me with it?
I've tried storing it in build.gradle file,
buildConfigField "String", "secretKey", "\"$key\"" //$key contains key
but got an alert from play console after publishing it.
Security alert
Your app contains unsafe cryptographic encryption patterns.