package com.bookcrossing.mobile.modules;

import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.storage.FirebaseStorage;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/** (c) 2016 Andrey Mukamolow aka fobo66 <fobo66@protonmail.com>
 * Created by fobo66 on 15.11.2016.
 */

@Module
public class ApiModule {

    @Provides
    @Singleton
    public FirebaseDatabase provideDatabase() {
        return FirebaseDatabase.getInstance();
    }

    @Provides
    @Singleton
    public FirebaseStorage provideStorage() {
        return FirebaseStorage.getInstance();
    }

    @Provides
    @Singleton
    public FirebaseAuth provideAuth() {
        return FirebaseAuth.getInstance();
    }

}

@@ -192,40 +192,8 @@
 e;%0A%0A
-import javax.inject.Singleton;%0A%0A
 impo
@@ -210,16 +210,16 @@
 Module;%0A
+
 import d
@@ -385,39 +385,24 @@
   @Provides%0A
-    @Singleton%0A
     public F
@@ -501,39 +501,24 @@
   @Provides%0A
-    @Singleton%0A
     public F
@@ -596,32 +596,32 @@
 tance();%0A    %7D%0A%0A
+
     @Provides%0A  
@@ -622,23 +622,8 @@
 des%0A
-    @Singleton%0A
     

Remove @Singletone annotation from API for better performance