Giter Site home page Giter Site logo

farhandroid / androidcleanarchitecture Goto Github PK

View Code? Open in Web Editor NEW
319.0 7.0 66.0 8.95 MB

This is a project built with Love ❤️ and also with Clean architecture in Android .

Home Page: https://farhan-tanvir.medium.com/clean-architecture-in-android-jetpack-compose-paging-3-0-kotlin-mvvm-%E3%83%BCpart-2-8d97cee4dffe

Kotlin 100.00%
clean-architecture kotlin android mvvm jetpack-compose room mvvm-android livedata retrofit2 viewmodel

androidcleanarchitecture's Issues

error: [Dagger/MissingBinding]

When it comes to run the app, ı get this issue

Here is the output

/Users/gulcekulahcioglu/AndroidStudioProjects/CleanArchMovie/app/build/generated/source/kapt/debug/com/deepwall/cleanarchmovie/CleanArchMovie_HiltComponents.java:126: error: [Dagger/MissingBinding] com.deepwall.domain.useCase.GetPopularMoviesUseCase cannot be provided without an @Inject constructor or an @Provides-annotated method.
public abstract static class SingletonC implements CleanArchMovie_GeneratedInjector,
^
com.deepwall.domain.useCase.GetPopularMoviesUseCase is injected at
com.deepwall.cleanarchmovie.presentation.screen.home.HomeViewModel(getPopularMoviesUseCase)
com.deepwall.cleanarchmovie.presentation.screen.home.HomeViewModel is injected at
com.deepwall.cleanarchmovie.presentation.screen.home.HomeViewModel_HiltModules.BindsModule.binds(vm)
@dagger.hilt.android.internal.lifecycle.HiltViewModelMap java.util.Map<java.lang.String,javax.inject.Provider<androidx.lifecycle.ViewModel>> is requested at
dagger.hilt.android.internal.lifecycle.HiltViewModelFactory.ViewModelFactoriesEntryPoint.getHiltViewModelMap() [com.deepwall.cleanarchmovie.CleanArchMovie_HiltComponents.SingletonC → com.deepwall.cleanarchmovie.CleanArchMovie_HiltComponents.ActivityRetainedC → com.deepwall.cleanarchmovie.CleanArchMovie_HiltComponents.ViewModelC]

Domain is not pure kotlin code

The domain class is using gson annotation. In clean architecture we write pure java/kotlin code in domain layer. The gson annotated class will remain in data layer and a mapper should be used to convert it from data layer to domain layer. Please correct me if I am wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.