diff --git a/android/src/main/java/io/invertase/firebase/firestore/RNFirebaseFirestore.java b/android/src/main/java/io/invertase/firebase/firestore/RNFirebaseFirestore.java index d89c3093..0d0ba858 100644 --- a/android/src/main/java/io/invertase/firebase/firestore/RNFirebaseFirestore.java +++ b/android/src/main/java/io/invertase/firebase/firestore/RNFirebaseFirestore.java @@ -10,7 +10,6 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableArray; import com.facebook.react.bridge.WritableMap; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; @@ -27,7 +26,6 @@ import java.util.List; import java.util.Map; import io.invertase.firebase.ErrorUtils; -import io.invertase.firebase.Utils; public class RNFirebaseFirestore extends ReactContextBaseJavaModule { @@ -42,6 +40,16 @@ public class RNFirebaseFirestore extends ReactContextBaseJavaModule { /* * REACT NATIVE METHODS */ + + /** + * @param enabled + */ + @ReactMethod + public void enableLogging(Boolean enabled) { + FirebaseFirestore.setLoggingEnabled(enabled); + } + + @ReactMethod public void collectionGet(String appName, String path, ReadableArray filters, ReadableArray orders, ReadableMap options, final Promise promise) {