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

Dev/4.3.2 #389

Merged
merged 80 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
1e646a8
[Android]Update ci compile script.
xgfd3 May 24, 2024
e3aace7
[Android]adapt to 4.3.2 sdk and etc.
xgfd3 May 24, 2024
997df90
[Android]Update ci compile script.
xgfd3 May 24, 2024
4c56ed0
[Android]Update ci compile script.
xgfd3 May 24, 2024
00f8e6d
[Android]Update ci compile script.
xgfd3 May 24, 2024
0984f16
[Android]Update ci compile script.
xgfd3 May 24, 2024
710dc61
[Android]Update ci compile script.
xgfd3 May 24, 2024
d1360d6
[Android]Update gradle config.
xgfd3 May 24, 2024
dc9c4ec
[Android]Update ci compile script.
xgfd3 May 24, 2024
fd7028d
[Android]Update ci compile script.
xgfd3 May 24, 2024
3fce1df
[Android]Update ci compile script.
xgfd3 May 24, 2024
4c8be6c
[Android]Update ci compile script.
xgfd3 May 24, 2024
0b6e579
[Android]Update ci compile script.
xgfd3 May 24, 2024
ae688fe
[Android]Update ci compile script.
xgfd3 May 24, 2024
48875ec
[Android][Audio]Adapt to 4.3.2 sdk and etc
xgfd3 May 24, 2024
8cbd807
[Android]Update ci compile script and etc.
xgfd3 May 24, 2024
c25fa40
Compose (#381)
xgfd3 May 7, 2024
4a7cead
Swift UI (#382)
xgfd3 May 7, 2024
2a9effa
[Android][Compose]add cases and etc.
xgfd3 May 9, 2024
d44790d
[Android][Compose]update translate and README.
xgfd3 May 9, 2024
464fdff
Update REAMDE
xgfd3 May 9, 2024
cc024ad
Update REAMDE
xgfd3 May 9, 2024
785ad0f
[Android][Compose]update translate.
xgfd3 May 9, 2024
0c06bf0
[Android][Compose]update translate.
xgfd3 May 9, 2024
c085582
[Android][Compose]add cloud build script and etc.
xgfd3 May 24, 2024
471e3f6
[Android][Compose]update cloud build script.
xgfd3 May 24, 2024
606e79a
[Android][Compose]update cloud build script.
xgfd3 May 24, 2024
82b8920
[Android][Compose]update cloud build script.
xgfd3 May 24, 2024
ff792db
[Android][Compose]update cloud build script.
xgfd3 May 24, 2024
f392fc3
[Android][Compose]update cloud build script.
xgfd3 May 24, 2024
930cf5a
[Android][Compose]Renew icon.
xgfd3 May 24, 2024
788ab07
[iOS]Adapt to 4.3.2 and update ci script.
xgfd3 May 24, 2024
d1f5aea
[iOS]Update ci script.
xgfd3 May 24, 2024
d7163a5
[iOS]Update ci script.
xgfd3 May 24, 2024
2985e35
[iOS]Update ci script.
xgfd3 May 24, 2024
35c495f
[iOS]Update ci script.
xgfd3 May 24, 2024
5f29525
[iOS]Update ci script.
xgfd3 May 24, 2024
520909f
[iOS]Update ci script.
xgfd3 May 25, 2024
aca07bf
[iOS]Update ci script.
xgfd3 May 25, 2024
705ce73
[iOS]Update ci script.
xgfd3 May 25, 2024
283e4bf
[iOS] fix ci compile problem.
xgfd3 May 25, 2024
08920d2
[iOS] fix ci.
xgfd3 May 25, 2024
59fbdd4
[iOS] fix ci.
xgfd3 May 25, 2024
33a4b8f
[iOS] fix ci.
xgfd3 May 25, 2024
e16797f
[iOS] fix ci.
xgfd3 May 25, 2024
337bc63
[iOS] fix ci.
xgfd3 May 25, 2024
1e15275
[iOS] fix ci.
xgfd3 May 25, 2024
754fea9
fix ci.
xgfd3 May 25, 2024
ac38eb7
[iOS] Update rtc to 4.3.2.
xgfd3 May 25, 2024
bea30fc
[Mac] update rtc to 4.3.2 and etc.
xgfd3 May 25, 2024
bf55958
Update ci.
xgfd3 May 25, 2024
c81396a
[windows] update rtc to 4.3.2 and ci.
xgfd3 May 25, 2024
6124a7e
Update ci script.
xgfd3 May 27, 2024
fae0f15
[iOS]support file sharing.
xgfd3 May 28, 2024
eba3bdd
[Android][Compose]fix screensharing crash(NMS-21308).
xgfd3 May 29, 2024
2f8f401
[Android]fix proguard bug.
xgfd3 May 29, 2024
fdb8ee8
fix: crash on ipad when pop alert vc
tamworth May 29, 2024
f02e5a3
fix: keyboard dismiss
tamworth May 29, 2024
f0906b5
fix: minor changes
tamworth May 29, 2024
1678aa9
[windows]fix original video average filter bug.
xgfd3 May 29, 2024
990adb8
Merge branch 'dev/4.3.2' of github.com:AgoraIO/API-Examples into dev/…
xgfd3 May 29, 2024
c1a3104
feat: add stabilization button
tamworth May 30, 2024
33a04ce
Merge branch 'dev/4.3.2' of https://github.com/AgoraIO/API-Examples i…
tamworth May 30, 2024
5b6ff5d
fix: setCameraStabilizationMode on main thread
tamworth May 30, 2024
412c715
[windows]fix ci hour time space bug.
xgfd3 May 30, 2024
8c38577
fix: update ignore file
tamworth May 30, 2024
553099c
Merge branch 'dev/4.3.2' of https://github.com/AgoraIO/API-Examples i…
tamworth May 30, 2024
f87d389
[Android][Compose]1.fix pip crash;2.fix rhythmplayer mute bug;3.fix r…
xgfd3 May 30, 2024
544d61c
[Android][Compose]fix custom video source dispose bug.
xgfd3 May 30, 2024
99a20b4
fix: add focal setting to top live streaming vc
tamworth May 30, 2024
e9ab99c
Merge branch 'dev/4.3.2' of https://github.com/AgoraIO/API-Examples i…
tamworth May 30, 2024
99093f6
fix: crash on ipad
tamworth May 30, 2024
2b3c448
fix: 3rd beauty vc crash on ipad
tamworth May 30, 2024
0313d0b
fix: center stage enable status fixed
tamworth May 31, 2024
db51446
[iOS]fix camera direction bug.
xgfd3 Jun 3, 2024
5cccde0
[iOS]change focus callback toast to logger.
xgfd3 Jun 3, 2024
a716dc4
[Android]reset default config.
xgfd3 Jun 4, 2024
9d2e4aa
fix: front/rear fixed
tamworth Jun 4, 2024
99fc799
Merge branch 'dev/4.3.2' of https://github.com/AgoraIO/API-Examples i…
tamworth Jun 4, 2024
dddd1bd
remove iOS SwiftUI temporarily.
xgfd3 Jun 5, 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
15 changes: 13 additions & 2 deletions .github/ci/build/build_android.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,21 @@ def doPublish(buildVariables) {
"archivePattern": "*.zip",
"serverPath": "ApiExample/${shortVersion}/${buildVariables.buildDate}/${env.platform}",
"serverRepo": "SDK_repo"
],
[
"type": "ARTIFACTORY",
"archivePattern": "*.apk",
"serverPath": "ApiExample/${shortVersion}/${buildVariables.buildDate}/${env.platform}",
"serverRepo": "SDK_repo"
]
]
archive.archiveFiles(archiveInfos)
sh "rm -rf *.zip || true"
archiveUrls = archive.archiveFiles(archiveInfos) ?: []
archiveUrls = archiveUrls as Set
if (archiveUrls) {
def content = archiveUrls.join("\n")
writeFile(file: 'package_urls', text: content, encoding: "utf-8")
}
sh "rm -rf *.zip *.apk || true"
}

