From 68daf945c4dacca954eb8592b94b992ca82d0ffb Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Mon, 6 Jul 2020 15:55:02 -0500 Subject: [PATCH] feat(firestore, android): allow FirestoreSerializer native use (#3888) [publish] --- .../firestore/ReactNativeFirebaseFirestoreSerialize.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java b/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java index 3b864fa1a3..356ed1d43a 100644 --- a/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java +++ b/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java @@ -50,7 +50,8 @@ import static io.invertase.firebase.common.RCTConvertFirebase.toHashMap; -class ReactNativeFirebaseFirestoreSerialize { +// public access for native re-use in brownfield apps +public class ReactNativeFirebaseFirestoreSerialize { private static final String TAG = "FirestoreSerialize"; // Bridge Map @@ -386,12 +387,13 @@ private static WritableArray buildTypeMap(Object value) { /** * Converts a ReadableMap to a usable format for Firestore + * (public access for native re-use in brownfield apps) * * @param firestore FirebaseFirestore * @param readableMap ReadableMap * @return Map<> */ - static Map parseReadableMap( + public static Map parseReadableMap( FirebaseFirestore firestore, @Nullable ReadableMap readableMap ) {