Back to project page template-android.
The source code is released under:
MIT License
If you think the Android project template-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.org.application.module; /* w w w . ja v a 2 s . co m*/ import com.org.application.App; import com.org.application.mock.IFoo; import com.org.application.mock.MockFoo; import com.org.application.ui.activity.MainActivity; import dagger.Module; import dagger.Provides; /** * */ @Module( injects = {App.class, MainActivity.class}, overrides = true, library=true ) public class MockFooModule { private static final String TAG = MockFooModule.class.getSimpleName(); @Provides IFoo provideFoo(){ return new MockFoo(); } }