codemagic-ci-cd / cli-tools

Various utilities to managing Android and iOS app builds, code signing, and deployment.
https://codemagic.io/start/
GNU General Public License v3.0
243 stars 42 forks source link

Firebase app distribution get latest build version is not working #321

Closed Buddybetadmin closed 1 year ago

Buddybetadmin commented 1 year ago

We are trying to use the latest cli-tools firebase-app-distribution utility to fetch the latest build number from firebase using your documentations on codemagic website as well as github.

$LATEST_BUILD_VERSION_ANDROID=$(firebase-app-distribution get-latest-build-version -p $FIREBASE_PROJECT_ID -a $Android_Firebase_App_ID_QA)

but we keep getting this weird error: Client error. name: firebaseappdistribution version: v1

It seems like there is something wrong with the utility. Or we doing something wrong?

priitlatt commented 1 year ago

Hi @Buddybetadmin! Thanks for bringing this up. The error you mentioned originates from too old Google API client library that the tools were using. This is fixed with version 0.40.2.