[MM-62491] Removing exported receivers. (#8466)

* removing exported receivers

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Colton Shaw 2025-05-07 10:06:55 -04:00 committed by GitHub
parent f320dd65ad
commit ec1c0e4f58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,8 +19,6 @@ index 7f9022f..b3e920a 100644
versionCode 1
versionName "1.0"
}
diff --git a/node_modules/@voximplant/react-native-foreground-service/android/src/main/java/com/voximplant/foregroundservice/VIForegroundServiceModule.java b/node_modules/@voximplant/react-native-foreground-service/android/src/main/java/com/voximplant/foregroundservice/VIForegroundServiceModule.java
index afc578c..c8c32e3 100644
--- a/node_modules/@voximplant/react-native-foreground-service/android/src/main/java/com/voximplant/foregroundservice/VIForegroundServiceModule.java
+++ b/node_modules/@voximplant/react-native-foreground-service/android/src/main/java/com/voximplant/foregroundservice/VIForegroundServiceModule.java
@@ -110,7 +110,11 @@ public class VIForegroundServiceModule extends ReactContextBaseJavaModule {
@ -29,7 +27,7 @@ index afc578c..c8c32e3 100644
filter.addAction(FOREGROUND_SERVICE_BUTTON_PRESSED);
- getReactApplicationContext().registerReceiver(foregroundReceiver, filter);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ getReactApplicationContext().registerReceiver(foregroundReceiver, filter, Context.RECEIVER_EXPORTED);
+ getReactApplicationContext().registerReceiver(foregroundReceiver, filter, Context.RECEIVER_NOT_EXPORTED);
+ } else {
+ getReactApplicationContext().registerReceiver(foregroundReceiver, filter);
+ }