@fishjam-cloud/react-native-client 0.28.0 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishjam-cloud/react-native-client",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.2",
|
|
4
4
|
"description": "React Native client library for Fishjam",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Fishjam Team",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-native-get-random-values": "1.11.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@fishjam-cloud/react-client": "0.28.
|
|
52
|
+
"@fishjam-cloud/react-client": "0.28.2",
|
|
53
53
|
"@fishjam-cloud/react-native-webrtc": "0.28.0",
|
|
54
54
|
"fast-text-encoding": "1.0.6",
|
|
55
55
|
"react-native-get-random-values": "1.11.0",
|
|
@@ -19,10 +19,13 @@ const withFishjamForegroundService = (config, props) => (0, config_plugins_1.wit
|
|
|
19
19
|
}
|
|
20
20
|
const mainApplication = (0, Manifest_1.getMainApplicationOrThrow)(configuration.modResults);
|
|
21
21
|
mainApplication.service = mainApplication.service || [];
|
|
22
|
+
const foregroundServiceType = props?.android?.enableScreensharing
|
|
23
|
+
? 'camera|microphone|mediaProjection'
|
|
24
|
+
: 'camera|microphone';
|
|
22
25
|
const webRTCForegroundService = {
|
|
23
26
|
$: {
|
|
24
27
|
'android:name': 'com.oney.WebRTCModule.foregroundService.WebRTCForegroundService',
|
|
25
|
-
'android:foregroundServiceType':
|
|
28
|
+
'android:foregroundServiceType': foregroundServiceType,
|
|
26
29
|
'android:stopWithTask': 'true',
|
|
27
30
|
},
|
|
28
31
|
};
|
|
@@ -33,22 +36,6 @@ const withFishjamForegroundService = (config, props) => (0, config_plugins_1.wit
|
|
|
33
36
|
else {
|
|
34
37
|
mainApplication.service.push(webRTCForegroundService);
|
|
35
38
|
}
|
|
36
|
-
if (props?.android?.enableScreensharing) {
|
|
37
|
-
const mediaProjectionService = {
|
|
38
|
-
$: {
|
|
39
|
-
'android:name': 'com.oney.WebRTCModule.MediaProjectionService',
|
|
40
|
-
'android:foregroundServiceType': 'mediaProjection',
|
|
41
|
-
'android:stopWithTask': 'true',
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
const existingMediaProjectionServiceIndex = mainApplication.service.findIndex((service) => service.$['android:name'] === mediaProjectionService.$['android:name']);
|
|
45
|
-
if (existingMediaProjectionServiceIndex !== -1) {
|
|
46
|
-
mainApplication.service[existingMediaProjectionServiceIndex] = mediaProjectionService;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
mainApplication.service.push(mediaProjectionService);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
39
|
return configuration;
|
|
53
40
|
});
|
|
54
41
|
const withFishjamForegroundServicePermission = (config, props) => (0, config_plugins_1.withAndroidManifest)(config, (configuration) => {
|