Search in sources :

Example 1 with NetworkLayer

use of com.inceptai.dobby.NetworkLayer in project dobby-android by InceptAi.

the class ProdModule method providesNetworkLayer.

@Singleton
@Provides
public NetworkLayer providesNetworkLayer(DobbyApplication application, DobbyThreadpool threadpool, DobbyEventBus eventBus) {
    NetworkLayer networkLayer = new NetworkLayer(application.getApplicationContext(), threadpool, eventBus);
    application.getProdComponent().inject(networkLayer);
    networkLayer.initialize();
    return networkLayer;
}
Also used : NetworkLayer(com.inceptai.dobby.NetworkLayer) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

NetworkLayer (com.inceptai.dobby.NetworkLayer)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1