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

[WIP] added retrofit for edudashboard and outreach #331

Closed

Conversation

mistervaibhav
Copy link
Contributor

NOTE: Please review the pull request process before opening your first PR: https://github.com/WikiEducationFoundation/apps-android-wikiedudashboard/blob/master/CONTRIBUTING.md#pull-request-process

What this PR does

Fixes #274
This PR depicts the initial steps in an attempt to resolve the issue regarding fixed base URL.
I think the issue can be resolved by using multiple retrofit objects, each corresponding to education dashboard, outreach, and commons. This would also require separate classes for the respective APIs in the network directory.
@ujjwalagrawal17 kindly tell me if I am approaching this the right way and how may I proceed further.
Thanks.

@ujjwalagrawal17
Copy link
Member

Hi i think this way we will be able to solve the bug but this is not a good coding practice to do this.

Best way will be to use the same methods and modify the BaseUrl. I think Koin Scope API can help us achieve that.

I will also research a little more and get back.

@ujjwalagrawal17
Copy link
Member

I will not recommend to proceed with this method for now.

@mistervaibhav
Copy link
Contributor Author

I will not recommend to proceed with this method for now.

Okay @ujjwalagrawal17 .
I think this page here : InsertKoinIO/koin#328 is quite a piece of help which we need.

@mistervaibhav mistervaibhav changed the title added retrofit for edudashboard and outreach [WIP] added retrofit for edudashboard and outreach Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants