Exemplos de utilização do Firebase no Android
Para assinar o apk defina as variaveis de ambiente:
FIREBASELABPWD - Senha da Key
KSTOREPATH" - Caminho do Keystore
KSTOREPWD - Senha do Keystore
E utilize o comando abaixo para gerar o APK assinado:
./gradlew assembleRelease
http://developer.android.com/intl/pt-br/tools/publishing/app-signing.html
https://www.firebase.com/docs/android/quickstart.html
https://www.firebase.com/docs/android/guide/login/google.html