Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Dagger2 Example? #834

Open
zabi90 opened this issue Apr 23, 2020 · 1 comment
Open

Dagger2 Example? #834

zabi90 opened this issue Apr 23, 2020 · 1 comment

Comments

@zabi90
Copy link

zabi90 commented Apr 23, 2020

Can any one help me how to use Dagger in Xamarin Android? When i add this attribute on my component interface it's give me following error. Is there any docs available for Xamarin Android

  [JavaX.Inject.Singleton]
    [Dagger.Component( Modules = new Class[] { Class.FromType(typeof(AppModule))})]
    interface  IApplicationComponent
    {

        public abstract void Inject(AndroidApp androidApp);
    }

Modules' is not a valid named attribute argument because it is not a valid attribute parameter type
Thanks

@rsgrey
Copy link

rsgrey commented May 5, 2020

Why to use Dagger? Use autofac

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants