agora-toolchain 3.2.0 → 3.3.1
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 +2 -2
- package/presets/webpack.dev.js +8 -0
- package/public/electron-native-libs/mac/FcrUISceneLauncher.node +0 -0
- package/public/electron-native-libs/win/FcrUISceneLauncher.node +0 -0
- package/scripts/pack-client-sdk.js +3 -2
- package/scripts/transpile.js +2 -0
- package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/FcrUIScene +0 -0
- package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/FcrEnums.h +0 -40
- package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/FcrError.h +0 -13
- package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/FcrObjects.h +0 -76
- package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/FcrUIPlatform.h +0 -87
- package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/IFcrUISceneCreator.h +0 -29
- package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Resources/Info.plist +0 -48
- package/public/electron-native-libs/win/FcrUIScene.dll +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agora-toolchain",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"agora-tc-transpile": "./scripts/transpile.js",
|
|
@@ -73,4 +73,4 @@
|
|
|
73
73
|
"mini-css-extract-plugin": "^2.9.1",
|
|
74
74
|
"electron-builder": "^24.13.3"
|
|
75
75
|
}
|
|
76
|
-
}
|
|
76
|
+
}
|
package/presets/webpack.dev.js
CHANGED
|
@@ -68,6 +68,14 @@ module.exports = createConfig = ({ entry, port = 3000, analyze }) => {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
if (modules.length) {
|
|
71
|
+
plugins.forEach((pluginName) => {
|
|
72
|
+
entries.main.push(
|
|
73
|
+
isSourceAttached()
|
|
74
|
+
? resolveAtBaseModule(`src/plugins/${pluginName}`)
|
|
75
|
+
: resolveAtBaseModule(`lib/plugins/${pluginName}`),
|
|
76
|
+
);
|
|
77
|
+
});
|
|
78
|
+
|
|
71
79
|
entries.main.push(resolveAtBaseModule(`src/modules/${modules[0]}/index.dev`));
|
|
72
80
|
}
|
|
73
81
|
|
|
Binary file
|
|
Binary file
|
|
@@ -33,7 +33,7 @@ function copyDirSync(source, target) {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
copyDirSync(resolveBase('lib'), resolveCwd('dist'));
|
|
36
|
+
// copyDirSync(resolveBase('lib'), resolveCwd('dist'));
|
|
37
37
|
|
|
38
38
|
// Let's get that intellisense working
|
|
39
39
|
/**
|
|
@@ -73,7 +73,7 @@ const options = {
|
|
|
73
73
|
nodeGypRebuild: false,
|
|
74
74
|
buildDependenciesFromSource: false,
|
|
75
75
|
extraMetadata: {
|
|
76
|
-
main: 'dist/
|
|
76
|
+
main: 'dist/electron/bootstrap-sdk.js',
|
|
77
77
|
bundleType: 'NATIVE_BUNDLE',
|
|
78
78
|
},
|
|
79
79
|
asarUnpack: ['node_modules/agora-electron-sdk'],
|
|
@@ -120,6 +120,7 @@ const options = {
|
|
|
120
120
|
NSMicrophoneUsageDescription: 'Fcr Meeting wants to acquire your microphone permission',
|
|
121
121
|
NSCameraUsageDescription: 'Fcr Meeting wants to acquire your camera permission',
|
|
122
122
|
NSScreenCaptureDescription: 'Fcr Meeting wants to acquire your screen capture permission',
|
|
123
|
+
LSUIElement: 1,
|
|
123
124
|
},
|
|
124
125
|
},
|
|
125
126
|
dmg: {
|
package/scripts/transpile.js
CHANGED
|
@@ -50,10 +50,12 @@ spawn(
|
|
|
50
50
|
console.log('Agora Toolchain: types built successfully!');
|
|
51
51
|
} else {
|
|
52
52
|
console.error('Agora Toolchain: failed to build types! code:', code);
|
|
53
|
+
process.exit(1);
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
} else {
|
|
57
58
|
console.error('Agora Toolchain: transpilation failed! code:', code);
|
|
59
|
+
process.exit(1);
|
|
58
60
|
}
|
|
59
61
|
});
|
|
Binary file
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#pragma once
|
|
3
|
-
|
|
4
|
-
namespace agora {
|
|
5
|
-
namespace Fcr {
|
|
6
|
-
|
|
7
|
-
enum class Region {
|
|
8
|
-
CN = 0,
|
|
9
|
-
NA = 1,
|
|
10
|
-
EU = 2,
|
|
11
|
-
AP = 3,
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
enum class UserRole {
|
|
15
|
-
host = 1,
|
|
16
|
-
assistant = 2,
|
|
17
|
-
participant = 3,
|
|
18
|
-
audience = 4,
|
|
19
|
-
observer = 5,
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
enum class StreamLatencyLevel {
|
|
23
|
-
low = 1,
|
|
24
|
-
ultraLow = 2,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
enum class VideoOutputOrientationMode {
|
|
28
|
-
adaptative = 0,
|
|
29
|
-
fixedLandScape = 1,
|
|
30
|
-
fixedPortrait = 2
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
enum class DegradationPreference {
|
|
34
|
-
quality = 0,
|
|
35
|
-
frameRate = 1,
|
|
36
|
-
balanced = 2
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
} // namespace Fcr
|
|
40
|
-
} // namespace agora
|
package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/FcrObjects.h
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
|
|
3
|
-
#include "FcrEnums.h"
|
|
4
|
-
#include "FcrUIPlatform.h"
|
|
5
|
-
#include <stdint.h>
|
|
6
|
-
|
|
7
|
-
namespace agora {
|
|
8
|
-
namespace Fcr {
|
|
9
|
-
|
|
10
|
-
struct VideoEncoderConfig {
|
|
11
|
-
uint32_t width;
|
|
12
|
-
uint32_t height;
|
|
13
|
-
uint32_t frameRate;
|
|
14
|
-
uint32_t bitRate;
|
|
15
|
-
VideoOutputOrientationMode orientationMode;
|
|
16
|
-
DegradationPreference degradationPreference;
|
|
17
|
-
bool isMirror;
|
|
18
|
-
|
|
19
|
-
VideoEncoderConfig(uint32_t width, uint32_t height, uint32_t frameRate,
|
|
20
|
-
uint32_t bitRate,
|
|
21
|
-
VideoOutputOrientationMode orientationMode,
|
|
22
|
-
DegradationPreference degradationPreference,
|
|
23
|
-
bool isMirror)
|
|
24
|
-
: width(width), height(height), frameRate(frameRate), bitRate(bitRate),
|
|
25
|
-
orientationMode(orientationMode),
|
|
26
|
-
degradationPreference(degradationPreference), isMirror(isMirror) {}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
struct DualVideoStreamConfig {
|
|
30
|
-
VideoEncoderConfig highVideoEncoderConfig;
|
|
31
|
-
VideoEncoderConfig lowVideoEncoderConfig;
|
|
32
|
-
bool enableDualStreamMode;
|
|
33
|
-
|
|
34
|
-
DualVideoStreamConfig(const VideoEncoderConfig &highVideoEncoderConfig,
|
|
35
|
-
const VideoEncoderConfig &lowVideoEncoderConfig,
|
|
36
|
-
bool enableDualStreamMode)
|
|
37
|
-
: highVideoEncoderConfig(highVideoEncoderConfig),
|
|
38
|
-
lowVideoEncoderConfig(lowVideoEncoderConfig),
|
|
39
|
-
enableDualStreamMode(enableDualStreamMode) {}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
struct UISceneConfig {
|
|
43
|
-
const char *appId;
|
|
44
|
-
const char *token;
|
|
45
|
-
Region region;
|
|
46
|
-
|
|
47
|
-
const char *roomId;
|
|
48
|
-
|
|
49
|
-
const char *userId;
|
|
50
|
-
const char *userName;
|
|
51
|
-
UserRole userRole;
|
|
52
|
-
// A json dictionary
|
|
53
|
-
const char *userProperties;
|
|
54
|
-
|
|
55
|
-
StreamLatencyLevel streamLatency;
|
|
56
|
-
DualVideoStreamConfig dualCameraVideoStreamConfig;
|
|
57
|
-
DualVideoStreamConfig dualScreenVideoStreamConfig;
|
|
58
|
-
// A json dictionary
|
|
59
|
-
const char *parameters;
|
|
60
|
-
|
|
61
|
-
UISceneConfig(const char *appId, const char *token, Region region,
|
|
62
|
-
const char *roomId, const char *userId, const char *userName,
|
|
63
|
-
UserRole userRole, const char *userProperties,
|
|
64
|
-
StreamLatencyLevel streamLatency,
|
|
65
|
-
const DualVideoStreamConfig &dualCameraVideoStreamConfig,
|
|
66
|
-
const DualVideoStreamConfig &dualScreenVideoStreamConfig,
|
|
67
|
-
const char *parameters)
|
|
68
|
-
: appId(appId), token(token), region(region), roomId(roomId),
|
|
69
|
-
userId(userId), userName(userName), userRole(userRole),
|
|
70
|
-
userProperties(userProperties), streamLatency(streamLatency),
|
|
71
|
-
dualCameraVideoStreamConfig(dualCameraVideoStreamConfig),
|
|
72
|
-
dualScreenVideoStreamConfig(dualScreenVideoStreamConfig),
|
|
73
|
-
parameters(parameters) {}
|
|
74
|
-
};
|
|
75
|
-
} // namespace Fcr
|
|
76
|
-
} // namespace agora
|
package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/FcrUIPlatform.h
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
#ifndef __FCRUI_PLATFORM_H__
|
|
2
|
-
#define __FCRUI_PLATFORM_H__
|
|
3
|
-
|
|
4
|
-
#include <stdint.h>
|
|
5
|
-
#if defined(__APPLE__)
|
|
6
|
-
#include <TargetConditionals.h>
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
#ifdef __cplusplus
|
|
10
|
-
#define EXTERN_C extern "C"
|
|
11
|
-
#define EXTERN_C_ENTER extern "C" {
|
|
12
|
-
#define EXTERN_C_LEAVE }
|
|
13
|
-
#else
|
|
14
|
-
#define EXTERN_C
|
|
15
|
-
#define EXTERN_C_ENTER
|
|
16
|
-
#define EXTERN_C_LEAVE
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
#ifdef __GNUC__
|
|
20
|
-
#define AGORA_GCC_VERSION_AT_LEAST(x, y) \
|
|
21
|
-
(__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y))
|
|
22
|
-
#else
|
|
23
|
-
#define AGORA_GCC_VERSION_AT_LEAST(x, y) 0
|
|
24
|
-
#endif
|
|
25
|
-
|
|
26
|
-
#if defined(_WIN32)
|
|
27
|
-
#define FCRUI_CALL __cdecl
|
|
28
|
-
#if defined(FCRUI_EXPORT)
|
|
29
|
-
#define FCRUI_API EXTERN_C __declspec(dllexport)
|
|
30
|
-
#define FCRUI_CPP_API __declspec(dllexport)
|
|
31
|
-
#else
|
|
32
|
-
#define FCRUI_API EXTERN_C __declspec(dllimport)
|
|
33
|
-
#define FCRUI_CPP_API __declspec(dllimport)
|
|
34
|
-
#endif
|
|
35
|
-
#elif defined(__APPLE__)
|
|
36
|
-
#if AGORA_GCC_VERSION_AT_LEAST(3, 3)
|
|
37
|
-
#define FCRUI_API __attribute__((visibility("default"))) EXTERN_C
|
|
38
|
-
#define FCRUI_CPP_API __attribute__((visibility("default")))
|
|
39
|
-
#else
|
|
40
|
-
#define FCRUI_API EXTERN_C
|
|
41
|
-
#define FCRUI_CPP_API
|
|
42
|
-
#endif
|
|
43
|
-
#define FCRUI_CALL
|
|
44
|
-
#elif defined(__ANDROID__) || defined(__linux__)
|
|
45
|
-
#if AGORA_GCC_VERSION_AT_LEAST(3, 3)
|
|
46
|
-
#define FCRUI_API EXTERN_C __attribute__((visibility("default")))
|
|
47
|
-
#define FCRUI_CPP_API __attribute__((visibility("default")))
|
|
48
|
-
#else
|
|
49
|
-
#define FCRUI_API EXTERN_C
|
|
50
|
-
#define FCRUI_CPP_API
|
|
51
|
-
#endif
|
|
52
|
-
#define FCRUI_CALL
|
|
53
|
-
#else
|
|
54
|
-
#define FCRUI_API EXTERN_C
|
|
55
|
-
#define FCRUI_CPP_API
|
|
56
|
-
#define FCRUI_CALL
|
|
57
|
-
#endif
|
|
58
|
-
|
|
59
|
-
#if AGORA_GCC_VERSION_AT_LEAST(3, 1)
|
|
60
|
-
#define FCRUI_DEPRECATED __attribute__((deprecated))
|
|
61
|
-
#elif defined(_MSC_VER)
|
|
62
|
-
#define FCRUI_DEPRECATED
|
|
63
|
-
#else
|
|
64
|
-
#define FCRUI_DEPRECATED
|
|
65
|
-
#endif
|
|
66
|
-
|
|
67
|
-
#if defined(__GUNC__)
|
|
68
|
-
#define COMPILER_IS_GCC
|
|
69
|
-
#if defined(__MINGW32__) || defined(__MINGW64__)
|
|
70
|
-
#define COMPILER_IS_MINGW
|
|
71
|
-
#endif
|
|
72
|
-
#if defined(__MSYS__)
|
|
73
|
-
#define COMPILER_ON_MSYS
|
|
74
|
-
#endif
|
|
75
|
-
#if defined(__CYGWIN__) || defined(__CYGWIN32__)
|
|
76
|
-
#define COMPILER_ON_CYGWIN
|
|
77
|
-
#endif
|
|
78
|
-
#if defined(__clang__)
|
|
79
|
-
#define COMPILER_IS_CLANG
|
|
80
|
-
#endif
|
|
81
|
-
#elif defined(_MSC_VER)
|
|
82
|
-
#define COMPILER_IS_MSVC
|
|
83
|
-
#else
|
|
84
|
-
#define COMPILER_IS_UNKNOWN
|
|
85
|
-
#endif
|
|
86
|
-
|
|
87
|
-
#endif
|
package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Headers/IFcrUISceneCreator.h
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
|
|
3
|
-
#include "FcrError.h"
|
|
4
|
-
#include "FcrObjects.h"
|
|
5
|
-
#include "FcrUIPlatform.h"
|
|
6
|
-
|
|
7
|
-
namespace agora {
|
|
8
|
-
namespace Fcr {
|
|
9
|
-
|
|
10
|
-
class IUISceneCreatorObserver {
|
|
11
|
-
public:
|
|
12
|
-
FCRUI_CPP_API virtual void onLaunchSuccess() = 0;
|
|
13
|
-
FCRUI_CPP_API virtual void onLaunchFailure(ErrorCode error) = 0;
|
|
14
|
-
FCRUI_CPP_API virtual void onExited() = 0;
|
|
15
|
-
FCRUI_CPP_API virtual void onReleaseCompelete() = 0;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
class IUISceneCreator {
|
|
19
|
-
public:
|
|
20
|
-
FCRUI_CPP_API static IUISceneCreator *createCreator();
|
|
21
|
-
FCRUI_CPP_API virtual ~IUISceneCreator() = default;
|
|
22
|
-
FCRUI_CPP_API virtual ErrorCode launch(UISceneConfig config) = 0;
|
|
23
|
-
FCRUI_CPP_API virtual void release() = 0;
|
|
24
|
-
|
|
25
|
-
FCRUI_CPP_API virtual void registerObserver(IUISceneCreatorObserver *) = 0;
|
|
26
|
-
FCRUI_CPP_API virtual void unRegisterObserver(IUISceneCreatorObserver *) = 0;
|
|
27
|
-
};
|
|
28
|
-
} // namespace Fcr
|
|
29
|
-
} // namespace agora
|
package/public/electron-native-libs/mac/FcrUIScene.framework/Versions/A/Resources/Info.plist
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>BuildMachineOSBuild</key>
|
|
6
|
-
<string>21G419</string>
|
|
7
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
8
|
-
<string>English</string>
|
|
9
|
-
<key>CFBundleExecutable</key>
|
|
10
|
-
<string>FcrUIScene</string>
|
|
11
|
-
<key>CFBundleIdentifier</key>
|
|
12
|
-
<string>io.agora.fcruiscene</string>
|
|
13
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
-
<string>6.0</string>
|
|
15
|
-
<key>CFBundlePackageType</key>
|
|
16
|
-
<string>FMWK</string>
|
|
17
|
-
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>3.0.0</string>
|
|
19
|
-
<key>CFBundleSignature</key>
|
|
20
|
-
<string>????</string>
|
|
21
|
-
<key>CFBundleSupportedPlatforms</key>
|
|
22
|
-
<array>
|
|
23
|
-
<string>MacOSX</string>
|
|
24
|
-
</array>
|
|
25
|
-
<key>CFBundleVersion</key>
|
|
26
|
-
<string>3.0.0</string>
|
|
27
|
-
<key>CSResourcesFileMapped</key>
|
|
28
|
-
<true/>
|
|
29
|
-
<key>DTCompiler</key>
|
|
30
|
-
<string>com.apple.compilers.llvm.clang.1_0</string>
|
|
31
|
-
<key>DTPlatformBuild</key>
|
|
32
|
-
<string>13F100</string>
|
|
33
|
-
<key>DTPlatformName</key>
|
|
34
|
-
<string>macosx</string>
|
|
35
|
-
<key>DTPlatformVersion</key>
|
|
36
|
-
<string>12.3</string>
|
|
37
|
-
<key>DTSDKBuild</key>
|
|
38
|
-
<string>21E226</string>
|
|
39
|
-
<key>DTSDKName</key>
|
|
40
|
-
<string>macosx12.3</string>
|
|
41
|
-
<key>DTXcode</key>
|
|
42
|
-
<string>1341</string>
|
|
43
|
-
<key>DTXcodeBuild</key>
|
|
44
|
-
<string>13F100</string>
|
|
45
|
-
<key>LSMinimumSystemVersion</key>
|
|
46
|
-
<string>10.10</string>
|
|
47
|
-
</dict>
|
|
48
|
-
</plist>
|
|
Binary file
|