agora-appbuilder-core 4.1.8-beta.1 → 4.1.8-beta.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": "agora-appbuilder-core",
3
- "version": "4.1.8-beta.1",
3
+ "version": "4.1.8-beta.2",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "vercel-build": "npm run dev-setup && cd template && npm run web:build && cd .. && npm run copy-vercel",
12
- "uikit": "rm -rf template/agora-rn-uikit && git clone https://github.com/AgoraIO-Community/appbuilder-ui-kit.git template/agora-rn-uikit && cd template/agora-rn-uikit && git checkout appbuilder-uikit-3.1.4",
12
+ "uikit": "rm -rf template/agora-rn-uikit && git clone https://github.com/AgoraIO-Community/appbuilder-ui-kit.git template/agora-rn-uikit && cd template/agora-rn-uikit && git checkout appbuilder-uikit-3.1.8",
13
13
  "deps": "cd template && npm i --force",
14
14
  "dev-setup": "npm run uikit && npm run deps && node devSetup.js",
15
15
  "web-build": "cd template && npm run web:build && cd .. && npm run copy-vercel",
@@ -1466,14 +1466,14 @@ export default class RtcEngine {
1466
1466
  this.client.setEncryptionConfig(
1467
1467
  mode,
1468
1468
  config.encryptionKey,
1469
- config.encryptionKdfSalt,
1470
- true, // encryptDataStream
1469
+ config.encryptionMode === 1? null:config.encryptionKdfSalt,
1470
+ config.encryptionMode === 1 ? null:true, // encryptDataStream
1471
1471
  ),
1472
1472
  this.screenClient.setEncryptionConfig(
1473
1473
  mode,
1474
1474
  config.encryptionKey,
1475
- config.encryptionKdfSalt,
1476
- true, // encryptDataStream
1475
+ config.encryptionMode === 1? null:config.encryptionKdfSalt,
1476
+ config.encryptionMode === 1 ? null:true, // encryptDataStream
1477
1477
  ),
1478
1478
  ]);
1479
1479
  logger.log(
@@ -77,8 +77,8 @@ const DefaultConfig = {
77
77
  CHAT_ORG_NAME: '',
78
78
  CHAT_APP_NAME: '',
79
79
  CHAT_URL: '',
80
- CLI_VERSION: '3.1.8-beta.1',
81
- CORE_VERSION: '4.1.8-beta.1',
80
+ CLI_VERSION: '3.1.8-beta.2',
81
+ CORE_VERSION: '4.1.8-beta.2',
82
82
  DISABLE_LANDSCAPE_MODE: false,
83
83
  STT_AUTO_START: false,
84
84
  CLOUD_RECORDING_AUTO_START: false,
@@ -63,6 +63,7 @@ export interface RoomData {
63
63
  rtmToken?: string;
64
64
  encryptionSecret?: string;
65
65
  encryptionSecretSalt?: Uint8Array;
66
+ encryptionMode?: number;
66
67
  screenShareUid?: string;
67
68
  screenShareToken?: string;
68
69
  agents?: AIAgentInterface[];
@@ -1,7 +1,7 @@
1
1
  import React, {SetStateAction, Dispatch} from 'react';
2
2
  import {View, StyleSheet} from 'react-native';
3
3
  import {useString} from '../../utils/useString';
4
- import {sttModalTitleIntn} from '../../language/default-labels/videoCallScreenLabels';
4
+ import {transcriptModalTitleIntn} from '../../language/default-labels/videoCallScreenLabels';
5
5
  import GenericModal from '../common/GenericModal';
6
6
  import STTTranscriptTable from './STTTranscriptTable';
7
7
 
@@ -12,14 +12,14 @@ interface ViewSTTModalProps {
12
12
  export default function ViewSTTTranscriptModal(props: ViewSTTModalProps) {
13
13
  const {setModalOpen} = props;
14
14
 
15
- const sttModalTitle = useString(sttModalTitleIntn)();
15
+ const transcriptModalTitle = useString(transcriptModalTitleIntn)();
16
16
 
17
17
  return (
18
18
  <GenericModal
19
19
  visible={true}
20
20
  onRequestClose={() => setModalOpen(false)}
21
21
  showCloseIcon={true}
22
- title={sttModalTitle}
22
+ title={transcriptModalTitle}
23
23
  cancelable={false}
24
24
  contentContainerStyle={style.contentContainer}>
25
25
  <View style={style.fullBody}>
@@ -369,7 +369,7 @@ const VideoCall: React.FC = () => {
369
369
  encryption: $config.ENCRYPTION_ENABLED
370
370
  ? {
371
371
  key: data.encryptionSecret,
372
- mode: RnEncryptionEnum.AES256GCM2,
372
+ mode: data.encryptionMode,
373
373
  screenKey: data.encryptionSecret,
374
374
  salt: data.encryptionSecretSalt,
375
375
  }
@@ -157,6 +157,11 @@ export default function useJoinRoom() {
157
157
  isWaitingRoomEnabled ? data.secretSalt : data.secret_salt,
158
158
  ) as Uint8Array;
159
159
  }
160
+
161
+ if (data?.encryption_mode) {
162
+ roomInfo.encryptionMode = data.encryption_mode;
163
+ }
164
+
160
165
  if (data?.screen_share_user?.uid || data?.screenShare?.uid) {
161
166
  roomInfo.screenShareUid = isWaitingRoomEnabled
162
167
  ? data.screenShare.uid