pipelineLoad(this, "ApiExample", "build", "android", "apiexample_linux")
60 changes: 12 additions & 48 deletions .github/ci/build/build_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ echo short_version: $short_version
echo pwd: `pwd`
echo sdk_url: $sdk_url

ls ~/.gradle || (mkdir -p /tmp/.gradle && ln -s /tmp/.gradle ~/.gradle && touch ~/.gradle/ln_$(date "+%y%m%d%H") && ls ~/.gradle)

zip_name=${sdk_url##*/}
echo zip_name: $zip_name

Expand All @@ -67,55 +65,21 @@ rm -rf ./$unzip_name/rtc/demo
rm ./$unzip_name/rtc/commits
rm ./$unzip_name/rtc/package_size_report.txt
mkdir ./$unzip_name/rtc/samples
mkdir ./$unzip_name/rtc/samples/API-example

if [ ! -z "$(echo $sdk_url | grep 'audio')" ] || [ ! -z "$(echo $sdk_url | grep 'VOICE')" ]
then
audio_suffix=-Audio
else
audio_suffix=
fi
echo audio_suffix: $audio_suffix

cp -rf ./Android/APIExample${audio_suffix}/** ./$unzip_name/rtc/samples/API-example
cp -rf ./Android/${android_direction} ./$unzip_name/rtc/samples/API-Example || exit 1
7za a -tzip result.zip -r $unzip_name > log.txt
mv result.zip $WORKSPACE/withAPIExample_$(date "+%d%H%M")_$zip_name
mv result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name

# install android sdk
which java
java --version
source ~/.bashrc
export ANDROID_HOME=/usr/lib/android_sdk
echo ANDROID_HOME: $ANDROID_HOME

# compile apk
cd ./$unzip_name/rtc/samples/API-example
pwd

## config appId
sed -i -e "s#YOUR APP ID#${APP_ID}#g" app/src/main/res/values/string_configs.xml
sed -i -e "s#YOUR APP CERTIFICATE##g" app/src/main/res/values/string_configs.xml
sed -i -e "s#YOUR ACCESS TOKEN##g" app/src/main/res/values/string_configs.xml
rm -f app/src/main/res/values/string_configs.xml-e
cat app/src/main/res/values/string_configs.xml

## config simple filter
sed -i -e "s#simpleFilter = false#simpleFilter = true#g" gradle.properties
mkdir -p agora-simple-filter/src/main/agoraLibs
cp -r ../../sdk/arm64-v8a agora-simple-filter/src/main/agoraLibs/
cp -r ../../sdk/armeabi-v7a agora-simple-filter/src/main/agoraLibs/
curl -o opencv4.zip https://agora-adc-artifacts.s3.cn-north-1.amazonaws.com.cn/androidLibs/opencv4.zip
unzip opencv4.zip
mkdir -p agora-simple-filter/src/main/libs
mv arm64-v8a agora-simple-filter/src/main/libs
mv armeabi-v7a agora-simple-filter/src/main/libs
sed -i -e "s#jniLibs/#libs/#g" agora-simple-filter/src/main/cpp/CMakeLists.txt
if [ $compile_project = true ]; then
# install android sdk
which java
java --version
source ~/.bashrc
export ANDROID_HOME=/usr/lib/android_sdk
echo ANDROID_HOME: $ANDROID_HOME
cd ./$unzip_name/rtc/samples/API-Example || exit 1
./cloud_build.sh || exit 1
fi

./gradlew clean || exit 1
./gradlew :app:assembleDebug || exit 1
cp app/build/outputs/apk/debug/app-debug.apk ./APIExample_Android_$(date "+%y%m%d%H").apk
7za a -tzip result.zip -r *.apk > log.txt
mv result.zip $WORKSPACE/APIExample_Android${audio_suffix}_$(date "+%y%m%d%H%M")_apk.zip
ls $WORKSPACE
cd -

8 changes: 7 additions & 1 deletion .github/ci/build/build_ios.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ def doPublish(buildVariables) {
"archivePattern": "*.zip",
"serverPath": "ApiExample/${shortVersion}/${buildVariables.buildDate}/${env.platform}",
"serverRepo": "SDK_repo" // ATTENTIONS: Update the artifactoryRepo if needed.
],
[
"type": "ARTIFACTORY",
"archivePattern": "*.ipa",
"serverPath": "ApiExample/${shortVersion}/${buildVariables.buildDate}/${env.platform}",
"serverRepo": "SDK_repo" // ATTENTIONS: Update the artifactoryRepo if needed.
]
]
archive.archiveFiles(archiveInfos)
sh "rm -rf *.zip || true"
sh "rm -rf *.zip *.ipa || true"
}

pipelineLoad(this, "ApiExample", "build", "ios", "apiexample_mac")
76 changes: 15 additions & 61 deletions .github/ci/build/build_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# others: Rename the zip package name yourself, But need copy it to workspace dir
##################################

echo is_generate_validate_app: $is_generate_validate_app
echo ios_direction: $ios_direction
echo Package_Publish: $Package_Publish
echo is_tag_fetch: $is_tag_fetch
echo arch: $arch
Expand All @@ -55,75 +55,29 @@ echo sdk_url: $sdk_url
zip_name=${sdk_url##*/}
echo zip_name: $zip_name

