From d497944f368d3ba3074a466c18447aa8f66b2b74 Mon Sep 17 00:00:00 2001 From: gxz Date: Thu, 29 Aug 2024 10:40:51 +0800 Subject: [PATCH] chore: optimize --- android/build.gradle | 6 +++--- example/ios/Podfile | 2 +- example/ios/Podfile.lock | 10 +++++----- .../advanced/PictureInPicture/PictureInPicture.tsx | 6 +++++- react-native-agora.podspec | 4 ++-- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index daa4a57a..976a6248 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -164,9 +164,9 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') - api 'io.agora.rtc:agora-full-preview:4.3.2.2-pip.4' - implementation 'io.agora.rtc:full-screen-sharing-special:4.3.2.2-pip.4' - implementation 'io.agora.rtc:iris-rtc:4.3.2.2-pip.4' + api 'io.agora.rtc:agora-full-preview:4.3.2.2-pip.5' + implementation 'io.agora.rtc:full-screen-sharing-special:4.3.2.2-pip.5' + implementation 'io.agora.rtc:iris-rtc:4.3.2.2-pip.5' } if (isNewArchitectureEnabled()) { diff --git a/example/ios/Podfile b/example/ios/Podfile index 3e71371c..1c792006 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -62,5 +62,5 @@ target 'AgoraRtcNgExample' do end target 'ScreenShare' do - pod 'AgoraRtcEngine_iOS_Preview', '4.3.2.2-pip.4' + pod 'AgoraRtcEngine_iOS_Preview', '4.3.2.2-pip.5' end diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index a9366090..26981506 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,6 +1,6 @@ PODS: - - AgoraIrisRTC_iOS (4.3.2.2-pip.4) - - AgoraRtcEngine_iOS_Preview (4.3.2.2-pip.4) + - AgoraIrisRTC_iOS (4.3.2.2-pip.5) + - AgoraRtcEngine_iOS_Preview (4.3.2.2-pip.5) - boost (1.76.0) - CocoaAsyncSocket (7.6.5) - DoubleConversion (1.1.6) @@ -378,8 +378,8 @@ PODS: - React-logger (0.72.12): - glog - react-native-agora (4.3.2): - - AgoraIrisRTC_iOS (= 4.3.2.2-pip.4) - - AgoraRtcEngine_iOS_Preview (= 4.3.2.2-pip.4) + - AgoraIrisRTC_iOS (= 4.3.2.2-pip.5) + - AgoraRtcEngine_iOS_Preview (= 4.3.2.2-pip.5) - RCT-Folly (= 2021.07.22.00) - React-Core - react-native-agora-rawdata (0.1.0): @@ -519,7 +519,7 @@ PODS: - Yoga (~> 1.14) DEPENDENCIES: - - AgoraRtcEngine_iOS_Preview (= 4.3.2.2-pip.4) + - AgoraRtcEngine_iOS_Preview (= 4.3.2.2-pip.5) - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) diff --git a/example/src/examples/advanced/PictureInPicture/PictureInPicture.tsx b/example/src/examples/advanced/PictureInPicture/PictureInPicture.tsx index 2d26c31f..4769a010 100644 --- a/example/src/examples/advanced/PictureInPicture/PictureInPicture.tsx +++ b/example/src/examples/advanced/PictureInPicture/PictureInPicture.tsx @@ -500,7 +500,11 @@ export default class PictureInPicture if (Platform.OS === 'android') { this.startPip(); } else { - this.startPip(); + if (pipState === PipState.PipStateStarted) { + this.stopPip(); + } else { + this.startPip(); + } } }} /> diff --git a/react-native-agora.podspec b/react-native-agora.podspec index 899c7322..8a70b51e 100644 --- a/react-native-agora.podspec +++ b/react-native-agora.podspec @@ -40,8 +40,8 @@ Pod::Spec.new do |s| end end - s.dependency 'AgoraRtcEngine_iOS_Preview', '4.3.2.2-pip.4' - s.dependency 'AgoraIrisRTC_iOS', '4.3.2.2-pip.4' + s.dependency 'AgoraRtcEngine_iOS_Preview', '4.3.2.2-pip.5' + s.dependency 'AgoraIrisRTC_iOS', '4.3.2.2-pip.5' s.libraries = 'stdc++' s.framework = 'ReplayKit' end