From a174c446f85e348c26580ac0c86ca371b027073e Mon Sep 17 00:00:00 2001 From: HUI Date: Mon, 28 Dec 2020 17:52:30 +0800 Subject: [PATCH] feat: adapt to `react-native-agora@3.2.+` --- .../ios/AgoraRawdataExample.xcodeproj/project.pbxproj | 10 +++++++--- example/package.json | 2 +- package.json | 2 +- react-native-agora-rawdata.podspec | 8 ++++---- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/example/ios/AgoraRawdataExample.xcodeproj/project.pbxproj b/example/ios/AgoraRawdataExample.xcodeproj/project.pbxproj index 28354c8..f423a92 100644 --- a/example/ios/AgoraRawdataExample.xcodeproj/project.pbxproj +++ b/example/ios/AgoraRawdataExample.xcodeproj/project.pbxproj @@ -200,13 +200,17 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-AgoraRawdataExample/Pods-AgoraRawdataExample-frameworks.sh", - "${PODS_ROOT}/AgoraRtcEngine_iOS_Crypto/Agora_Native_SDK_for_iOS_FULL/libs/AgoraRtcKit.framework", - "${PODS_ROOT}/AgoraRtcEngine_iOS_Crypto/Agora_Native_SDK_for_iOS_FULL/libs/AgoraRtcCryptoLoader.framework", + "${PODS_ROOT}/AgoraRtcEngine_iOS/AgoraRtcKit.framework", + "${PODS_ROOT}/AgoraRtcEngine_iOS/Agorafdkaac.framework", + "${PODS_ROOT}/AgoraRtcEngine_iOS/Agoraffmpeg.framework", + "${PODS_ROOT}/AgoraRtcEngine_iOS/AgoraSoundTouch.framework", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AgoraRtcKit.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AgoraRtcCryptoLoader.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Agorafdkaac.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Agoraffmpeg.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AgoraSoundTouch.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; diff --git a/example/package.json b/example/package.json index e860bd2..c67a576 100644 --- a/example/package.json +++ b/example/package.json @@ -11,7 +11,7 @@ "dependencies": { "react": "16.11.0", "react-native": "0.62.2", - "react-native-agora": "^3.1.7" + "react-native-agora": "^3.2.2" }, "devDependencies": { "@babel/core": "^7.9.6", diff --git a/package.json b/package.json index d47873a..757d175 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "peerDependencies": { "react": "*", "react-native": "*", - "react-native-agora": ">=3.1.7" + "react-native-agora": ">=3.2.2" }, "jest": { "preset": "react-native", diff --git a/react-native-agora-rawdata.podspec b/react-native-agora-rawdata.podspec index 2e7133f..a8f8aa8 100644 --- a/react-native-agora-rawdata.podspec +++ b/react-native-agora-rawdata.podspec @@ -13,12 +13,12 @@ Pod::Spec.new do |s| s.platforms = { :ios => "9.0" } s.source = { :git => "https://github.com/LichKing-2234/react-native-agora-rawdata.git", :tag => "#{s.version}" } - + s.source_files = "ios/**/*.{h,m,mm,swift}", "cpp/apple/**/*.{h,cpp}" - + s.static_framework = true s.swift_version = "4.0" - + s.dependency "React" - s.dependency "AgoraRtcEngine_iOS_Crypto", "3.1.2" + s.dependency "AgoraRtcEngine_iOS" end