@react-native-firebase/firestore 19.3.0 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [20.0.0](https://github.com/invertase/react-native-firebase/compare/v19.3.0...v20.0.0) (2024-05-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **firestore, android:** remove usage of Guava library ([d6f62a3](https://github.com/invertase/react-native-firebase/commit/d6f62a3b374e321a86d97cd2765cc91b1f006e29))
11
+
6
12
  ## [19.3.0](https://github.com/invertase/react-native-firebase/compare/v19.2.2...v19.3.0) (2024-05-20)
7
13
 
8
14
  ### Features
@@ -11,7 +11,7 @@ buildscript {
11
11
  }
12
12
 
13
13
  dependencies {
14
- classpath("com.android.tools.build:gradle:8.1.2")
14
+ classpath("com.android.tools.build:gradle:8.4.0")
15
15
  }
16
16
  }
17
17
  }
@@ -28,7 +28,6 @@ import com.facebook.react.bridge.ReadableMap;
28
28
  import com.facebook.react.bridge.ReadableMapKeySetIterator;
29
29
  import com.facebook.react.bridge.WritableArray;
30
30
  import com.facebook.react.bridge.WritableMap;
31
- import com.google.common.collect.Iterables;
32
31
  import com.google.firebase.Timestamp;
33
32
  import com.google.firebase.firestore.Blob;
34
33
  import com.google.firebase.firestore.DocumentChange;
@@ -199,10 +198,12 @@ public class ReactNativeFirebaseFirestoreSerialize {
199
198
  boolean isMetadataChange = false;
200
199
  if (checkIfMetadataChange) {
201
200
  int hashCode = documentChange.hashCode();
202
- DocumentChange exists =
203
- Iterables.tryFind(
204
- comparableDocumentChanges, docChange -> docChange.hashCode() == hashCode)
205
- .orNull();
201
+ DocumentChange exists = null;
202
+ for (DocumentChange docChange : comparableDocumentChanges) {
203
+ if (docChange.hashCode() == hashCode) {
204
+ exists = docChange;
205
+ }
206
+ }
206
207
 
207
208
  // Exists in docChanges with meta, but doesnt exist in docChanges without meta
208
209
  if (exists == null) {
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '19.3.0';
2
+ module.exports = '20.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/firestore",
3
- "version": "19.3.0",
3
+ "version": "20.0.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - Cloud Firestore is a NoSQL cloud database to store and sync data between your React Native application and Firebase's database. The API matches the Firebase Web SDK whilst taking advantage of the native SDKs performance and offline capabilities.",
6
6
  "main": "lib/index.js",
@@ -27,10 +27,10 @@
27
27
  "firestore"
28
28
  ],
29
29
  "peerDependencies": {
30
- "@react-native-firebase/app": "19.3.0"
30
+ "@react-native-firebase/app": "20.0.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "edac62269c1b3088cadf74586d48f68214d6e8e4"
35
+ "gitHead": "b6079dd09ed1f6e47dc782df0d98c5479bfc0cd4"
36
36
  }