diff --git a/.github/workflows/terra.yml b/.github/workflows/terra.yml index f1f982a8..c0ae6ce3 100644 --- a/.github/workflows/terra.yml +++ b/.github/workflows/terra.yml @@ -38,7 +38,7 @@ jobs: - name: Generate ts interface run: | - yarn + yarn build:ts-interface - name: Generate comments uses: ./.github/actions/doc diff --git a/android/build.gradle b/android/build.gradle index d83ab83b..504b8605 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -160,9 +160,9 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') - api 'io.agora.rtc:full-sdk:4.2.3' - implementation 'io.agora.rtc:full-screen-sharing:4.2.3' - implementation 'io.agora.rtc:iris-rtc:4.2.3-build.4' + api 'io.agora.rtc:agora-full-preview:4.2.6-build.1' + implementation 'io.agora.rtc:full-screen-sharing-special:4.2.6-build.1' + implementation 'io.agora.rtc:iris-rtc:4.2.6-build.1' } if (isNewArchitectureEnabled()) { diff --git a/example/ios/Podfile b/example/ios/Podfile index f33faca4..5f4f5e2e 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -62,5 +62,5 @@ target 'AgoraRtcNgExample' do end target 'ScreenShare' do - pod 'AgoraRtcEngine_iOS', '4.2.3' + pod 'AgoraRtcEngine_iOS_Preview', '4.2.6-build.1' end diff --git a/package.json b/package.json index fa85e558..8ff325f3 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib", "prepare": "bob build", "release": "release-it", - "doc": "typedoc src --out ./docs --exclude \"example/**\"" + "doc": "typedoc src --out ./docs --exclude \"example/**\"", + "build:ts-interface": "ts-interface-builder src/*.ts -o src/ti/" }, "keywords": [ "react-native", diff --git a/react-native-agora.podspec b/react-native-agora.podspec index ab9f8e4d..b80bea88 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', '4.2.3' - s.dependency 'AgoraIrisRTC_iOS', '4.2.3-build.4' + s.dependency 'AgoraRtcEngine_iOS_Preview', '4.2.6-build.1' + s.dependency 'AgoraIrisRTC_iOS', '4.2.6-build.1' s.libraries = 'stdc++' s.framework = 'ReplayKit' end diff --git a/scripts/bootstrap.cjs b/scripts/bootstrap.cjs index 15bef558..c0bc82be 100644 --- a/scripts/bootstrap.cjs +++ b/scripts/bootstrap.cjs @@ -35,15 +35,11 @@ module.exports = { } if ( - child_process.spawnSync( - 'yarn', - ['ts-interface-builder', 'src/*.ts', '-o', 'src/ti/'], - { - stdio: 'inherit', - encoding: 'utf-8', - shell: true, - } - ).status !== 0 + child_process.spawnSync('yarn', ['build:ts-interface'], { + stdio: 'inherit', + encoding: 'utf-8', + shell: true, + }).status !== 0 ) { throw new Error('Failed to run ts-interface-builder'); }