Android-CleanArchitecture-Kotlin icon indicating copy to clipboard operation
Android-CleanArchitecture-Kotlin copied to clipboard

This is a movies sample app in Kotlin, which is part of a serie of blog posts I have written about architecting android application using different approaches.

Results 77 Android-CleanArchitecture-Kotlin issues
Sort by recently updated
recently updated
newest added

I proposed this question originally on Twitter to @android10 and he was right that an issue is better. I implemented similar architectures in apps but frequently wondered what is the...

Hey all, I've seen [entities](https://github.com/android10/Android-CleanArchitecture-Kotlin/blob/master/app/src/main/kotlin/com/fernandocejas/sample/features/movies/MovieEntity.kt) and [repositories](https://github.com/android10/Android-CleanArchitecture-Kotlin/blob/master/app/src/main/kotlin/com/fernandocejas/sample/features/movies/MoviesRepository.kt) defined inside the feature, and I thought at first that it is not ideal. Why? Because it will be used in other modules...

question
discussion

Should I just create an interface for the remote api then just process each api on its own class? ``` GetUserRest.kt class GetUserRest : RemoteSource { fun process(): Data {}...

Process: com.fernandocejas.sample.dev.debug, PID: 8024 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fernandocejas.sample.dev.debug/com.fernandocejas.sample.features.movies.MoviesActivity}: java.lang.RuntimeException: Cannot create an instance of class com.fernandocejas.sample.features.movies.MoviesViewModel at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at...

How about having a suspending version of the `fold` operator? Something like(please excuse the name): ``` suspend fun foldSuspend(fnL: suspend (L) -> Any, fnR: suspend (R) -> Any): Any =...

I guess no validation logic is provided in this sample. Where is the best place to write validation logic in clean architecture? in Views, ViewModels, Use Cases, Models or Data...

Hello, This project was such an immense Clean Architecture learning tool for me. I'd like to ask what would be a way of returning LiveData from a use case, for...

In this sample there are at least three sets of **Entites**: Data layer entities (mapped to REST api or database: ```MoveEntity```), Domain layer entities (```Movie```) and view layer entites (```MovieView```)....

I am trying to apply the architecture to ours legacy project, and I've got some difficullties with UseCases variations. 1. How to implement completable UseCase without return value? 2. How...

question
discussion

@android10 I've used this sample for the base setup of my project finding it very usefull. can you please help me our on[ this stackoverflow question ](https://stackoverflow.com/questions/61489261/retrofit-interceptor-on-different-module-in-feature-based-clean-architecture-and)