File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
packages/react-native/ReactAndroid
src/main/java/com/facebook/react/modules/common Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -2698,15 +2698,6 @@ public final class com/facebook/react/modules/blob/FileReaderModule$Companion {
2698
2698
public final fun getNAME ()Ljava/lang/String;
2699
2699
}
2700
2700
2701
- public final class com/facebook/react/modules/common/ModuleDataCleaner {
2702
- public static final field INSTANCE Lcom/facebook/react/modules/common/ModuleDataCleaner;
2703
- public static final fun cleanDataFromModules (Lcom/facebook/react/bridge/ReactContext;)V
2704
- }
2705
-
2706
- public abstract interface class com/facebook/react/modules/common/ModuleDataCleaner$Cleanable {
2707
- public abstract fun clearSensitiveData ()V
2708
- }
2709
-
2710
2701
public abstract interface class com/facebook/react/modules/core/DefaultHardwareBackBtnHandler {
2711
2702
public abstract fun invokeDefaultOnBackPressed ()V
2712
2703
}
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ import com.facebook.react.common.ReactConstants
15
15
* Cleans sensitive user data from native modules that implement the [Cleanable] interface. This is
16
16
* useful e.g. when a user logs out from an app.
17
17
*/
18
- public object ModuleDataCleaner {
18
+ internal object ModuleDataCleaner {
19
19
20
20
@JvmStatic
21
- public fun cleanDataFromModules (reactContext : ReactContext ) {
21
+ fun cleanDataFromModules (reactContext : ReactContext ) {
22
22
reactContext.nativeModules.forEach { nativeModule ->
23
23
if (nativeModule is Cleanable ) {
24
24
FLog .d(ReactConstants .TAG , " Cleaning data from ${nativeModule.getName()} " )
@@ -40,7 +40,7 @@ public object ModuleDataCleaner {
40
40
* instance is destroyed. This is because logout implies that the instance is destroyed. Apps
41
41
* should enforce this.
42
42
*/
43
- public fun interface Cleanable {
44
- public fun clearSensitiveData ()
43
+ fun interface Cleanable {
44
+ fun clearSensitiveData ()
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments