Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support 4.5.0 #837

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
445220d
chore: readme #823
guoxianzhe Sep 25, 2024
c611c4e
chore: config terra and iris to 4.5.0
guoxianzhe Sep 27, 2024
5dacdc4
[AUTO] Generate codes by terra (#827)
sda-rob Sep 27, 2024
e9bee62
chore: update iris to 4.5.0-dev.6
guoxianzhe Oct 15, 2024
41f6b99
Merge branch 'dev/4.5.0' of ssh://github.com/AgoraIO-Extensions/react…
guoxianzhe Oct 15, 2024
e488654
chore: fix NMS-23504
guoxianzhe Oct 15, 2024
6ba0127
chore: optimize
guoxianzhe Oct 15, 2024
53ee7a5
chore: optimize
guoxianzhe Oct 15, 2024
2bbc602
chore: optimize
guoxianzhe Oct 15, 2024
dcc577f
chore: optimize
guoxianzhe Oct 15, 2024
faf297c
chore: optimize
guoxianzhe Oct 15, 2024
57577ad
chore: fix NMS-23582
guoxianzhe Oct 16, 2024
ab6d6b0
chore: fix NMS-23559
guoxianzhe Oct 16, 2024
1109320
chore: optimize
guoxianzhe Oct 16, 2024
6a41369
chore: remove encodedVideoFrame case
guoxianzhe Oct 25, 2024
41e3d9c
[AUTO] Generate codes by terra (#833)
sda-rob Oct 25, 2024
b8aed80
chore: optimize
guoxianzhe Oct 31, 2024
ffb4d30
Merge branch 'dev/4.5.0' of ssh://github.com/AgoraIO-Extensions/react…
guoxianzhe Oct 31, 2024
0ea7320
chore: bump to 4.5.0-dev.11
guoxianzhe Oct 31, 2024
d09111f
chore: bump to 4.5.0-dev.10
guoxianzhe Oct 31, 2024
c7112e9
chore: optimize
guoxianzhe Oct 31, 2024
4bf2277
chore: optimize
guoxianzhe Oct 31, 2024
13bc3a3
chore: optimize
guoxianzhe Oct 31, 2024
1087f12
chore: optimize
guoxianzhe Oct 31, 2024
3042633
chore: optimize
guoxianzhe Oct 31, 2024
b45a204
chore: optimize
guoxianzhe Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ runs:
with:
bundler-cache: true

- name: Setup activesupport
- name: Setup by gem
if: ${{ runner.os == 'macOS' }}
run:
gem install activesupport -v 7.0.8
run: gem install 'activesupport:7.0.8' 'xcodeproj:1.25.1'
shell: bash

- name: Setup Cocoapods
Expand All @@ -41,7 +40,7 @@ runs:

- name: Install dependencies
env:
POD_INSTALL: "0"
POD_INSTALL: '0'
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
shell: bash
47 changes: 33 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
> NOTE: These sdk and samples only for the Agora Video 4.x APIs. For examples using previous releases please see the following branches:
> - [3.x](https://github.com/AgoraIO-Extensions/react-native-agora/tree/3.x)
>
> - [3.x](https://github.com/AgoraIO-Extensions/react-native-agora/tree/3.x)

# react-native-agora

Expand Down Expand Up @@ -46,26 +47,26 @@ pod install
## General Usage

```typescript
import {createAgoraRtcEngine} from 'react-native-agora';
import { createAgoraRtcEngine } from 'react-native-agora';

const engine = createAgoraRtcEngine();
engine.initialize({appId: 'YOUR APP ID'});
engine.initialize({ appId: 'YOUR APP ID' });
```

or

```javascript
const createAgoraRtcEngine = require('react-native-agora');
const engine = createAgoraRtcEngine();
engine.initialize({appId: 'YOUR APP ID'});
engine.initialize({ appId: 'YOUR APP ID' });
```

## Using TypeScript

We suggest you use TypeScript to develop, or use TypeScript eslint to lint your code.

* [Getting Started with TypeScript](https://reactnative.dev/docs/typescript#getting-started-with-typescript)
* [Adding TypeScript to an Existing Project](https://reactnative.dev/docs/typescript#adding-typescript-to-an-existing-project)
- [Getting Started with TypeScript](https://reactnative.dev/docs/typescript#getting-started-with-typescript)
- [Adding TypeScript to an Existing Project](https://reactnative.dev/docs/typescript#adding-typescript-to-an-existing-project)

## Troubleshooting

Expand Down Expand Up @@ -117,19 +118,37 @@ Fixed in React Native 0.59.9.

Source: https://github.com/facebook/react-native/issues/25154

### FOREGROUND_SERVICE_MEDIA_PROJECTION permission

If you are not using screen sharing feature in your app, you should exclude Screen Sharing extension as below:

```
// build.gradle (project-level)
signingConfigs{
....
}

configurations.configureEach {
exclude group: "io.agora.rtc", module: "full-screen-sharing"
}
compileOptions{
...
}
```

## API

* [React Native API](https://api-ref.agora.io/en/video-sdk/react-native/4.x/API/rtc_api_overview_ng.html)
* [Android API](https://api-ref.agora.io/en/video-sdk/android/4.x/API/rtc_api_overview_ng.html)
* [iOS API](https://api-ref.agora.io/en/video-sdk/ios/4.x/API/rtc_api_overview_ng.html)
- [React Native API](https://api-ref.agora.io/en/video-sdk/react-native/4.x/API/rtc_api_overview_ng.html)
- [Android API](https://api-ref.agora.io/en/video-sdk/android/4.x/API/rtc_api_overview_ng.html)
- [iOS API](https://api-ref.agora.io/en/video-sdk/ios/4.x/API/rtc_api_overview_ng.html)

## Resources

* Complete [API Doc](https://docs.agora.io/en/) at the Developer Center
* [Changelog](CHANGELOG.md)
* [Release Notes](https://docs.agora.io/en/video-calling/reference/release-notes?platform=react-native)
* [File bugs about this sample](https://github.com/AgoraIO-Extensions/react-native-agora/issues)
* [React Native Getting Started](https://facebook.github.io/react-native/docs/getting-started.html)
- Complete [API Doc](https://docs.agora.io/en/) at the Developer Center
- [Changelog](CHANGELOG.md)
- [Release Notes](https://docs.agora.io/en/video-calling/reference/release-notes?platform=react-native)
- [File bugs about this sample](https://github.com/AgoraIO-Extensions/react-native-agora/issues)
- [React Native Getting Started](https://facebook.github.io/react-native/docs/getting-started.html)

## Contributing

Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
api 'io.agora.rtc:full-sdk:4.4.1'
implementation 'io.agora.rtc:full-screen-sharing:4.4.1'
implementation 'io.agora.rtc:iris-rtc:4.4.0-build.6'
api 'io.agora.rtc:agora-full-preview:4.5.0-dev.10'
implementation 'io.agora.rtc:full-screen-sharing-special:4.5.0-dev.10'
implementation 'io.agora.rtc:iris-rtc:4.5.0-dev.10'
}

if (isNewArchitectureEnabled()) {
Expand Down
1 change: 0 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Any scene of this project can run successfully alone.
| [ChannelMediaRelay](./src/examples/advanced/ChannelMediaRelay) | Starts relaying media streams across channels. This method can be used to implement scenarios such as co-host across channels |
| [ContentInspect](./src/examples/advanced/ContentInspect) | Content inspect |
| [DirectCdnStreaming](./src/examples/advanced/DirectCdnStreaming) | Direct CDN streaming |
| [EncodedVideoFrame](./src/examples/advanced/EncodedVideoFrame) | Encoded video frame |
| [Encryption](./src/examples/advanced/Encryption) | Enables/Disables the built-in encryption |
| [Extension](./src/examples/advanced/Extension) | Enables/Disables extensions |
| [JoinMultipleChannel](./src/examples/advanced/JoinMultipleChannel) | Joins a channel with the connection ID |
Expand Down
4 changes: 2 additions & 2 deletions example/ios/AgoraRtcNgExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@
INFOPLIST_FILE = ScreenShare/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = ScreenShare;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -922,7 +922,7 @@
INFOPLIST_FILE = ScreenShare/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = ScreenShare;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ target 'AgoraRtcNgExample' do
end

target 'ScreenShare' do
pod 'AgoraRtcEngine_iOS', '4.4.0'
pod 'AgoraRtcEngine_iOS_Preview', '4.5.0-dev.10'
end
64 changes: 12 additions & 52 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,46 +1,6 @@
PODS:
- AgoraIrisRTC_iOS (4.4.0-build.6)
- AgoraRtcEngine_iOS (4.4.0):
- AgoraRtcEngine_iOS/AIAEC (= 4.4.0)
- AgoraRtcEngine_iOS/AIAECLL (= 4.4.0)
- AgoraRtcEngine_iOS/AINS (= 4.4.0)
- AgoraRtcEngine_iOS/AINSLL (= 4.4.0)
- AgoraRtcEngine_iOS/AudioBeauty (= 4.4.0)
- AgoraRtcEngine_iOS/Basic (= 4.4.0)
- AgoraRtcEngine_iOS/ClearVision (= 4.4.0)
- AgoraRtcEngine_iOS/ContentInspect (= 4.4.0)
- AgoraRtcEngine_iOS/FaceCapture (= 4.4.0)
- AgoraRtcEngine_iOS/FaceDetection (= 4.4.0)
- AgoraRtcEngine_iOS/LipSync (= 4.4.0)
- AgoraRtcEngine_iOS/ReplayKit (= 4.4.0)
- AgoraRtcEngine_iOS/RtcBasic (= 4.4.0)
- AgoraRtcEngine_iOS/SpatialAudio (= 4.4.0)
- AgoraRtcEngine_iOS/VideoAv1CodecDec (= 4.4.0)
- AgoraRtcEngine_iOS/VideoAv1CodecEnc (= 4.4.0)
- AgoraRtcEngine_iOS/VideoCodecDec (= 4.4.0)
- AgoraRtcEngine_iOS/VideoCodecEnc (= 4.4.0)
- AgoraRtcEngine_iOS/VirtualBackground (= 4.4.0)
- AgoraRtcEngine_iOS/VQA (= 4.4.0)
- AgoraRtcEngine_iOS/AIAEC (4.4.0)
- AgoraRtcEngine_iOS/AIAECLL (4.4.0)
- AgoraRtcEngine_iOS/AINS (4.4.0)
- AgoraRtcEngine_iOS/AINSLL (4.4.0)
- AgoraRtcEngine_iOS/AudioBeauty (4.4.0)
- AgoraRtcEngine_iOS/Basic (4.4.0)
- AgoraRtcEngine_iOS/ClearVision (4.4.0)
- AgoraRtcEngine_iOS/ContentInspect (4.4.0)
- AgoraRtcEngine_iOS/FaceCapture (4.4.0)
- AgoraRtcEngine_iOS/FaceDetection (4.4.0)
- AgoraRtcEngine_iOS/LipSync (4.4.0)
- AgoraRtcEngine_iOS/ReplayKit (4.4.0)
- AgoraRtcEngine_iOS/RtcBasic (4.4.0)
- AgoraRtcEngine_iOS/SpatialAudio (4.4.0)
- AgoraRtcEngine_iOS/VideoAv1CodecDec (4.4.0)
- AgoraRtcEngine_iOS/VideoAv1CodecEnc (4.4.0)
- AgoraRtcEngine_iOS/VideoCodecDec (4.4.0)
- AgoraRtcEngine_iOS/VideoCodecEnc (4.4.0)
- AgoraRtcEngine_iOS/VirtualBackground (4.4.0)
- AgoraRtcEngine_iOS/VQA (4.4.0)
- AgoraIrisRTC_iOS (4.5.0-dev.10)
- AgoraRtcEngine_iOS_Preview (4.5.0-dev.10)
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
Expand Down Expand Up @@ -417,9 +377,9 @@ PODS:
- React-jsinspector (0.72.12)
- React-logger (0.72.12):
- glog
- react-native-agora (4.3.2):
- AgoraIrisRTC_iOS (= 4.4.0-build.6)
- AgoraRtcEngine_iOS (= 4.4.0)
- react-native-agora (4.4.0):
- AgoraIrisRTC_iOS (= 4.5.0-dev.10)
- AgoraRtcEngine_iOS_Preview (= 4.5.0-dev.10)
- RCT-Folly (= 2021.07.22.00)
- React-Core
- react-native-image-tools (0.8.1):
Expand Down Expand Up @@ -557,7 +517,7 @@ PODS:
- Yoga (~> 1.14)

DEPENDENCIES:
- AgoraRtcEngine_iOS (= 4.4.0)
- AgoraRtcEngine_iOS_Preview (= 4.5.0-dev.10)
- 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`)
Expand Down Expand Up @@ -633,9 +593,9 @@ DEPENDENCIES:
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
trunk:
- AgoraIrisRTC_iOS
- AgoraRtcEngine_iOS
- AgoraRtcEngine_iOS_Preview
- CocoaAsyncSocket
- Flipper
- Flipper-Boost-iOSX
Expand Down Expand Up @@ -752,8 +712,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
AgoraIrisRTC_iOS: b28c8aa87cfa3eeec9be2bf1df35e6b5c28aaff1
AgoraRtcEngine_iOS: 645039304ab4e32cb43506659056fb71f5d1a3b0
AgoraIrisRTC_iOS: 688c9b555985c8674a93db90520029c7aaeec1bb
AgoraRtcEngine_iOS_Preview: 9fa86185b30c53ec1d3a7713022ff249300ad2c0
boost: 7dcd2de282d72e344012f7d6564d024930a6a440
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
Expand Down Expand Up @@ -787,7 +747,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: 95bdf0ab46024ca9849e08739b6abd8fe489cd33
React-jsinspector: 8e291ed0ab371314de269001d6b9b25db6aabf42
React-logger: d4010de0b0564e63637ad08373bc73b5d919974b
react-native-agora: e440bb9c0abad211ff7ab6877dd12f07252c5168
react-native-agora: ae6574ef956922ea56915157d0da10dc96f693e7
react-native-image-tools: 88218449791389bbf550a2c475a3b564c8233c8b
react-native-safe-area-context: 7aa8e6d9d0f3100a820efb1a98af68aa747f9284
react-native-slider: 1cdd6ba29675df21f30544253bf7351d3c2d68c4
Expand Down Expand Up @@ -818,6 +778,6 @@ SPEC CHECKSUMS:
Yoga: 87e59f6d458e5061d2421086c5de994b3f7cd151
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: e6f852241acd4926e2d97e62a62ba5748df7ca3e
PODFILE CHECKSUM: 457b9fcbb1f82536b64371895e4a392dae8ede2b

COCOAPODS: 1.13.0
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"react-native-color-picker": "^0.6.0",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.9.0",
"react-native-image-tool": "github:LichKing-2234/react-native-image-tools",
"react-native-image-tool": "AgoraIO-Extensions/react-native-image-tools",
"react-native-picker-select": "^8.0.4",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.20.0",
Expand Down
Loading
Loading