Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update configuration of example app #1871

Merged
merged 2 commits into from
Nov 25, 2019
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

  • Add logic to read configuration settings from local
    gradle.properties or environment variables and write out
    to AndroidManifest.xml at build time.
  • Update Settings to be a class that takes a Context
    to read metadata from AndroidManifest.xml.
    Retain constants in Settings to preserve existing
    functionality.
  • Update RetrofitFactory accordingly.

Motivation
Enable Espresso testing of the example app without
hardcoding config values by setting them in Travis
environment variables [0].

[0] https://docs.travis-ci.com/user/environment-variables/

Summary
- Add logic to read configuration settings from local
  `gradle.properties` or environment variables and write out
  to `AndroidManifest.xml` at build time.
- Update `Settings` to be a class that takes a `Context`
  to read metadata from `AndroidManifest.xml`.
  Retain constants in `Settings` to preserve existing
  functionality.
- Update `RetrofitFactory` accordingly.

Motivation
Enable Espresso testing of the example app without
hardcoding config values by setting them in Travis
environment variables [0].

[0] https://docs.travis-ci.com/user/environment-variables/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants