diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java index 4f0b0ce6ccdd9c..22d6b9f405ee36 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java @@ -7,6 +7,7 @@ package com.facebook.react.modules.location; +import android.annotation.SuppressLint; import android.content.Context; import android.location.Location; import android.location.LocationListener; @@ -32,6 +33,7 @@ /** * Native module that exposes Geolocation to JS. */ +@SuppressLint("MissingPermission") @ReactModule(name = LocationModule.NAME) public class LocationModule extends ReactContextBaseJavaModule { diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java index 156a3ca026363e..ac67030f7d776c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java @@ -7,6 +7,7 @@ package com.facebook.react.modules.netinfo; +import android.annotation.SuppressLint; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; @@ -30,6 +31,7 @@ /** * Module that monitors and provides information about the connectivity state of the device. */ +@SuppressLint("MissingPermission") @ReactModule(name = NetInfoModule.NAME) public class NetInfoModule extends ReactContextBaseJavaModule implements LifecycleEventListener { diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java index a224b556af4464..153f800f775f2e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java @@ -7,6 +7,7 @@ package com.facebook.react.modules.vibration; +import android.annotation.SuppressLint; import android.content.Context; import android.os.Vibrator; @@ -16,6 +17,7 @@ import com.facebook.react.bridge.ReadableArray; import com.facebook.react.module.annotations.ReactModule; +@SuppressLint("MissingPermission") @ReactModule(name = VibrationModule.NAME) public class VibrationModule extends ReactContextBaseJavaModule {