diff --git a/android/build.gradle b/android/build.gradle index 560abc6c..a96dd74f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -166,7 +166,7 @@ dependencies { implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') api 'io.agora.rtc:full-sdk:4.3.0' implementation 'io.agora.rtc:full-screen-sharing:4.3.0' - implementation 'io.agora.rtc:iris-rtc:4.3.0-build.2' + implementation 'io.agora.rtc:iris-rtc:4.3.0-build.5' } if (isNewArchitectureEnabled()) { diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index b29a3e96..7245c9c7 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - AgoraIrisRTC_iOS (4.3.0-build.2) + - AgoraIrisRTC_iOS (4.3.0-build.5) - AgoraRtcEngine_iOS (4.3.0): - AgoraRtcEngine_iOS/AIAEC (= 4.3.0) - AgoraRtcEngine_iOS/AINS (= 4.3.0) @@ -407,8 +407,8 @@ PODS: - React-jsinspector (0.72.10) - React-logger (0.72.10): - glog - - react-native-agora (4.2.6): - - AgoraIrisRTC_iOS (= 4.3.0-build.2) + - react-native-agora (4.3.0): + - AgoraIrisRTC_iOS (= 4.3.0-build.5) - AgoraRtcEngine_iOS (= 4.3.0) - RCT-Folly (= 2021.07.22.00) - React-Core @@ -747,7 +747,7 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/yoga" SPEC CHECKSUMS: - AgoraIrisRTC_iOS: 2caf892fa827777fe43b6ac7d12e9b42579eb865 + AgoraIrisRTC_iOS: 499d6035bbf912a458bfdef161e9404a3b62cc3c AgoraRtcEngine_iOS: 267c0980c1fb97e056d05b850f8629b05b6e467a boost: 7dcd2de282d72e344012f7d6564d024930a6a440 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 @@ -782,7 +782,7 @@ SPEC CHECKSUMS: React-jsiexecutor: 45ef2ec6dcde31b90469175ec76ddac77b91dfc3 React-jsinspector: de0198127395fec3058140a20c045167f761bb16 React-logger: dc3a2b174d79c2da635059212747d8d929b54e06 - react-native-agora: d485857dafe397d26f2ba2355b4b7db98508bc17 + react-native-agora: d876ed4bdf5a4813989acc23c0974d4380a51e8b react-native-agora-rawdata: 097895cdccd8fcf3cff5dffe23372f5d3c89fd31 react-native-image-tools: 88218449791389bbf550a2c475a3b564c8233c8b react-native-safe-area-context: 7aa8e6d9d0f3100a820efb1a98af68aa747f9284 diff --git a/react-native-agora.podspec b/react-native-agora.podspec index f3609819..b678fbd8 100644 --- a/react-native-agora.podspec +++ b/react-native-agora.podspec @@ -41,7 +41,7 @@ Pod::Spec.new do |s| end s.dependency 'AgoraRtcEngine_iOS', '4.3.0' - s.dependency 'AgoraIrisRTC_iOS', '4.3.0-build.2' + s.dependency 'AgoraIrisRTC_iOS', '4.3.0-build.5' s.libraries = 'stdc++' s.framework = 'ReplayKit' end diff --git a/src/internal/RtcEngineExInternal.ts b/src/internal/RtcEngineExInternal.ts index 004c6494..568227e0 100644 --- a/src/internal/RtcEngineExInternal.ts +++ b/src/internal/RtcEngineExInternal.ts @@ -79,6 +79,9 @@ export class RtcEngineExInternal extends IRtcEngineExImpl { override release(sync: boolean = false) { this._media_engine.release(); this._local_spatial_audio_engine.release(); + RtcEngineExInternal._event_handlers.map((it) => { + super.unregisterEventHandler(it); + }); RtcEngineExInternal._event_handlers = []; RtcEngineExInternal._direct_cdn_streaming_event_handler = []; RtcEngineExInternal._metadata_observer = [];