Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of adding composable module providing an interface? #1

Open
pselden opened this issue Feb 3, 2014 · 1 comment
Open

Example of adding composable module providing an interface? #1

pselden opened this issue Feb 3, 2014 · 1 comment

Comments

@pselden
Copy link

pselden commented Feb 3, 2014

I'd like to see an example of adding a composable module to another package which includes an interface. The idea is that I'd like to separate my modules into logical groups, so my "UtilitiesModule" would set up @provides for utilities related stuff. ApiModule for api related stuff, etc... but then It'd all compose itself into the main application module.

I'm trying to get it work here: https://github.com/pselden/android-gradle-dagger-tutorial/tree/add-composable-module

But I'm seeing this error:

com.frankdu.cool.things.Thingy could not be bound with key com.frankdu.cool.things.Thingy required by com.frankdu.cool.activity.SplashActivity for com.frankdu.cool.activity.ActivityScopeModule

Am I going about this the wrong way?

@frankdu
Copy link
Owner

frankdu commented Jun 10, 2014

@pselden I commented on your commit. It is how I set up the composable modules. I am inclined not to add such example to this simple tutorial, because it could complicated things too quickly for beginners. Please let me know if it works.

p.s. I just updated the tutorial codes.

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

No branches or pull requests

2 participants