From 525616bd2a3868ac693a146040b25155eab06392 Mon Sep 17 00:00:00 2001 From: xuchunzhen Date: Sun, 14 Jul 2024 16:48:01 +0800 Subject: [PATCH] [Android]update ci build script. --- Android/APIExample-Audio/cloud_build.sh | 4 ++++ Android/APIExample/cloud_build.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Android/APIExample-Audio/cloud_build.sh b/Android/APIExample-Audio/cloud_build.sh index 219af0057..812a18d85 100755 --- a/Android/APIExample-Audio/cloud_build.sh +++ b/Android/APIExample-Audio/cloud_build.sh @@ -3,6 +3,10 @@ # cache gradle to /tmp/.gradle ls ~/.gradle || (mkdir -p /tmp/.gradle && ln -s /tmp/.gradle ~/.gradle && touch ~/.gradle/ln_$(date "+%y%m%d%H") && ls ~/.gradle) +#change android maven to china repos +sed -ie "s#google()#maven { url \"https\://maven.aliyun.com/repository/public\" }\n google()#g" settings.gradle +sed -ie "s#https://services.gradle.org/distributions#https://mirrors.cloud.tencent.com/gradle#g" gradle/wrapper/gradle-wrapper.properties + ## 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 diff --git a/Android/APIExample/cloud_build.sh b/Android/APIExample/cloud_build.sh index 8b1124408..50c656e56 100755 --- a/Android/APIExample/cloud_build.sh +++ b/Android/APIExample/cloud_build.sh @@ -3,6 +3,10 @@ # cache gradle to /tmp/.gradle ls ~/.gradle || (mkdir -p /tmp/.gradle && ln -s /tmp/.gradle ~/.gradle && touch ~/.gradle/ln_$(date "+%y%m%d%H") && ls ~/.gradle) +#change android maven to china repos +sed -ie "s#google()#maven { url \"https\://maven.aliyun.com/repository/public\" }\n google()#g" settings.gradle +sed -ie "s#https://services.gradle.org/distributions#https://mirrors.cloud.tencent.com/gradle#g" gradle/wrapper/gradle-wrapper.properties + ## 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