From 643340c4a629ec8c2b0d2c6f1dce402c35874fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 28 Jul 2021 14:36:49 +0200 Subject: [PATCH] fix(deps,rn) bump @react-native-async-storage/async-storage In version 1.15 the storage backend was rewritten, which hopefully allows us to fix this crash on Android: Caused by java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/org.jitsi.meet/databases/RKStorage at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55) at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1160) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1036) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1204) at com.reactnativecommunity.asyncstorage.AsyncStorageModule$1.doInBackgroundGuarded(AsyncStorageModule.java:159) at com.reactnativecommunity.asyncstorage.AsyncStorageModule$1.doInBackgroundGuarded(AsyncStorageModule.java:146) at com.facebook.react.bridge.GuardedAsyncTask.doInBackground(GuardedAsyncTask.java:35) at com.facebook.react.bridge.GuardedAsyncTask.doInBackground(GuardedAsyncTask.java:19) at android.os.AsyncTask$2.call(AsyncTask.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at com.reactnativecommunity.asyncstorage.AsyncStorageModule$SerialExecutor$1.run(AsyncStorageModule.java:63) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:760) --- ios/Podfile.lock | 6 +++--- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 7d8bfbcbe..b9245d3ce 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -346,8 +346,8 @@ PODS: - React-jsi (= 0.61.5-jitsi.2) - ReactCommon/jscallinvoker (= 0.61.5-jitsi.2) - ReactCommon/turbomodule/core (= 0.61.5-jitsi.2) - - RNCAsyncStorage (1.13.2): - - React + - RNCAsyncStorage (1.15.5): + - React-Core - RNDefaultPreference (1.4.2): - React - RNDeviceInfo (8.0.0): @@ -571,7 +571,7 @@ SPEC CHECKSUMS: React-RCTText: 4f1b99f228278d2a5e9008eced8dc9c974c4a270 React-RCTVibration: c1041024893fdfdb8371e7c720c437751b711676 ReactCommon: 18014e1d98dbeb9141e935cfe35fc93bd511ffb6 - RNCAsyncStorage: bc2f81cc1df90c267ce9ed30bb2dbc93b945a8ee + RNCAsyncStorage: 8324611026e8dc3706f829953aa6e3899f581589 RNDefaultPreference: 56a405ce61033ac77b95004dccd7ac54c2eb50d1 RNDeviceInfo: 72ded653ce636b3f03571e90bed99309a714944e RNGoogleSignin: 39336070b35fc4cea6a98cf111e00480317be0ae diff --git a/package-lock.json b/package-lock.json index f19b8d6c8..8be419bd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2913,9 +2913,9 @@ "integrity": "sha512-cPqjjzuFWNK3BSKLm0abspP0sp/IGOli4p5I5fKFAzdS8fvjdOwDCfZqAaIiXd9lPkOWi3SUUfZof3hEb7J/uw==" }, "@react-native-async-storage/async-storage": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.13.2.tgz", - "integrity": "sha512-isTDvUApRJPVWFxV15yrQSOGqarX7cIedq/y4N5yWSnotf68D9qvDEv1I7rCXhkBDi0u4OJt6GA9dksUT0D3wg==", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.15.5.tgz", + "integrity": "sha512-4AYehLH39B9a8UXCMf3ieOK+G61wGMP72ikx6/XSMA0DUnvx0PgaeaT2Wyt06kTrDTy8edewKnbrbeqwaM50TQ==", "requires": { "deep-assign": "^3.0.0" } diff --git a/package.json b/package.json index ee59a348b..4f3c2d465 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@jitsi/js-utils": "1.0.6", "@material-ui/core": "4.11.3", "@microsoft/microsoft-graph-client": "1.1.0", - "@react-native-async-storage/async-storage": "1.13.2", + "@react-native-async-storage/async-storage": "1.15.5", "@react-native-community/google-signin": "3.0.1", "@react-native-community/netinfo": "4.1.5", "@react-native-community/slider": "3.0.3",