From 8cbd807b84839ed9e92fad2a573291b7a180140f Mon Sep 17 00:00:00 2001 From: xucz Date: Fri, 24 May 2024 15:06:47 +0800 Subject: [PATCH] [Android]Update ci compile script and etc. --- .github/ci/build/build_android.groovy | 7 ++++++- Android/APIExample/app/proguard-rules.pro | 11 ++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/ci/build/build_android.groovy b/.github/ci/build/build_android.groovy index 8cf894db1..fc7fc2103 100644 --- a/.github/ci/build/build_android.groovy +++ b/.github/ci/build/build_android.groovy @@ -55,7 +55,12 @@ def doPublish(buildVariables) { "serverRepo": "SDK_repo" ] ] - archive.archiveFiles(archiveInfos) + 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" } diff --git a/Android/APIExample/app/proguard-rules.pro b/Android/APIExample/app/proguard-rules.pro index f7a3f52f1..e88ea4362 100644 --- a/Android/APIExample/app/proguard-rules.pro +++ b/Android/APIExample/app/proguard-rules.pro @@ -22,4 +22,13 @@ -keep class io.agora.**{*;} -dontwarn javax.** --dontwarn com.google.devtools.build.android.** \ No newline at end of file +-dontwarn com.google.devtools.build.android.** + +# sensetime +-keep class com.softsugar.**{*;} +-keep class com.sensetime.**{*;} + +# bytedance +-keep class com.effectsar.**{*;} +-keep class com.bes.**{*;} +-keep class com.amazing.**{*;}