Skip to content

Conversation

@lrockreal
Copy link

Closes #213

Adds environment variables for Google Play credentials: APKEEP_GOOGLE_EMAIL, APKEEP_GOOGLE_OAUTH_TOKEN and APKEEP_GOOGLE_AAS_TOKEN.

Implementation details:

  • Credential loading priority goes CLI args -> env vars -> config file -> prompt
  • AAS token takes precedence over OAuth token if both are provided
  • OAuth env var requires explicit provider selection
  • Config file now always checked for email/AAS token regardless of selected provider

@lrockreal lrockreal changed the title Allow passing google play credentials as environment variables Environment variables for Google Play credentials Aug 2, 2025
@Hainish
Copy link
Member

Hainish commented Oct 30, 2025

I'm curious: why move the config file check up to the broader scope? It is only needed when download_source is DownloadSource::GooglePlay and we are not listing versions (since Google Play doesn't list versions). Moving it to this broader scope seems to add unnecessary logic and filesystem reads when they are not needed for other download sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass Google Play credentials as environment variables

2 participants