python3 $WORKSPACE/artifactory_utils.py --action=download_file --file=$sdk_url
7za x ./$zip_name -y
curl -o $zip_name $sdk_url || exit 1
7za x ./$zip_name -y > log.txt

unzip_name=`ls -S -d */ | grep Agora`
unzip_name=`ls -S -d */ | grep Agora | sed 's/\///g'`
echo unzip_name: $unzip_name

rm -rf ./$unzip_name/bin
rm ./$unzip_name/commits
rm ./$unzip_name/package_size_report.txt
mkdir ./$unzip_name/samples
mkdir ./$unzip_name/samples/API-Example
if [ $? -eq 0 ]; then
echo "success"
else
echo "failed"
exit 1
fi

cp -rf ./iOS/** ./$unzip_name/samples/API-Example
cp -rf ./iOS/${ios_direction} ./$unzip_name/samples/API-Example || exit 1
ls -al ./$unzip_name/samples/API-Example/
mv ./$unzip_name/samples/API-Example/sdk.podspec ./$unzip_name/ || exit 1
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/API-Example/Podfile || exit 1


result=$(echo $sdk_url | grep "VOICE")
if [ ! -z "$result" ]
then
echo "包含"
rm -rf ./$unzip_name/samples/API-Example/APIExample
rm -rf ./$unzip_name/samples/API-Example/APIExample-OC
mv ./$unzip_name/samples/API-Example/APIExample-Audio ./$unzip_name/samples/APIExample-Audio
mv ./$unzip_name/samples/APIExample-Audio/sdk.podspec ./$unzip_name/
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample-Audio/Podfile
if [ $? -eq 0 ]; then
echo "success"
else
echo "failed"
exit 1
fi
if [ $is_generate_validate_app = true ]; then
./.github/ci/build/build_ios_ipa.sh ./$unzip_name/samples/APIExample-Audio
fi
7za a -tzip result.zip -r $unzip_name > log.txt
mv result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name

else
echo "不包含"
rm -rf ./$unzip_name/samples/API-Example/APIExample-Audio
if [ $is_objective_c = true ]; then
rm -rf ./$unzip_name/samples/API-Example/APIExample
mv ./$unzip_name/samples/API-Example/APIExample-OC ./$unzip_name/samples/APIExample-OC
mv ./$unzip_name/samples/APIExample-OC/sdk.podspec ./$unzip_name/
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample-OC/Podfile
else
rm -rf ./$unzip_name/samples/API-Example/APIExample-OC
mv ./$unzip_name/samples/API-Example/APIExample ./$unzip_name/samples/APIExample
mv ./$unzip_name/samples/APIExample/sdk.podspec ./$unzip_name/
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample/Podfile
fi

if [ $? -eq 0 ]; then
echo "success"
else
echo "failed"
exit 1
fi
if [ $is_generate_validate_app = true ]; then
if [ $is_objective_c = true ]; then
./.github/ci/build/build_ios_ipa.sh ./$unzip_name/samples/APIExample-OC
else
./.github/ci/build/build_ios_ipa.sh ./$unzip_name/samples/APIExample
fi
fi
if [ $compile_project = true ]; then
cd ./$unzip_name/samples/API-Example
./cloud_build.sh || exit 1
cd -
fi

rm -rf ./$unzip_name/samples/API-Example
7za a -tzip result.zip -r $unzip_name
cp result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name
10 changes: 7 additions & 3 deletions .github/ci/build/build_ios_ipa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ CURRENT_PATH=$PWD

# 获取项目目录
PROJECT_PATH="$( cd "$1" && pwd )"
IS_OBJECTIVE_C=false
if [ "$ios_direction" = "APIExample-OC" ]; then
IS_OBJECTIVE_C=true
fi

cd ${PROJECT_PATH} && pod install

Expand All @@ -13,10 +17,10 @@ else
fi

# 项目target名
TARGET_NAME=${PROJECT_PATH##*/}
TARGET_NAME=$ios_direction

