Skip to content

Authentication information

Zac Sweers edited this page Jun 25, 2018 · 2 revisions

Some services that CatchUp talks to require authentication. These are generally defined as gradle properties and then imported via the build system. You can place them (usually) in your home ~/.gradle/gradle.properties file or in the project gradle.properties file.

Full list of keys/tokens I define for a full build of CatchUp:

catchup_product_hunt_developer_token=

# GitHub token is a double usage for dev builds. Developer builds can log bug reports via the issue tracker API
# If you want to submit bug reports, you need to make sure the token below has those permissions.
# Otherwise just have a token that supports reading public repos.
# Please don't submit your own bug reports to the repo :D. If you're super serious about trying it, change the target repo to your own
catchup_github_developer_token=

catchup_dribbble_access_token=
catchup_smmry_api_key=
catchup_play_publisher_account=

# The path to a .jks signing key file
catchup_signing_location=

catchup_signing_alias=
catchup_signing_store_password=
catchup_signing_key_password=
catchup_bugsnag_key=

# Imgur is also a dual access token, and also not a service enabled by default. 
# In debug builds, screenshots in crash reports are (optionally) uploaded to imgur and posted with the issue.
# So if you want to do that, you need upload permission in your token. Otherwise just read is fine
catchup_imgur_access_token=

catchup_news_api_api_key=
catchup_unsplash_api_key=

Firebase stuff

Firebase/play services have a "Google services" gradle plugin that you can use to autoconfigure. It is hot garbage and I don't use it. Below appear to be a sort of bare minimum information to get firebase working via manually wiring these into resources. If you have your own google services json file, you should be able to match the names of these to the entries in it for values.

Debug

catchup.default_web_client_id.debug=
catchup.firebase_database_url.debug=
catchup.gcm_defaultSenderId.debug=
catchup.google_api_key.debug=
catchup.google_app_id.debug=
catchup.google_crash_reporting_api_key.debug=
catchup.google_storage_bucket.debug=
catchup.project_id.debug=

Prod

catchup.default_web_client_id=
catchup.firebase_database_url=
catchup.gcm_defaultSenderId=
catchup.google_api_key=
catchup.google_app_id=
catchup.google_crash_reporting_api_key=
catchup.google_storage_bucket=
catchup.project_id=
Clone this wiki locally