-
Notifications
You must be signed in to change notification settings - Fork 33
[MOB-5934] set base endpoint based on config #549
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
[MOB-5934] set base endpoint based on config #549
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## eudc-updates #549 +/- ##
===============================================
Coverage ? 44.12%
===============================================
Files ? 68
Lines ? 3973
Branches ? 461
===============================================
Hits ? 1753
Misses ? 2013
Partials ? 207 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Ayyanchira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice!
| IterableLogger.v(TAG, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"); | ||
| String baseUrl = (iterableApiRequest.baseUrl != null && !iterableApiRequest.baseUrl.isEmpty()) ? iterableApiRequest.baseUrl : | ||
| ITERABLE_BASE_URL; | ||
| String baseUrl = getBaseUrl(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good simplification!
| */ | ||
| class IterableRequestTask extends AsyncTask<IterableApiRequest, Void, IterableApiResponse> { | ||
| static final String TAG = "IterableRequest"; | ||
| static final String ITERABLE_BASE_URL = "https://api.iterable.com/api/"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
🔹 Jira Ticket(s) if any
✏️ Description
This pull request puts logic setting base url in a separate method and sets the base url based on the data region config value.