agora-appbuilder-core 4.0.0-spl.16 → 4.0.0-spl.17

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.0-spl.16",
3
+ "version": "4.0.0-spl.17",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -165,9 +165,18 @@ if ($config.GEO_FENCING) {
165
165
  }
166
166
 
167
167
  if ($config.LOG_ENABLED) {
168
- AgoraRTC.setLogLevel(0);
168
+ if (
169
+ (APPBUILDER_PUBLIC_TARGET === 'wsdk' ||
170
+ APPBUILDER_PUBLIC_TARGET === 'rsdk') &&
171
+ APPBUILDER_PUBLIC_NODE_ENV === 'production'
172
+ ) {
173
+ AgoraRTC.setLogLevel(4);
174
+ } else {
175
+ AgoraRTC.setLogLevel(0);
176
+ }
169
177
  AgoraRTC.enableLogUpload();
170
178
  } else {
179
+ AgoraRTC.setLogLevel(4);
171
180
  AgoraRTC.disableLogUpload();
172
181
  }
173
182
 
@@ -28,10 +28,6 @@ interface AppBuilderReactSdkInterface extends AppBuilderSdkApiInterface {
28
28
  View: React.FC;
29
29
  }
30
30
 
31
- if (APPBUILDER_PUBLIC_NODE_ENV === 'production') {
32
- AgoraRTC.setLogLevel(4);
33
- }
34
-
35
31
  const AppBuilderReactSdkApi: AppBuilderReactSdkInterface = {
36
32
  ...AppBuilderSdkApi,
37
33
  View: SDKAppWrapper,
@@ -10,10 +10,6 @@ import AgoraRTC from 'agora-rtc-sdk-ng';
10
10
  export * from 'customization-api';
11
11
  export * from 'customization-implementation';
12
12
 
13
- if (APPBUILDER_PUBLIC_NODE_ENV === 'production') {
14
- AgoraRTC.setLogLevel(4);
15
- }
16
-
17
13
  const AppBuilderWebSdkApi: AppBuilderSdkApiInterface = AppBuilderSdkApi;
18
14
 
19
15
  // init code