Code Monkey home page Code Monkey logo

contributer's People

Contributors

ivianuu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

contributer's Issues

Latest Dagger supported?

Hey, could someone confirm the library is playing nicely with latest Dagger? As of now - 2.21.

Does this works as a subcomponent?

I'm currently using this and it works if I add the module to my ApplicationComponent. I would like to use it as a Subcomponent of a Activity module (another subcomponent). Right now it compiles but at runtime I get a Caused by: java.lang.IllegalArgumentException: No injector factory bound for Class<com.wakingup.android.home.HomeController>. I don't know if I'm making something wrong or this does not work as a third subcomponent.

My code almost like this:

@AndroidInjectorKeyRegistry(keys = [ControllerKey::class])
@Singleton
@Component(modules = [
    AndroidSupportInjectionModule::class,
    ConductorInjectionModule::class,
    ApplicationModule::class,
    ActivityBindingModule::class])
interface ApplicationComponent : AndroidInjector<WakingUp> {

    @Component.Builder
    interface Builder {
        @BindsInstance
        fun application(application: Application): Builder

        fun build(): ApplicationComponent
    }
}

@Module
abstract class ActivityBindingModule {
    @ActivityScoped
    @ContributesAndroidInjector(modules = [ControllerBindingModule::class])
    abstract fun bindHomeActivity(): HomeActivity
}

@Module
abstract class ControllerBindingModule {
    @ContributesAndroidInjector
    abstract fun bindHomeController(): HomeController

    @ContributesAndroidInjector
    abstract fun bindHomeTabController(): HomeTabController

    @ContributesAndroidInjector
    abstract fun bindPodcastsTabController(): PodcastsTabController
}

Fails with Dagger 2.17

Tested with the newly released Dagger version 2.17.

Dagger might have changed some implementation.

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.