agora-appbuilder-core 4.1.11 → 4.1.12-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 +1 -1
- package/template/ios/Podfile +63 -0
- package/template/ios/podspec-patches/boost.podspec +23 -0
- package/template/package.json +4 -4
- package/template/src/components/RTMConfigure-legacy.tsx +848 -0
- package/template/src/components/RTMConfigure.tsx +672 -436
- package/template/src/rtm/RTMEngine.ts +130 -33
- package/template/src/rtm-events-api/Events.ts +106 -30
- package/template/src/utils/useEndCall.ts +1 -1
package/template/ios/Podfile
CHANGED
|
@@ -5,9 +5,38 @@ 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
|
|
|
18
|
+
# ======================================
|
|
19
|
+
# BOOST PODSPEC CHECKSUM FIX
|
|
20
|
+
# This ensures all developers use the patched Boost source URL:
|
|
21
|
+
# https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2
|
|
22
|
+
# ======================================
|
|
23
|
+
require 'fileutils'
|
|
24
|
+
|
|
25
|
+
boost_src = File.join(__dir__, 'podspec-patches', 'boost.podspec')
|
|
26
|
+
boost_dst = File.join(__dir__, '..', 'node_modules', 'react-native',
|
|
27
|
+
'third-party-podspecs', 'boost.podspec')
|
|
28
|
+
|
|
29
|
+
if File.exist?(boost_src)
|
|
30
|
+
puts "➡️ Applying patched Boost podspec (checksum fix)"
|
|
31
|
+
FileUtils.cp(boost_src, boost_dst)
|
|
32
|
+
else
|
|
33
|
+
puts "⚠️ No patched Boost podspec found at #{boost_src}"
|
|
34
|
+
end
|
|
35
|
+
# ======================================
|
|
36
|
+
# BOOST PODSPEC CHECKSUM FIX
|
|
37
|
+
# ======================================
|
|
38
|
+
|
|
39
|
+
|
|
11
40
|
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
|
|
12
41
|
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
|
|
13
42
|
#
|
|
@@ -59,6 +88,40 @@ target 'HelloWorld' do
|
|
|
59
88
|
:mac_catalyst_enabled => false
|
|
60
89
|
)
|
|
61
90
|
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
|
91
|
+
|
|
92
|
+
# === BEGIN: Bitcode Stripping ===
|
|
93
|
+
bitcode_strip_path = `xcrun --find bitcode_strip`.chomp
|
|
94
|
+
|
|
95
|
+
def strip_bitcode(framework_path, bitcode_strip_path)
|
|
96
|
+
if File.exist?(framework_path)
|
|
97
|
+
puts ":wrench: Stripping bitcode from: #{framework_path}"
|
|
98
|
+
system("#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}")
|
|
99
|
+
else
|
|
100
|
+
puts ":warning: Framework not found: #{framework_path}"
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
frameworks_to_strip = [
|
|
105
|
+
# Agora RTM - device & simulator
|
|
106
|
+
"Pods/AgoraRtm_iOS/AgoraRtmKit.xcframework/ios-arm64_armv7/AgoraRtmKit.framework/AgoraRtmKit",
|
|
107
|
+
"Pods/AgoraRtm_iOS/AgoraRtmKit.xcframework/ios-arm64_i386_x86_64-simulator/AgoraRtmKit.framework/AgoraRtmKit",
|
|
108
|
+
|
|
109
|
+
# Hermes - device & simulator
|
|
110
|
+
"Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/hermes.framework/hermes",
|
|
111
|
+
"Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-simulator/hermes.framework/hermes"
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
frameworks_to_strip.each do |framework|
|
|
115
|
+
strip_bitcode(framework, bitcode_strip_path)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Disable ENABLE_BITCODE for all Pod targets
|
|
119
|
+
installer.pods_project.targets.each do |target|
|
|
120
|
+
target.build_configurations.each do |config|
|
|
121
|
+
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
# === END: Bitcode Stripping ===
|
|
62
125
|
end
|
|
63
126
|
end
|
|
64
127
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
Pod::Spec.new do |spec|
|
|
7
|
+
spec.name = 'boost'
|
|
8
|
+
spec.version = '1.76.0'
|
|
9
|
+
spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" }
|
|
10
|
+
spec.homepage = 'http://www.boost.org'
|
|
11
|
+
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
|
|
12
|
+
spec.authors = 'Rene Rivera'
|
|
13
|
+
spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2',
|
|
14
|
+
:sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' }
|
|
15
|
+
|
|
16
|
+
# Pinning to the same version as React.podspec.
|
|
17
|
+
spec.platforms = { :ios => '11.0' }
|
|
18
|
+
spec.requires_arc = false
|
|
19
|
+
|
|
20
|
+
spec.module_name = 'boost'
|
|
21
|
+
spec.header_dir = 'boost'
|
|
22
|
+
spec.preserve_path = 'boost'
|
|
23
|
+
end
|
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",
|