Skip to content

Commit b7ac81b

Browse files
cleven1zhaoyongqiangsync2giteexgfd3zshbleaker
authored
Dev/4.3.1 (#375)
* update podfile source to china * update podfile source to china * gitee sync test * [Android] gitee sync >> use china repos. * fix sync shell * [Android]revert to use common repo url. * update sync script. * update sync script. * update sync script. * Add download agora SDK when executing pod install and modify dependencies * gitee sync modify source url * modify podfile file script * modify podfile file script * update download ijk and swiftlint * update ijk download script * iOS Adapt to RTC 4.3.1 version * [windows] Adapt to 4.3.1 sdk and ajust examples. * mac Adapt to RTC 4.3.1 version * [windows]enable use_audio4 * [Android]Adapt to 4.3.1 sdk * [Android][Audio]Adapt to 4.3.1 sdk * Change way of using salt (#374) * Change way of using salt * Add macOS support * [Windows]perfect screen parameter adjusting. * [windows]change way of using salt. * [Android]Renew beauty api and etc. * add package_script * [windows]fix case switch crash. * [windows]fix release compile problem. * [windows]change slider notify to NW_RELEASEDCAPTURE. * [windows]show startCameraCapture error. * [Android]Fix fragment back bug. * [windows]fix original video bug (NMS-20350). * fix pip bug * fix crash bug * fix volume bug * fix stutter bug * [Android]Update beauty api and fix bug(NMS-20393) * [Android]Fix beauty effect bug. * [Android]Update gradle config. * [Android]Update gradle config. * [Android]Add pip mode demo. * [windows]update ci. * [windows]update ci. * [windows]update ci. * [windows]update ci 2. * [windows]update ci 3. * open audio4 * Adapt to the new api * Adapt to the new api * Use AVPictureInPictureVideoCallViewController implements the function of custom View picture-in-picture * add package_script * update package script * fix crash bug * update package * update package script * [iOS/mac] update rtc version. * [Android]fix AgoraFocalLengthInfo params bug. * [Android]perfect code. * [windows] fix deviceId compile error. * fix gitee sync scrip bug. * fix gitee sync scrip bug. * [windows] fix device id bug. --------- Co-authored-by: zhaoyongqiang <[email protected]> Co-authored-by: sync2gitee <[email protected]> Co-authored-by: xucz <[email protected]> Co-authored-by: Sihán Zhū <[email protected]>
1 parent 0ec9b44 commit b7ac81b

File tree

157 files changed

+4523
-4606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+4523
-4606
lines changed

.github/ci/build/build_windows.bat

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,11 @@ echo zip_name: %zip_name%
6666

6767
dir
6868

69-
echo off
70-
REM curl --silent %sdk_url% ./
71-
python %WORKSPACE%\\artifactory_utils.py --action=download_file --file=%sdk_url%
69+
curl %sdk_url% -o %zip_name%
70+
REM python %WORKSPACE%\\artifactory_utils.py --action=download_file --file=%sdk_url%
7271
7z x ./%zip_name% -y
73-
echo on
7472

7573
dir
76-
7774
rmdir /S /Q Agora_Native_SDK_for_Windows_FULL\demo
7875
del /F /Q Agora_Native_SDK_for_Windows_FULL\commits
7976
del /F /Q Agora_Native_SDK_for_Windows_FULL\package_size_report.txt

.github/ci/build/modify_podfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ def modfiy(path):
55
contents = []
66
for num, line in enumerate(file):
77
if "pod 'Agora" in line:
8-
line = '\t'+"pod 'sdk', :path => '../../sdk.podspec'"
8+
line = '\t'+"pod 'sdk', :path => '../../sdk.podspec'" + "\n"
99
elif "pod 'sdk" in line:
1010
line = ""
11+
elif 'sh .download_script' in line:
12+
line = line.replace('true', 'false') + "\n"
1113
contents.append(line)
1214
file.close()
1315

1416
with open(path, 'w', encoding='utf-8') as fw:
1517
for content in contents:
16-
fw.write(content + "\n")
18+
fw.write(content)
1719
fw.close()
1820

1921

.github/workflows/gitee-sync-shell.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ sed -ie "s#https://services.gradle.org/distributions#https://mirrors.cloud.tence
1313
git add Android/APIExample/settings.gradle Android/APIExample/gradle/wrapper/gradle-wrapper.properties Android/APIExample-Audio/settings.gradle Android/APIExample-Audio/gradle/wrapper/gradle-wrapper.properties
1414
git commit -m '[Android] gitee sync >> use china repos.'
1515

16+
# change iOS Podfile to china repos
17+
python3 .github/workflows/modify_podfile.py iOS/APIExample/Podfile
18+
python3 .github/workflows/modify_podfile.py iOS/APIExample-Audio/Podfile
19+
python3 .github/workflows/modify_podfile.py iOS/APIExample-OC/Podfile
20+
python3 .github/workflows/modify_podfile.py macOS/Podfile
21+
22+
# sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample/Podfile
23+
# sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample-Audio/Podfile
24+
# sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample-OC/Podfile
25+
# sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' macOS/Podfile
26+
git add iOS/APIExample/Podfile iOS/APIExample-Audio/Podfile iOS/APIExample-OC/Podfile macOS/Podfile
27+
git commit -m '[iOS] gitee sync >> use china repos.'
28+
1629
git branch
1730
git status
1831
git push gitee

.github/workflows/gitee-sync.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.actor != 'dependabot[bot]'
1515
steps:
1616
- name: Gitee sync repo
17-
uses: xgfd3/hub-mirror-action@v1.0
17+
uses: xgfd3/hub-mirror-action@v1.4
1818
with:
1919
src: github/AgoraIO
2020
dst: gitee/agoraio-community
@@ -25,4 +25,5 @@ jobs:
2525
dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }}
2626
force_update: true
2727
account_type: org
28-
shell_path: ./.github/workflows/gitee-sync-shell.sh
28+
shell_path: ./.github/workflows/gitee-sync-shell.sh
29+
github_ref: ${{ github.ref }}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import os, sys
2+
3+
def modfiy(path):
4+
with open(path, 'r', encoding='utf-8') as file:
5+
contents = []
6+
for num, line in enumerate(file):
7+
if "pod 'Agora" in line:
8+
line = '\t'+"pod 'sdk', :path => 'sdk.podspec'" + "\n"
9+
elif "pod 'sdk" in line:
10+
line = ""
11+
elif "pod 'Floaty" in line:
12+
line = '\t'+"pod 'Floaty', :git => 'https://gitee.com/shengwang-dependencies/Floaty.git'" + "\n"
13+
elif "pod 'AGEVideoLayout" in line:
14+
line = '\t'+"pod 'AGEVideoLayout', :git => 'https://gitee.com/shengwang-dependencies/AGEVideoLayout.git'" + "\n"
15+
elif "pod 'CocoaAsyncSocket" in line:
16+
line = '\t'+"pod 'CocoaAsyncSocket', :git => 'https://gitee.com/shengwang-dependencies/CocoaAsyncSocket.git'" + "\n"
17+
elif "pod 'SwiftLint" in line:
18+
line = '\t'+"pod 'SwiftLint', :git => 'https://gitee.com/shengwang-dependencies/SwiftLint', :commit => '1067113303c134ef472a71b30d21e5350de7889d'" + "\n"
19+
elif "pod 'ijkplayer" in line:
20+
line = '\t'+"pod 'ijkplayer', :path => 'ijkplayer.podspec'" + "\n"
21+
elif 'sh .download_script' in line:
22+
line = line.replace('#', '').replace('false', 'true')
23+
contents.append(line)
24+
file.close()
25+
26+
with open(path, 'w', encoding='utf-8') as fw:
27+
for content in contents:
28+
fw.write(content)
29+
fw.close()
30+
31+
32+
if __name__ == '__main__':
33+
path = sys.argv[1:][0]
34+
modfiy(path.strip())