KEYCENTER_PATH=${PROJECT_PATH}"/"${TARGET_NAME}"/Common/KeyCenter.swift"
if [ $is_objective_c = true ]; then
if [ $IS_OBJECTIVE_C = true ]; then
KEYCENTER_PATH=${PROJECT_PATH}"/"${TARGET_NAME}"/Common/KeyCenter.m"
fi

Expand All @@ -31,7 +35,7 @@ PBXPROJ_PATH="${PROJECT_PATH}/${TARGET_NAME}.xcodeproj/project.pbxproj"
echo PBXPROJ_PATH: $PBXPROJ_PATH

# 主项目工程配置
if [ $is_objective_c = true ]; then
if [ $IS_OBJECTIVE_C = true ]; then
# Debug
/usr/libexec/PlistBuddy -c "Set :objects:E70ADE062A5D0050009947CF:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
/usr/libexec/PlistBuddy -c "Set :objects:E70ADE062A5D0050009947CF:buildSettings:DEVELOPMENT_TEAM 'GM72UGLGZW'" $PBXPROJ_PATH
Expand Down
29 changes: 14 additions & 15 deletions .github/ci/build/build_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# others: Rename the zip package name yourself, But need copy it to workspace dir
##################################

echo is_generate_validate_app:$is_generate_validate_app
echo compile_project:$compile_project
echo Package_Publish: $Package_Publish
echo is_tag_fetch: $is_tag_fetch
echo arch: $arch
Expand All @@ -54,8 +54,8 @@ echo sdk_url: $sdk_url
zip_name=${sdk_url##*/}
echo zip_name: $zip_name

python3 $WORKSPACE/artifactory_utils.py --action=download_file --file=$sdk_url
7za x ./$zip_name -y
curl -o $zip_name $sdk_url || exit 1
7za x ./$zip_name -y > log.txt

unzip_name=`ls -S -d */ | grep Agora`
echo unzip_name: $unzip_name
Expand All @@ -64,21 +64,20 @@ rm -rf ./$unzip_name/bin
rm ./$unzip_name/commits
rm ./$unzip_name/package_size_report.txt
mkdir ./$unzip_name/samples
mkdir ./$unzip_name/samples/APIExample
if [ $? -eq 0 ]; then
echo "success"
else
echo "failed"
exit 1
fi
cp -a ./macOS/** ./$unzip_name/samples/APIExample


cp -rf ./macOS ./$unzip_name/samples/APIExample || exit 1
ls -al ./$unzip_name/samples/API-Example/
mv ./$unzip_name/samples/APIExample/sdk.podspec ./$unzip_name/
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample/Podfile

7za a -tzip result.zip -r $unzip_name
cp result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name

if [ $is_generate_validate_app = true ]; then
./.github/ci/build/build_mac_ipa.sh ./$unzip_name/samples/APIExample
if [ $compile_project = true ]; then
cd ./$unzip_name/samples/APIExample
./cloud_build.sh || exit 1
cd -
fi

7za a -tzip result.zip -r $unzip_name
cp result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name

13 changes: 5 additions & 8 deletions .github/ci/build/build_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ REM pr: output test.zip to workspace dir
REM others: Rename the zip package name yourself, But need copy it to workspace dir
REM ##################################

echo compile_project: %compile_project%
echo Package_Publish: %Package_Publish%
echo is_tag_fetch: %is_tag_fetch%
echo arch: %arch%
Expand Down Expand Up @@ -84,15 +85,11 @@ xcopy /Y /E windows\README.zh.md Agora_Native_SDK_for_Windows_FULL\samples\API-e
rmdir /S /Q Agora_Native_SDK_for_Windows_FULL\samples\API-example\APIExample\APIExample
dir Agora_Native_SDK_for_Windows_FULL\samples\API-example\APIExample
7z a -tzip result.zip -r Agora_Native_SDK_for_Windows_FULL
copy result.zip %WORKSPACE%\\withAPIExample_%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%_%zip_name%
copy result.zip %WORKSPACE%\\withAPIExample_%BUILD_NUMBER%_%zip_name%
del /F result.zip
del /F %WORKSPACE%\\%zip_name%

if %compile_project% EQU false goto FINAL
cd Agora_Native_SDK_for_Windows_FULL\samples\API-example
echo "compile start..."
call installThirdParty.bat
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" "APIExample.sln" /p:platform="Win32" /p:configuration="Release"
7z a -tzip result.zip -r Release
copy result.zip %WORKSPACE%\\APIExample_windows_%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%_Release_exe.zip
del /F result.zip
echo "compile done."
call cloud_build.bat
:FINAL
2 changes: 1 addition & 1 deletion .github/workflows/gitee-sync-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ git config --global user.name "sync2gitee"
pwd
git remote -v

# change android maven to china repos
change android maven to china repos
sed -ie "s#google()#maven { url \"https\://maven.aliyun.com/repository/public\" }\n google()#g" Android/APIExample/settings.gradle
sed -ie "s#https://services.gradle.org/distributions#https://mirrors.cloud.tencent.com/gradle#g" Android/APIExample/gradle/wrapper/gradle-wrapper.properties
sed -ie "s#google()#maven { url \"https\://maven.aliyun.com/repository/public\" }\n google()#g" Android/APIExample-Audio/settings.gradle
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
xcuserdata
.DS_Store
AgoraRtcKit.framework
*/libs
Loading