Skip to content

Commit

Permalink
feat: Upgrade native sdk 4.3.0 (#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl authored Feb 28, 2024
1 parent 9449dd2 commit 499d68c
Show file tree
Hide file tree
Showing 199 changed files with 13,313 additions and 9,908 deletions.
55 changes: 54 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ jobs:
echo Pub Score too low.
exit 1
fi
flutter_ut:
name: Flutter unit test
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter test

attach_docs:
name: Attach dartdoc
runs-on: ubuntu-latest
Expand Down Expand Up @@ -137,6 +149,32 @@ jobs:
cache: true
- run: flutter config --enable-macos-desktop
- run: bash ci/run_flutter_macos_integration_test.sh
- name: Get iris logs macos
if: always()
run: |
sleep 30
mkdir iris-logs-macos
if [ -f "${HOME}/Library/Containers/com.example.fakeTestApp/Data/Library/agora-iris.log" ]; then
cp -RP ${HOME}/Library/Containers/com.example.fakeTestApp/Data/Library/agora-iris.log ./iris-logs-macos/agora-iris-fake-test.log
fi
if [ -f "${HOME}/Library/Containers/com.example.integrationTestApp/Data/Library/agora-iris.log" ]; then
cp -RP ${HOME}/Library/Containers/com.example.integrationTestApp/Data/Library/agora-iris.log ./iris-logs-macos/agora-iris-integration-test.log
fi
CRASH_DIR="${HOME}/Library/Logs/DiagnosticReports/"
OUTPUT_CRASH_DIR=./iris-logs-macos/crash
mkdir -p ${OUTPUT_CRASH_DIR}
# Copy all files
cp -RP $CRASH_DIR* $OUTPUT_CRASH_DIR
- name: Upload iris logs macos
uses: actions/upload-artifact@v4
if: always()
with:
name: iris-logs-macos-${{ matrix.version }}
path: iris-logs-macos/*

integration_test_windows:
name: Run Flutter Windows Integration Tests
Expand All @@ -154,12 +192,22 @@ jobs:
with:
flutter-version: ${{ matrix.version }}
cache: true
- name: Set up crash dump environment
run: .\ci\setup-crash-dumps.ps1
shell: powershell
- run: flutter config --enable-windows-desktop
- name: Run windows integration test
shell: bash
run: |
bash ci/run_flutter_windows_integration_test.sh
- name: Upload crash dumps if exist
uses: actions/upload-artifact@v4
if: always()
with:
name: windows-crash-dumps-${{ matrix.version }}
path: ./CrashDumps/*

integration_test_web:
name: Run Flutter Web Integration Tests
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
Expand Down Expand Up @@ -435,7 +483,10 @@ jobs:
--flutter-package-name=agora_rtc_engine \
--iris-macos-cdn-url=${IRIS_CDN_URL_MACOS}
- run: flutter config --enable-macos-desktop
- run: bash ci/rendering_test_macos.sh
- name: Run macos rendering test
run: |
export SAVE_DEBUG_GOLDEN="true"
bash ci/rendering_test_macos.sh
rendering_test_windows:
name: Run Flutter Windows Rendering Tests
Expand Down Expand Up @@ -482,6 +533,8 @@ jobs:
- name: Run windows integration test
shell: bash
run: |
export SAVE_DEBUG_GOLDEN="true"
bash ci/rendering_test_windows.sh
rendering_test_web:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Download the `iris_web`(see the link below) artifact and include it as a `<scrip
</body>
</html>
```
Download: https://download.agora.io/staging/iris-web-rtc_n423_w4182_0.3.0.js
Download: https://download.agora.io/staging/iris-web-rtc_n430_w4182_0.5.0.js

**For Testing Purposes**

Expand All @@ -101,7 +101,7 @@ You can directly depend on the Agora CDN for testing purposes:
...
<body>
...
<script src="https://download.agora.io/staging/iris-web-rtc_n423_w4182_0.3.0.js"></script>
<script src="https://download.agora.io/staging/iris-web-rtc_n430_w4182_0.5.0.js"></script>
</body>
</html>
```
Expand Down
8 changes: 4 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ android {

dependencies {
if (isDev(project)) {
implementation fileTree(dir: "libs", include: ["*.jar"])
api fileTree(dir: "libs", include: ["*.jar"])
} else {
api 'io.agora.rtc:iris-rtc:4.2.6-build.3'
api 'io.agora.rtc:full-sdk:4.2.6'
api 'io.agora.rtc:full-screen-sharing:4.2.6'
api 'io.agora.rtc:iris-rtc:4.3.0-build.2'
api 'io.agora.rtc:full-sdk:4.3.0'
api 'io.agora.rtc:full-screen-sharing:4.3.0'
}
}

Expand Down
Loading

0 comments on commit 499d68c

Please sign in to comment.