Android/APIExample-Audio/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies {
4848
implementation fileTree(dir: "${localSdkPath}", include: ['*.jar', '*.aar'])
4949
}
5050
else{
51-
def agora_sdk_version = "4.3.0"
51+
def agora_sdk_version = "4.3.1"
5252
// case 1: full single lib with voice only
5353
implementation "io.agora.rtc:voice-sdk:${agora_sdk_version}"
5454
// case 2: partial libs with voice only

Android/APIExample-Audio/app/src/main/java/io/agora/api/example/MainActivity.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ protected void onCreate(Bundle savedInstanceState) {
3030

3131
@Override
3232
public boolean onSupportNavigateUp() {
33-
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
34-
return NavigationUI.navigateUp(navController, appBarConfiguration)
35-
|| super.onSupportNavigateUp();
33+
onBackPressed();
34+
return false;
3635
}
3736

3837
@Override

Android/APIExample-Audio/app/src/main/java/io/agora/api/example/common/BaseFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void handleOnBackPressed() {
3636
public void onCreate(@Nullable Bundle savedInstanceState) {
3737
super.onCreate(savedInstanceState);
3838
handler = new Handler(Looper.getMainLooper());
39-
requireActivity().getOnBackPressedDispatcher().addCallback(onBackPressedCallback);
39+
requireActivity().getOnBackPressedDispatcher().addCallback(this, onBackPressedCallback);
4040
}
4141

4242
@Override

Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public boolean onEarMonitoringAudioFrame(int type, int samplesPerChannel, int by
334334
}
335335

336336
@Override
337-
public boolean onPlaybackAudioFrameBeforeMixing(String channel, int uid, int audioFrameType, int samples, int bytesPerSample, int channels, int samplesPerSec, ByteBuffer byteBuffer, long renderTimeMs, int bufferLength) {
337+
public boolean onPlaybackAudioFrameBeforeMixing(String channelId, int uid, int type, int samplesPerChannel, int bytesPerSample, int channels, int samplesPerSec, ByteBuffer buffer, long renderTimeMs, int avsync_type, int rtpTimestamp) {
338338
return false;
339339
}
340340

Android/APIExample-Audio/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https://services.gradle.org/distributions/gradle-7.3.3-bin.zip
6+
distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-7.3.3-bin.zip

0 commit comments

Comments
 (0)