agora-appbuilder-core 4.0.9 → 4.0.11

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.0.9",
3
+ "version": "4.0.11",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -258,7 +258,7 @@ const reactSdk = {
258
258
  bundleSdkTypedefs: () => {
259
259
  return src(['../Builds/customization-api.d.ts', '../Builds/reactSdk.d.ts'])
260
260
  .pipe(concat('index.d.ts'))
261
- .pipe(replace(`${$config.PRODUCT_ID}/`, ''))
261
+ .pipe(replace(`${config.PRODUCT_ID}/`, ''))
262
262
  .pipe(
263
263
  replace(
264
264
  'declare module "index.rsdk"',
@@ -30,7 +30,7 @@ export interface StyleProps {
30
30
  interface SurfaceViewInterface extends RtcSurfaceViewProps, StyleProps {}
31
31
 
32
32
  const RtcSurfaceView = (props: SurfaceViewInterface) => {
33
- logger.debug(LogSource.Internals, 'LAYOUT', 'Rtc Surface View props', props);
33
+ console.debug('Rtc Surface View props', props);
34
34
  const {uid, renderMode} = props.canvas;
35
35
  const stream: ILocalVideoTrack | IRemoteVideoTrack =
36
36
  uid === 0
@@ -347,10 +347,10 @@ const AuthProvider = (props: AuthProviderProps) => {
347
347
  }
348
348
  })
349
349
  .catch(error => {
350
- logger.error(
350
+ logger.log(
351
351
  LogSource.NetworkRest,
352
352
  'user_details',
353
- 'API user details query failed. User is un-authenticated',
353
+ 'API user details query failed. User is un-authenticated. Will Login in the user',
354
354
  error,
355
355
  );
356
356
  setIsAuthenticated(false);
@@ -163,7 +163,7 @@ const DeviceConfigure: React.FC<Props> = (props: any) => {
163
163
  let updatedDeviceList: MediaDeviceInfo[];
164
164
  await RtcEngineUnsafe.getDevices(function (devices: deviceInfo[]) {
165
165
  !noEmitLog &&
166
- logger.debug(
166
+ console.debug(
167
167
  LogSource.Internals,
168
168
  'DEVICE_CONFIGURE',
169
169
  'Fetching all devices: ',
@@ -191,7 +191,7 @@ const DeviceConfigure: React.FC<Props> = (props: any) => {
191
191
  );
192
192
 
193
193
  !noEmitLog &&
194
- logger.debug(
194
+ console.debug(
195
195
  LogSource.Internals,
196
196
  'DEVICE_CONFIGURE',
197
197
  'Setting unique devices',
@@ -224,7 +224,7 @@ const DeviceConfigure: React.FC<Props> = (props: any) => {
224
224
  RtcEngineUnsafe.audioDeviceId
225
225
  : //@ts-ignore
226
226
  RtcEngineUnsafe.videoDeviceId;
227
- logger.debug(
227
+ console.debug(
228
228
  LogSource.Internals,
229
229
  'DEVICE_CONFIGURE',
230
230
  `Agora ${type} Engine is using ${currentDevice}`,
@@ -233,7 +233,7 @@ const DeviceConfigure: React.FC<Props> = (props: any) => {
233
233
  currentDevice = localStream[type]
234
234
  ?.getMediaStreamTrack()
235
235
  .getSettings().deviceId;
236
- logger.debug(
236
+ console.debug(
237
237
  LogSource.Internals,
238
238
  'DEVICE_CONFIGURE',
239
239
  `Agora ${type} Track is using ${currentDevice}`,
@@ -249,7 +249,7 @@ const DeviceConfigure: React.FC<Props> = (props: any) => {
249
249
  * truth.
250
250
  */
251
251
  const syncSelectedDeviceUi = (kind?: deviceKind) => {
252
- logger.debug(
252
+ console.debug(
253
253
  LogSource.Internals,
254
254
  'DEVICE_CONFIGURE',
255
255
  'Refreshing',
@@ -607,7 +607,7 @@ const RtmConfigure = (props: any) => {
607
607
  sender: string,
608
608
  ts: number,
609
609
  ) => {
610
- logger.debug(
610
+ console.debug(
611
611
  LogSource.Events,
612
612
  'CUSTOM_EVENTS',
613
613
  'inside eventDispatcher ',
@@ -679,7 +679,7 @@ const RtmConfigure = (props: any) => {
679
679
  await engine.current.addOrUpdateLocalUserAttributes([rtmAttribute]);
680
680
  }
681
681
  // Step 2: Emit the event
682
- logger.debug(LogSource.Events, 'CUSTOM_EVENTS', 'emiting event..: ');
682
+ console.debug(LogSource.Events, 'CUSTOM_EVENTS', 'emiting event..: ');
683
683
  EventUtils.emitEvent(evt, source, {payload, persistLevel, sender, ts});
684
684
  // Because async gets evaluated in a different order when in an sdk
685
685
  if (evt === 'name') {
@@ -693,7 +693,7 @@ const RtmConfigure = (props: any) => {
693
693
  }, 200);
694
694
  }
695
695
  } catch (error) {
696
- logger.error(
696
+ console.error(
697
697
  LogSource.Events,
698
698
  'CUSTOM_EVENTS',
699
699
  'error while emiting event:',
@@ -58,18 +58,6 @@ const useFindActiveSpeaker = () => {
58
58
  ? log(' %cLocal user started speaking', 'color:green')
59
59
  : log(' %cLocal user stopped speaking', 'color:red');
60
60
 
61
- isLocalUserSpeaking
62
- ? logger.log(
63
- LogSource.Internals,
64
- 'ACTIVE_SPEAKER',
65
- `${'%cLocal user started speaking'}, ${'color:green'}`,
66
- )
67
- : logger.log(
68
- LogSource.Internals,
69
- 'ACTIVE_SPEAKER',
70
- `${'%cLocal user stopped speaking'}, ${'color:red'}`,
71
- );
72
-
73
61
  //sending local user speaking and non speaking volume to remote users
74
62
  let volume = 0;
75
63
  //@ts-ignore