|
24 | 24 | import com.facebook.react.common.ReactConstants; |
25 | 25 | import com.facebook.react.common.annotations.VisibleForTesting; |
26 | 26 | import com.facebook.react.module.annotations.ReactModule; |
27 | | -import com.facebook.react.modules.common.ModuleDataCleaner; |
28 | 27 |
|
29 | 28 | import java.util.ArrayDeque; |
30 | 29 | import java.util.HashSet; |
31 | 30 | import java.util.concurrent.Executor; |
32 | 31 | import java.util.concurrent.Executors; |
33 | 32 |
|
34 | 33 | @ReactModule(name = AsyncStorageModule.NAME) |
35 | | -public final class AsyncStorageModule |
36 | | - extends NativeAsyncStorageModuleSpec implements ModuleDataCleaner.Cleanable { |
| 34 | +public final class AsyncStorageModule extends NativeAsyncStorageModuleSpec { |
37 | 35 |
|
38 | 36 | // changed name to not conflict with AsyncStorage from RN repo |
39 | 37 | public static final String NAME = "RNCAsyncStorage"; |
@@ -87,14 +85,6 @@ public void invalidate() { |
87 | 85 | mReactDatabaseSupplier.closeDatabase(); |
88 | 86 | } |
89 | 87 |
|
90 | | - @Override |
91 | | - public void clearSensitiveData() { |
92 | | - // Clear local storage. If fails, crash, since the app is potentially in a bad state and could |
93 | | - // cause a privacy violation. We're still not recovering from this well, but at least the error |
94 | | - // will be reported to the server. |
95 | | - mReactDatabaseSupplier.clearAndCloseDatabase(); |
96 | | - } |
97 | | - |
98 | 88 | /** |
99 | 89 | * Given an array of keys, this returns a map of (key, value) pairs for the keys found, and |
100 | 90 | * (key, null) for the keys that haven't been found. |
|
0 commit comments