* removing exported receivers --------- Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
36 lines
1.7 KiB
Diff
36 lines
1.7 KiB
Diff
diff --git a/node_modules/@voximplant/react-native-foreground-service/android/build.gradle b/node_modules/@voximplant/react-native-foreground-service/android/build.gradle
|
|
index 7f9022f..b3e920a 100644
|
|
--- a/node_modules/@voximplant/react-native-foreground-service/android/build.gradle
|
|
+++ b/node_modules/@voximplant/react-native-foreground-service/android/build.gradle
|
|
@@ -6,12 +6,12 @@ def safeExtGet(prop, fallback) {
|
|
}
|
|
|
|
android {
|
|
- compileSdkVersion 28
|
|
- buildToolsVersion '28.0.3'
|
|
+ compileSdkVersion rootProject.ext.compileSdkVersion
|
|
+ buildToolsVersion rootProject.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
- minSdkVersion 16
|
|
- targetSdkVersion 28
|
|
+ minSdkVersion 24
|
|
+ targetSdkVersion 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
--- 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 {
|
|
|
|
IntentFilter filter = new IntentFilter();
|
|
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_NOT_EXPORTED);
|
|
+ } else {
|
|
+ getReactApplicationContext().registerReceiver(foregroundReceiver, filter);
|
|
+ }
|
|
|
|
if (componentName != null) {
|
|
promise.resolve(null);
|