The domain layer is dependent on the repository layer, how do you fix this? [closed] - android

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 days ago.
Improve this question
I am reading the code in a github app by google called "in android now", which demonstrates the clean architecture. There is this piece of code in the domain layer:
class GetFollowableTopicsUseCase #Inject constructor(
private val topicsRepository: TopicsRepository,
private val userDataRepository: UserDataRepository,
)
as you can see the UseCase depends on two repositories and this, as far as I know, should be the reverse, i.e the repository should depend on the domain layer.
Is this OK? How should you fix this?
Thank you for reading.

Related

Next step to Mobile Application developer [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 hours ago.
Improve this question
I want to become an Mobile Application developer and i had just finished a beginner course on Android dev using Kotlin.Can any one suggest me what should be my next step towards my goal.What topic should i learn next?
Should it be Flutter,Jetpack,Firebase,Retrofit,React Nativ etc.
I need mentorship!
Roadmap to Mobile Application Developer
You should learn these:
DataBinding
Coroutine
LiveData and Flow
or these:
Navigation
Room
I think it's important to you .

Best State Management Technique in Flutter? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
As there are many techs to achieve SM in Flutter....
Which will be best as a intermediate while developing a real world app??
As for starter try to learn Provider, it's simple. No need in learning another packages. Currently, I have 2 projects based only on Provider.
It's depend upon you and your requirements. You have to maintain the state based in your scenario. All the package you mentioned, used different different approached for state management.

What is the best architecture with Firebase, android and backend? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
What is the best architecture?
I have to use Firebase, Mobile (android / ios) and Web(angular). I would like to build an API so that services are consumed from mobile and web, but we have not Firebase backend. Any ideas?
For your case, if you want to avoid tightly coupled code, then I suggest you to see "Clean Architecture" by Robert Cecil Martin.
Fernando Cejas has written a nice article about it and used in conjunction with MVP to separate Presentation from Business Logic. You can refer to his article,link given:
Architecting Android…The clean way?
If it seems more complicated and your code base is small, you can still use MVC to meet your requirement.
Hope that helps.

UML Class Diagram Android [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
i want to make a Class Diagram from my Android app but I've never worked with UML in android so i have some stupid question.
Should I include all activities and classes or only class like DB_manage, preferences, etc. ?
Thanks in advance.
Activity,Fragnment, etc, it is just a system ui containers not related to your logic. You should include entities such as MVP (MVVM) interfaces, implemented by activity, fragment because it show your logic and when UI is supposed to do. Placing everything in activity is a bad practice)

Android documentation [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I want to do a documentation for an Android application. There's no problem with the java files but what about the xml-s? I think they are needed to understand some of the functionalities the application provides.
What is the proper way to visualize the xml files in the documentation or is it necessary to do it?
Only the layout files need some explanation . The rest are pretty much self explanatory. You can probably use XML comments to explain a few things. You don't really need to document an XML file as its not exactly an API.

Categories

Resources