File tree 2 files changed +6
-1
lines changed
src/main/java/com/google/firebase/firestore
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2
2
- [ fixed] Updated gRPC to 1.21.0. A bug in the prior version would occasionally
3
3
cause a crash if a network state change occurred concurrently with an RPC.
4
4
(#428 )
5
+ - [ feature] Added ` clearPersistence() ` , which clears the persistent storage
6
+ including pending writes and cached documents. This is intended to help
7
+ write reliable tests (https://github.com/firebase/firebase-js-sdk/issues/449 ).
8
+
5
9
6
10
# 19.0.1
7
11
- [ fixed] Fixed an issue that prevented schema migrations for clients with
Original file line number Diff line number Diff line change @@ -405,7 +405,8 @@ public static void setLoggingEnabled(boolean loggingEnabled) {
405
405
* @return A Task that is resolved once the persistent storage has been cleared. Otherwise, the
406
406
* Task is rejected with an error.
407
407
*/
408
- Task <Void > clearPersistence () {
408
+ @ PublicApi
409
+ public Task <Void > clearPersistence () {
409
410
final TaskCompletionSource <Void > source = new TaskCompletionSource <>();
410
411
asyncQueue .enqueueAndForget (
411
412
() -> {
You can’t perform that action at this time.
0 commit comments