agora-appbuilder-core 4.1.8 → 4.1.9-beta.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 +1 -1
- package/template/android/app/build.gradle +7 -0
- package/template/bridge/rtm/web/Types.ts +183 -0
- package/template/bridge/rtm/web/index-legacy.ts +540 -0
- package/template/bridge/rtm/web/index.ts +423 -491
- package/template/defaultConfig.js +3 -3
- package/template/ios/Podfile +41 -0
- package/template/package.json +4 -4
- package/template/src/atoms/TextInput.tsx +3 -0
- package/template/src/components/RTMConfigure-legacy.tsx +848 -0
- package/template/src/components/RTMConfigure.tsx +644 -426
- package/template/src/rtm/RTMEngine.ts +130 -33
- package/template/src/rtm-events-api/Events.ts +106 -30
- package/template/src/subComponents/ChatInput.tsx +72 -1
- package/template/src/subComponents/caption/useSTTAPI.tsx +2 -2
- package/template/src/subComponents/caption/utils.ts +50 -14
- package/template/src/utils/useEndCall.ts +1 -1
- package/template/src/utils/useJoinRoom.ts +0 -1
|
@@ -11,7 +11,7 @@ const DefaultConfig = {
|
|
|
11
11
|
PRECALL: true,
|
|
12
12
|
CHAT: true,
|
|
13
13
|
CLOUD_RECORDING: false,
|
|
14
|
-
RECORDING_MODE: '
|
|
14
|
+
RECORDING_MODE: 'MIX',
|
|
15
15
|
SCREEN_SHARING: true,
|
|
16
16
|
LANDING_SUB_HEADING: 'The Real-Time Engagement Platform',
|
|
17
17
|
ENCRYPTION_ENABLED: false,
|
|
@@ -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',
|
|
81
|
-
CORE_VERSION: '4.1.8',
|
|
80
|
+
CLI_VERSION: '3.1.8-3',
|
|
81
|
+
CORE_VERSION: '4.1.8-3',
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
package/template/ios/Podfile
CHANGED
|
@@ -5,6 +5,13 @@ require Pod::Executable.execute_command('node', ['-p',
|
|
|
5
5
|
{paths: [process.argv[1]]},
|
|
6
6
|
)', __dir__]).strip
|
|
7
7
|
|
|
8
|
+
require 'cocoapods'
|
|
9
|
+
class Pod::Installer::Xcode::TargetValidator
|
|
10
|
+
def verify_no_duplicate_framework_and_library_names(*)
|
|
11
|
+
# Do nothing - allows duplicate frameworks
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
8
15
|
platform :ios, min_ios_version_supported
|
|
9
16
|
prepare_react_native_project!
|
|
10
17
|
|
|
@@ -59,6 +66,40 @@ target 'HelloWorld' do
|
|
|
59
66
|
:mac_catalyst_enabled => false
|
|
60
67
|
)
|
|
61
68
|
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
|
69
|
+
|
|
70
|
+
# === BEGIN: Bitcode Stripping ===
|
|
71
|
+
bitcode_strip_path = `xcrun --find bitcode_strip`.chomp
|
|
72
|
+
|
|
73
|
+
def strip_bitcode(framework_path, bitcode_strip_path)
|
|
74
|
+
if File.exist?(framework_path)
|
|
75
|
+
puts ":wrench: Stripping bitcode from: #{framework_path}"
|
|
76
|
+
system("#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}")
|
|
77
|
+
else
|
|
78
|
+
puts ":warning: Framework not found: #{framework_path}"
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
frameworks_to_strip = [
|
|
83
|
+
# Agora RTM - device & simulator
|
|
84
|
+
"Pods/AgoraRtm_iOS/AgoraRtmKit.xcframework/ios-arm64_armv7/AgoraRtmKit.framework/AgoraRtmKit",
|
|
85
|
+
"Pods/AgoraRtm_iOS/AgoraRtmKit.xcframework/ios-arm64_i386_x86_64-simulator/AgoraRtmKit.framework/AgoraRtmKit",
|
|
86
|
+
|
|
87
|
+
# Hermes - device & simulator
|
|
88
|
+
"Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/hermes.framework/hermes",
|
|
89
|
+
"Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-simulator/hermes.framework/hermes"
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
frameworks_to_strip.each do |framework|
|
|
93
|
+
strip_bitcode(framework, bitcode_strip_path)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Disable ENABLE_BITCODE for all Pod targets
|
|
97
|
+
installer.pods_project.targets.each do |target|
|
|
98
|
+
target.build_configurations.each do |config|
|
|
99
|
+
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
# === END: Bitcode Stripping ===
|
|
62
103
|
end
|
|
63
104
|
end
|
|
64
105
|
|
package/template/package.json
CHANGED
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"url": "https://github.com/AgoraIO-Community/app-builder-core"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@datadog/browser-logs": "
|
|
52
|
-
"@datadog/mobile-react-native": "
|
|
51
|
+
"@datadog/browser-logs": "6.17.0",
|
|
52
|
+
"@datadog/mobile-react-native": "2.11.0",
|
|
53
53
|
"@gorhom/bottom-sheet": "4.4.7",
|
|
54
54
|
"@netless/react-native-whiteboard": "^0.0.14",
|
|
55
55
|
"@openspacelabs/react-native-zoomable-view": "^2.1.1",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"agora-extension-ai-denoiser": "1.1.0",
|
|
64
64
|
"agora-extension-beauty-effect": "^1.0.2-beta",
|
|
65
65
|
"agora-extension-virtual-background": "^1.1.3",
|
|
66
|
-
"agora-react-native-rtm": "
|
|
66
|
+
"agora-react-native-rtm": "2.2.4",
|
|
67
67
|
"agora-rtc-sdk-ng": "4.23.4",
|
|
68
|
-
"agora-rtm-sdk": "
|
|
68
|
+
"agora-rtm-sdk": "2.2.2",
|
|
69
69
|
"buffer": "^6.0.3",
|
|
70
70
|
"electron-log": "4.3.5",
|
|
71
71
|
"electron-squirrel-startup": "1.0.0",
|
|
@@ -17,6 +17,9 @@ import hexadecimalTransparency from '../utils/hexadecimalTransparency';
|
|
|
17
17
|
|
|
18
18
|
interface TextInputCustomProps extends TextInputProps {
|
|
19
19
|
setRef?: (ref: any) => void;
|
|
20
|
+
onCompositionStart?: () => void;
|
|
21
|
+
onCompositionEnd?: () => void;
|
|
22
|
+
onInput?: (event: any) => void;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
const TextInputCustom = (props: TextInputCustomProps) => {
|