Skip to content

Commit 4650051

Browse files
author
zhaoyongqiang
committed
Merge branch 'dev/4.0.0.3' of github.com:AgoraIO/API-Examples into dev/4.0.0.3
2 parents 96dbbff + 86788f4 commit 4650051

4 files changed

Lines changed: 26 additions & 14 deletions

File tree

.github/ci/build/build_android.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ cat app/src/main/res/values/string_configs.xml
105105
## config simple filter
106106
sed -i -e "s#simpleFilter = false#simpleFilter = true#g" gradle.properties
107107
mkdir -p agora-simple-filter/src/main/agoraLibs
108-
cp ../../sdk/arm64-v8a agora-simple-filter/src/main/agoraLibs/
109-
cp ../../sdk/armeabi-v7a agora-simple-filter/src/main/agoraLibs/
108+
cp -r ../../sdk/arm64-v8a agora-simple-filter/src/main/agoraLibs/
109+
cp -r ../../sdk/armeabi-v7a agora-simple-filter/src/main/agoraLibs/
110110
wget https://agora-adc-artifacts.s3.cn-north-1.amazonaws.com.cn/androidLibs/opencv4.zip
111111
unzip opencv4.zip
112112
mkdir -p agora-simple-filter/src/main/jniLibs

.github/ci/build/build_windows.bat

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ REM for example: python %WORKSPACE%\\artifactory_utils.py --action=upload_file -
3030
REM upload folder to artifactory
3131
REM python %WORKSPACE%\\artifactory_utils.py --action=upload_file --file=FILEPATTERN --server_path=SERVERPATH --server_repo=SERVER_REPO --with_folder
3232
REM for example: python %WORKSPACE%\\artifactory_utils.py --action=upload_file --file=publish --server_path=windows/ --server_repo=ACCS_repo --with_folder
33-
# --- Input: ----
34-
# sourcePath: see jenkins console for details.
35-
# WORKSPACE: %WORKSPACE%
36-
# --- Output: ----
37-
# pr: output test.zip to workspace dir
38-
# others: Rename the zip package name yourself, But need copy it to workspace dir
33+
REM --- Input: ----
34+
REM sourcePath: see jenkins console for details.
35+
REM WORKSPACE: %WORKSPACE%
36+
REM --- Output: ----
37+
REM pr: output test.zip to workspace dir
38+
REM others: Rename the zip package name yourself, But need copy it to workspace dir
3939
REM ##################################
4040

4141
echo Package_Publish: %Package_Publish%
@@ -70,7 +70,6 @@ echo off
7070
REM curl --silent %sdk_url% ./
7171
python %WORKSPACE%\\artifactory_utils.py --action=download_file --file=%sdk_url%
7272
7z x ./%zip_name% -y
73-
del /F ./%zip_name%
7473
echo on
7574

7675
dir
@@ -88,9 +87,13 @@ xcopy /Y /E windows\README.zh.md Agora_Native_SDK_for_Windows_FULL\samples\API-e
8887
7z a -tzip result.zip -r Agora_Native_SDK_for_Windows_FULL
8988
copy result.zip %WORKSPACE%\\withAPIExample_%zip_name%
9089
del /F result.zip
90+
del /F %WORKSPACE%\\%zip_name%
9191

9292
cd Agora_Native_SDK_for_Windows_FULL\samples\API-example
93-
./installThirdParty.bat
94-
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" "APIExample.sln" /p:platform="Win32" /p:configuration="Release"
93+
echo "compile start..."
94+
call installThirdParty.bat
95+
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" "APIExample.sln" /p:platform="Win32" /p:configuration="Release"
9596
7z a -tzip result.zip -r Release
9697
copy result.zip %WORKSPACE%\\APIExample-windows.zip
98+
del /F result.zip
99+
echo "compile done."

Android/APIExample/agora-simple-filter/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ android {
3737
}
3838
}
3939

40+
packagingOptions {
41+
pickFirst 'src/main/jniLibs/arm64-v8a/libopencv_java4.so'
42+
pickFirst 'src/main/jniLibs/armeabi-v7a/libopencv_java4.so'
43+
}
44+
4045
}
4146

4247
dependencies {

Android/APIExample/settings.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
pluginManagement {
22
repositories {
3+
maven { url "https://maven.aliyun.com/repository/jcenter" }
4+
maven { url "https://maven.aliyun.com/repository/public" }
35
gradlePluginPortal()
46
google()
57
mavenCentral()
@@ -8,10 +10,12 @@ pluginManagement {
810
dependencyResolutionManagement {
911
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1012
repositories {
11-
mavenCentral()
13+
maven { url "https://maven.aliyun.com/repository/public" }
14+
maven { url "https://maven.aliyun.com/repository/google" }
15+
maven { url "https://maven.aliyun.com/repository/jcenter" }
16+
maven { url "https://jitpack.io" }
1217
google()
13-
jcenter()
14-
maven { url 'https://jitpack.io' }
18+
mavenCentral()
1519
}
1620
}
1721
rootProject.name='APIExample'

0 commit comments

Comments
 (0)