agora-appbuilder-core 3.0.2-beta.0 → 3.0.2-beta.3
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
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"@sentry/react-native": "2.4.3",
|
|
17
17
|
"@sentry/tracing": "6.2.1",
|
|
18
18
|
"agora-react-native-rtm": "1.5.0",
|
|
19
|
-
"agora-rtc-sdk-ng": "4.
|
|
20
|
-
"agora-rtm-sdk": "1.
|
|
19
|
+
"agora-rtc-sdk-ng": "4.14.0",
|
|
20
|
+
"agora-rtm-sdk": "1.6.0-204",
|
|
21
21
|
"electron-log": "4.3.5",
|
|
22
22
|
"electron-squirrel-startup": "1.0.0",
|
|
23
23
|
"electron-updater": "4.3.9",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "16.13.1",
|
|
31
31
|
"react-is": "18.0.0",
|
|
32
32
|
"react-native": "0.63.3",
|
|
33
|
-
"react-native-agora": "3.
|
|
33
|
+
"react-native-agora": "3.7.1",
|
|
34
34
|
"react-native-hyperlink": "0.0.19",
|
|
35
35
|
"react-native-inappbrowser-reborn": "3.5.1",
|
|
36
36
|
"react-native-keep-awake": "4.0.0",
|
|
@@ -6649,9 +6649,9 @@
|
|
|
6649
6649
|
}
|
|
6650
6650
|
},
|
|
6651
6651
|
"node_modules/agora-rtc-sdk-ng": {
|
|
6652
|
-
"version": "4.
|
|
6653
|
-
"resolved": "https://registry.npmjs.org/agora-rtc-sdk-ng/-/agora-rtc-sdk-ng-4.
|
|
6654
|
-
"integrity": "sha512-
|
|
6652
|
+
"version": "4.14.0",
|
|
6653
|
+
"resolved": "https://registry.npmjs.org/agora-rtc-sdk-ng/-/agora-rtc-sdk-ng-4.14.0.tgz",
|
|
6654
|
+
"integrity": "sha512-87WZEz+Lkhs39/K9iqBeQYUl6HIWoiyicez/DxspQ37N9NRWRRmoLVS1yUfG6FPWWxZiY+VEJbzPLPhuAihrpQ==",
|
|
6655
6655
|
"dependencies": {
|
|
6656
6656
|
"agora-rte-extension": "^1.0.22"
|
|
6657
6657
|
}
|
|
@@ -6662,9 +6662,9 @@
|
|
|
6662
6662
|
"integrity": "sha512-HGsr7dJ5FHeCVHTLHCUfQ6cvKVLJz9b11F/FZbSQ/IqYlGZwRdu5E6hVdWenjWyYiqmpZm+nCP9IIqXSA+BPwA=="
|
|
6663
6663
|
},
|
|
6664
6664
|
"node_modules/agora-rtm-sdk": {
|
|
6665
|
-
"version": "1.
|
|
6666
|
-
"resolved": "https://registry.npmjs.org/agora-rtm-sdk/-/agora-rtm-sdk-1.
|
|
6667
|
-
"integrity": "sha512-
|
|
6665
|
+
"version": "1.6.0-204",
|
|
6666
|
+
"resolved": "https://registry.npmjs.org/agora-rtm-sdk/-/agora-rtm-sdk-1.6.0-204.tgz",
|
|
6667
|
+
"integrity": "sha512-511lcjbqHlrK1M4cyeWiRLYHOutMHRaIZNt8usi8eFYR070foIattChnqQv5HAx2ltKg1RisZ9RK26thLqniEQ=="
|
|
6668
6668
|
},
|
|
6669
6669
|
"node_modules/ajv": {
|
|
6670
6670
|
"version": "6.12.6",
|
|
@@ -23338,9 +23338,9 @@
|
|
|
23338
23338
|
}
|
|
23339
23339
|
},
|
|
23340
23340
|
"node_modules/react-native-agora": {
|
|
23341
|
-
"version": "3.
|
|
23342
|
-
"resolved": "https://registry.npmjs.org/react-native-agora/-/react-native-agora-3.
|
|
23343
|
-
"integrity": "sha512-
|
|
23341
|
+
"version": "3.7.1",
|
|
23342
|
+
"resolved": "https://registry.npmjs.org/react-native-agora/-/react-native-agora-3.7.1.tgz",
|
|
23343
|
+
"integrity": "sha512-meArJ8YQoZZb4UP2qZEAGWtEJYu/LrOcD/d0sH5BIhwKWZzuLYwN6E/hzlYnd4iWDbuPvaW0dgKCN/RgsoAr3A==",
|
|
23344
23344
|
"peerDependencies": {
|
|
23345
23345
|
"react": "*",
|
|
23346
23346
|
"react-native": "*"
|
|
@@ -33922,9 +33922,9 @@
|
|
|
33922
33922
|
"requires": {}
|
|
33923
33923
|
},
|
|
33924
33924
|
"agora-rtc-sdk-ng": {
|
|
33925
|
-
"version": "4.
|
|
33926
|
-
"resolved": "https://registry.npmjs.org/agora-rtc-sdk-ng/-/agora-rtc-sdk-ng-4.
|
|
33927
|
-
"integrity": "sha512-
|
|
33925
|
+
"version": "4.14.0",
|
|
33926
|
+
"resolved": "https://registry.npmjs.org/agora-rtc-sdk-ng/-/agora-rtc-sdk-ng-4.14.0.tgz",
|
|
33927
|
+
"integrity": "sha512-87WZEz+Lkhs39/K9iqBeQYUl6HIWoiyicez/DxspQ37N9NRWRRmoLVS1yUfG6FPWWxZiY+VEJbzPLPhuAihrpQ==",
|
|
33928
33928
|
"requires": {
|
|
33929
33929
|
"agora-rte-extension": "^1.0.22"
|
|
33930
33930
|
}
|
|
@@ -33935,9 +33935,9 @@
|
|
|
33935
33935
|
"integrity": "sha512-HGsr7dJ5FHeCVHTLHCUfQ6cvKVLJz9b11F/FZbSQ/IqYlGZwRdu5E6hVdWenjWyYiqmpZm+nCP9IIqXSA+BPwA=="
|
|
33936
33936
|
},
|
|
33937
33937
|
"agora-rtm-sdk": {
|
|
33938
|
-
"version": "1.
|
|
33939
|
-
"resolved": "https://registry.npmjs.org/agora-rtm-sdk/-/agora-rtm-sdk-1.
|
|
33940
|
-
"integrity": "sha512-
|
|
33938
|
+
"version": "1.6.0-204",
|
|
33939
|
+
"resolved": "https://registry.npmjs.org/agora-rtm-sdk/-/agora-rtm-sdk-1.6.0-204.tgz",
|
|
33940
|
+
"integrity": "sha512-511lcjbqHlrK1M4cyeWiRLYHOutMHRaIZNt8usi8eFYR070foIattChnqQv5HAx2ltKg1RisZ9RK26thLqniEQ=="
|
|
33941
33941
|
},
|
|
33942
33942
|
"ajv": {
|
|
33943
33943
|
"version": "6.12.6",
|
|
@@ -47171,9 +47171,9 @@
|
|
|
47171
47171
|
}
|
|
47172
47172
|
},
|
|
47173
47173
|
"react-native-agora": {
|
|
47174
|
-
"version": "3.
|
|
47175
|
-
"resolved": "https://registry.npmjs.org/react-native-agora/-/react-native-agora-3.
|
|
47176
|
-
"integrity": "sha512-
|
|
47174
|
+
"version": "3.7.1",
|
|
47175
|
+
"resolved": "https://registry.npmjs.org/react-native-agora/-/react-native-agora-3.7.1.tgz",
|
|
47176
|
+
"integrity": "sha512-meArJ8YQoZZb4UP2qZEAGWtEJYu/LrOcD/d0sH5BIhwKWZzuLYwN6E/hzlYnd4iWDbuPvaW0dgKCN/RgsoAr3A==",
|
|
47177
47177
|
"requires": {}
|
|
47178
47178
|
},
|
|
47179
47179
|
"react-native-hyperlink": {
|
package/template/babel.config.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*********************************************
|
|
11
11
|
*/
|
|
12
12
|
const configVars = require('./configTransform');
|
|
13
|
-
const getCustomizationApiPath =
|
|
13
|
+
const { getCustomizationApiPath } = require('./customization.config');
|
|
14
14
|
|
|
15
15
|
// This file is read only by react native for IOS & Android. Doesn't apply to electron, Web targets
|
|
16
16
|
module.exports = {
|
package/template/package.json
CHANGED
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@sentry/react-native": "2.4.3",
|
|
57
57
|
"@sentry/tracing": "6.2.1",
|
|
58
58
|
"agora-react-native-rtm": "1.5.0",
|
|
59
|
-
"agora-rtc-sdk-ng": "4.
|
|
60
|
-
"agora-rtm-sdk": "1.
|
|
59
|
+
"agora-rtc-sdk-ng": "4.14.0",
|
|
60
|
+
"agora-rtm-sdk": "1.6.0-204",
|
|
61
61
|
"electron-log": "4.3.5",
|
|
62
62
|
"electron-squirrel-startup": "1.0.0",
|
|
63
63
|
"electron-updater": "4.3.9",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-dom": "16.13.1",
|
|
71
71
|
"react-is": "18.0.0",
|
|
72
72
|
"react-native": "0.63.3",
|
|
73
|
-
"react-native-agora": "3.
|
|
73
|
+
"react-native-agora": "3.7.1",
|
|
74
74
|
"react-native-hyperlink": "0.0.19",
|
|
75
75
|
"react-native-inappbrowser-reborn": "3.5.1",
|
|
76
76
|
"react-native-keep-awake": "4.0.0",
|
|
@@ -31,7 +31,12 @@ import {numFormatter} from '../utils/index';
|
|
|
31
31
|
import {useLayout} from '../utils/useLayout';
|
|
32
32
|
import {useChatNotification} from '../components/chat-notification/useChatNotification';
|
|
33
33
|
import useLayoutsData from '../pages/video-call/useLayoutsData';
|
|
34
|
-
import {
|
|
34
|
+
import {
|
|
35
|
+
isAndroid,
|
|
36
|
+
isIOS,
|
|
37
|
+
isValidReactComponent,
|
|
38
|
+
isWebInternal,
|
|
39
|
+
} from '../utils/common';
|
|
35
40
|
import {useChangeDefaultLayout} from '../pages/video-call/DefaultLayouts';
|
|
36
41
|
import {useRecording} from '../subComponents/recording/useRecording';
|
|
37
42
|
import LayoutIconDropdown from '../subComponents/LayoutIconDropdown';
|
|
@@ -357,6 +362,8 @@ const Navbar = () => {
|
|
|
357
362
|
const {isRecordingActive} = useRecording();
|
|
358
363
|
const {getDimensionData} = useContext(DimensionContext);
|
|
359
364
|
const {isDesktop} = getDimensionData();
|
|
365
|
+
const layoutsData = useLayoutsData();
|
|
366
|
+
const isNative = isIOS() || isAndroid();
|
|
360
367
|
|
|
361
368
|
return (
|
|
362
369
|
<View
|
|
@@ -440,7 +447,11 @@ const Navbar = () => {
|
|
|
440
447
|
</View>
|
|
441
448
|
) : (
|
|
442
449
|
<View>
|
|
443
|
-
<Text style={style.roomNameText}>
|
|
450
|
+
<Text style={style.roomNameText}>
|
|
451
|
+
{meetingTitle.length > 13
|
|
452
|
+
? meetingTitle.slice(0, 13) + '..'
|
|
453
|
+
: meetingTitle}
|
|
454
|
+
</Text>
|
|
444
455
|
</View>
|
|
445
456
|
)}
|
|
446
457
|
</View>
|
|
@@ -453,7 +464,10 @@ const Navbar = () => {
|
|
|
453
464
|
isWebInternal() && isDesktop
|
|
454
465
|
? 300
|
|
455
466
|
: isMobileOrTablet()
|
|
456
|
-
?
|
|
467
|
+
? //In native - if only one layout is provided then we are hiding the layout icon. so we need less space. otherwise there will empty space around the icon
|
|
468
|
+
layoutsData && layoutsData.length === 1 && isNative
|
|
469
|
+
? 130
|
|
470
|
+
: 160
|
|
457
471
|
: 200,
|
|
458
472
|
},
|
|
459
473
|
]}>
|
|
@@ -471,17 +485,24 @@ const Navbar = () => {
|
|
|
471
485
|
) : (
|
|
472
486
|
<></>
|
|
473
487
|
)}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
488
|
+
{/**
|
|
489
|
+
* In custom-layout - show the layout icon if more than 1 layout provided otherwise hide it from the ui
|
|
490
|
+
*/}
|
|
491
|
+
{layoutsData && layoutsData.length > 1 && (
|
|
492
|
+
<>
|
|
493
|
+
<RenderSeparator />
|
|
494
|
+
<View
|
|
495
|
+
style={[style.navItem, style.navSmItem]}
|
|
496
|
+
/**
|
|
497
|
+
* .measure returns undefined on Android unless collapsable=false or onLayout are specified
|
|
498
|
+
* so added collapsable property
|
|
499
|
+
* https://github.com/facebook/react-native/issues/29712
|
|
500
|
+
* */
|
|
501
|
+
collapsable={false}>
|
|
502
|
+
<LayoutIconButton />
|
|
503
|
+
</View>
|
|
504
|
+
</>
|
|
505
|
+
)}
|
|
485
506
|
<RenderSeparator />
|
|
486
507
|
<SettingsIconButtonWithWrapper />
|
|
487
508
|
</View>
|
|
@@ -530,7 +551,7 @@ const style = StyleSheet.create({
|
|
|
530
551
|
height: 35,
|
|
531
552
|
maxHeight: 30,
|
|
532
553
|
position: 'absolute',
|
|
533
|
-
left: isMobileOrTablet() ? '
|
|
554
|
+
left: isMobileOrTablet() ? '48%' : 10,
|
|
534
555
|
paddingHorizontal: 5,
|
|
535
556
|
flexDirection: 'row',
|
|
536
557
|
alignItems: 'center',
|
|
@@ -590,7 +611,8 @@ const style = StyleSheet.create({
|
|
|
590
611
|
backgroundColor: $config.PRIMARY_COLOR,
|
|
591
612
|
borderRadius: 2.5,
|
|
592
613
|
paddingHorizontal: 5,
|
|
593
|
-
|
|
614
|
+
marginLeft: 5,
|
|
615
|
+
marginRight: 0,
|
|
594
616
|
paddingVertical: 1,
|
|
595
617
|
display: 'flex',
|
|
596
618
|
alignItems: 'center',
|
|
@@ -19,7 +19,10 @@ const isDevelopment = process.env.NODE_ENV === 'development';
|
|
|
19
19
|
const path = require('path');
|
|
20
20
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
21
21
|
const configVars = require('./configTransform');
|
|
22
|
-
const
|
|
22
|
+
const {
|
|
23
|
+
getCustomizationApiPath,
|
|
24
|
+
customizationDummyPath,
|
|
25
|
+
} = require('./customization.config');
|
|
23
26
|
|
|
24
27
|
const isElectron = ['linux', 'windows', 'mac'].includes(process.env.TARGET);
|
|
25
28
|
const isReactSdk = process.env.TARGET === 'rsdk';
|
|
@@ -58,7 +61,10 @@ module.exports = {
|
|
|
58
61
|
__dirname,
|
|
59
62
|
'customization-implementation/index.ts',
|
|
60
63
|
),
|
|
61
|
-
customization: path.join(
|
|
64
|
+
customization: path.join(
|
|
65
|
+
__dirname,
|
|
66
|
+
isSdk ? customizationDummyPath : getCustomizationApiPath(),
|
|
67
|
+
),
|
|
62
68
|
'agora-react-native-rtm/lib/typescript/src': path.join(
|
|
63
69
|
__dirname,
|
|
64
70
|
'bridge/rtm/web/index.ts',
|