Android Open Source - template-android Mock Foo Module






From Project

Back to project page template-android.

License

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.

Java Source Code

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();
    }
}




Java Source Code List

com.org.application.App.java
com.org.application.Modules.java
com.org.application.Modules.java
com.org.application.Modules.java
com.org.application.mock.Foo.java
com.org.application.mock.IFoo.java
com.org.application.mock.MockFoo.java
com.org.application.module.MockFooModule.java
com.org.application.module.ReleaseModule.java
com.org.application.ui.activity.MainActivity.java
com.org.application.util.Log.java